Skip to content

Examples - XChartDemo->charts->date->DateChart03 - Series-colors and Legend-colors are confusing and might be misleading #406

@gibhub-src

Description

@gibhub-src

Hello guys,
I was reviewing the Demos and while figuring out and playing around with the #405 feature I realized that the DateChart03 has some misleading presentation. Here how it looks according to the original example with the YAxisTitles added:

image
The problem is, that in the Demo-code the "series 1" (assigned higher-range values AND created first) is explicitly created at position "1":

chart.addSeries("series1", xData1, yData1).setYAxisGroup(1);

before the "series 2" which should occupy position "0" (Zero Based).

Now if the code applies the "first"-Color to "series 2" it does NOT apply the same color to "series 2" in the Legend...or...the opposite. It might just assign the "first"-Color (i quess the Blue) to the "series 1" in the Legend, which is created first, but occupies position index "2".

Anyway, I think you get the idea from the illustration.
This just shows us, that the separate YAxis-Color #404 & #405 concept is quite reasonable.
Best Regards guys!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions