Bug 165667 - specify color pallete for category series
Summary: specify color pallete for category series
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement with 2 votes (vote)
Target Milestone: Future   Edit
Assignee: Birt-Chart-inbox@eclipse.org CLA
QA Contact: Maggie Shen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-23 10:43 EST by Leos Literak CLA
Modified: 2010-08-10 05:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leos Literak CLA 2006-11-23 10:43:50 EST
The colors from pallete are taken by order at this moment. E.g. if my pallete is red, green, orange, then first slice is red, second green and so on. But if the color has some meaning and the order (or presence of category) is not guaranteed, then different category can recieve the color, then designer assumed.

Imagine, that I want to display pie chart for shop orders, where cars will have red slices, bikes blue and ships yellow. The dataset may be defined as:

model |  orders
------+--------
cars  |  20
bikes |  14
ship  |  7

So I define series pallete as red, blue, yellow and it seems to work fine for default example. But later the dataset (with different parameters) will return

model |  orders
------+--------
bikes |  14
ship  |  8

And users, who were accustomed, that bikes orders are blue and ship orders are yellow will be confused, because bikes are red and ships are blue now.

I propose to create some way, how to map colors to certain categories, so not order matters but category itself. E.g. let designer assign that red color will be used for category cars and blue for category bikes ..