Opened 11 years ago

Closed 9 years ago

#9010 closed defect (invalid)

dojox.charting themes contain too few colors

Reported by: alex Owned by: Tom Trenka
Priority: high Milestone: future
Component: Charting Version: 1.3.0rc2
Keywords: charting, gfx Cc: Eugene Lazutkin, dante
Blocked By: Blocking:

Description

many charting themes seem to contain only 5 or 6 unique colors, allowing them to easily "wrap around". Themes should either have a logic that allows them to differentiate when being asked for a wrap-around color or should contain more colors in general.

Change History (3)

comment:1 Changed 11 years ago by Tom Trenka

An explanation:

The Theme object itself can support N colors; it's just a matter of adding them to the colors property/array. This can be done using [theme].defineColors or by simply creating a theme with more than 5 colors in it.

Almost all of the themes themselves use only 5 colors because after a bit of research, I found that it's rare to be plotting more than that without the charts becoming unreadable.

The question here them becomes one of deciding whether or not a theme object should recognize when more than 5 colors are called and try to generate another set of 5, or how would we determine what color to base the next 5 colors on, etc.

If you have suggestions on that, I'm all ears and can try to implement for 1.4. The big thing I ran across originally (the originals for both 0.4 and 1.0 used up to 32 colors) is that the more colors you add, the less variety between colors which makes it hard to distinguish on a chart.

comment:2 Changed 10 years ago by Tom Trenka

Milestone: 1.4future

comment:3 Changed 9 years ago by Tom Trenka

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.