Hi,
I created a second renderer for my second axis. But the second renderer uses these marks on each value(triangles, rectangles, circles). How can I remove them?
To make it more clear which series corresponds to which axis, I added the names of the serieses to the axis labels. Now I would like to use the series color for the axis label.
E.g.:
S1 color = red
S2 color = green
Axis label: [red]S1 name[/red], [green]S2 name[/green], etc.
Remove dots, different colors for axis label
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You didn't say which renderer. If it is LineAndShapeRenderer, you can use setSeriesShapesVisible(seriesIndex, false).
For the color of the axis label, you can call setLabelPaint(yourColor) and/or setTickLabelPaint(anotherColor).
For the color of the axis label, you can call setLabelPaint(yourColor) and/or setTickLabelPaint(anotherColor).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Thank you very much for your answer. Yes it is LineAndShapeRenderer. It works fine now.
I know that I can set the color of the labels with the setLabelPaint method. But it sets one color for the whole label. I need different colors for the same label. Because up to 4 serieses correspond to one axis.
I know that I can set the color of the labels with the setLabelPaint method. But it sets one color for the whole label. I need different colors for the same label. Because up to 4 serieses correspond to one axis.