Skip to content

Y-Axis - Set color properties for each of multiple Y-Axes [Feature Request] #404

@gibhub-src

Description

@gibhub-src

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!

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