Opened 13 years ago
Closed 12 years ago
#8868 closed defect (fixed)
Bug in default assignment of colors to chart series
Reported by: | petraRock | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | Charting | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
Automatic assignment of colors from the theme to chart series works fine for addSeries( ) and updateSeries( ) except when a series contains an empty data array. If a series has an empty data array, then it seems to be skipped in the color allocation from the theme. Then if that series is later updated with data via an updateSeries( ), the colors are reassigned from the theme and to the user the colors switch on the graph from one series to the other.
(I use this technique of updateSeries(name, []) to simulate hiding a series on a line graph and then use updateSeries(name, [data]) to show the series again. To work around this problem, I have to leave a single data point in the "empty" data array in order to have the colors not switch when I hide/show the series.)
The attached small sample illustrates this bug.
Attachments (1)
Change History (7)
comment:1 Changed 13 years ago by
Milestone: | tbd → future |
---|---|
Status: | new → assigned |
comment:2 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 13 years ago by
Milestone: | future → 1.4 |
---|
comment:4 Changed 13 years ago by
Milestone: | 1.4 → 1.5 |
---|
bumping tickets that didn't make the 1.4 cut, but most likely to go in the next point release.
comment:5 Changed 12 years ago by
Description: | modified (diff) |
---|
Next time attach files instead in pasting them inline.