Getting the names of the variables used in the chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
leo77
Posts: 9
Joined: Wed May 23, 2007 7:37 pm
Location: Brazil (Porto Alegre, RS)
Contact:

Getting the names of the variables used in the chart

Post by leo77 » Thu Jul 05, 2007 7:56 pm

Hi

How do I get the name of the variables (series inserted in the dataset that the chart use) used in a chart?

I mean, before you add a dataset to a chart, you do like this: (the string "variable name" is the value I want to get)

Code: Select all

TimeSeries s = new TimeSeries("variable name", FixedMillisecond.class);
or like this, for example

Code: Select all

DefaultCategoryDataset barDataset = new DefaultCategoryDataset();
barDataset.setValue(someValue, "A String", "variable name");
So, how do I get the variable names form the chart?

thanks in advance
Leo

Locked