Adding more symbols to SymbolAxis!

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
wayi
Posts: 1
Joined: Mon Jun 03, 2019 10:55 am
antibot: No, of course not.

Adding more symbols to SymbolAxis!

Post by wayi » Mon Jun 03, 2019 11:05 am

I am using SymbolAxis as value axis in XYPlot and I want to add more symbols to the axis after the plot is created and shown.

Like the plot is created with assigned symbol axis ("a", "b", "c") and I want to add "d".

Is this possible to do ? or there are alternative ways ?

Thank You

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Adding more symbols to SymbolAxis!

Post by John Matthews » Thu Jun 13, 2019 6:14 pm

I don't see way to update the list of symbols used by an existing SymbolAxis, but you can creates a new one and apply it to your plot; listeners should see a new PlotChangeEvent.

Locked