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:

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).
|
chart.addSeries("series2", xData2, yData2); |
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!
Hello guys,
I was reviewing the Demos and while figuring out and playing around with the #405 feature I realized that the
DateChart03has some misleading presentation. Here how it looks according to the original example with theYAxisTitlesadded:The problem is, that in the Demo-code the "series 1" (assigned higher-range values AND created first) is explicitly created at position "1":
XChart/xchart-demo/src/main/java/org/knowm/xchart/demo/charts/date/DateChart03.java
Line 77 in b800f66
before the "series 2" which should occupy position "0" (Zero Based).
XChart/xchart-demo/src/main/java/org/knowm/xchart/demo/charts/date/DateChart03.java
Line 78 in b800f66
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 theBlue) 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!