First I would like to greet and thank you for the existence of the project. I was surprised that Java was a bit behind regarding Charting, graphing & plotting libraries.
And now to the problem. I could not find a way to change the color of an individual Y-Axis. Although it is arguably advised NOT to use multiple Axes, it still has its uses and showing multiple Axes in the same color makes things harder.
For example the demos DateChart01 - Millisecond Scale with Two Separate Y Axis Groups and DateChart03 - Minute Scale with Two Separate Y Axis Groups are so confusing. Even if we add the YAxisGroupTitle via chart.setYAxisGroupTitle() we still do not know which one of the series is being referred.
My recommendation is to extend Chart.java with additional getYAxisGroupColor(int yAxisGroup) & setYAxisGroupColor(int yAxisGroup, Color yAxisColor) - properties. Then in the respective Axis-Object (be it Axis, AxisPair, AxisTick, AxisTitle, AxisTickMarks, AsxisTickLabels and s.o.) set the color and repaint().
So i believe it would be a good feature improvement, that would benefit a lot of users.
Thank you guys!
First I would like to greet and thank you for the existence of the project. I was surprised that Java was a bit behind regarding
Charting, graphing & plottinglibraries.And now to the problem. I could not find a way to change the color of an individual Y-Axis. Although it is arguably advised NOT to use multiple Axes, it still has its uses and showing multiple Axes in the same color makes things harder.
For example the demos
DateChart01 - Millisecond Scale with Two Separate Y Axis GroupsandDateChart03 - Minute Scale with Two Separate Y Axis Groupsare so confusing. Even if we add theYAxisGroupTitleviachart.setYAxisGroupTitle()we still do not know which one of the series is being referred.My recommendation is to extend
Chart.javawith additionalgetYAxisGroupColor(int yAxisGroup)&setYAxisGroupColor(int yAxisGroup, Color yAxisColor)- properties. Then in the respective Axis-Object (be itAxis, AxisPair, AxisTick, AxisTitle, AxisTickMarks, AsxisTickLabelsand s.o.) set the color andrepaint().So i believe it would be a good feature improvement, that would benefit a lot of users.
Thank you guys!