Search found 4 matches

by iraklismath
Thu Jun 26, 2008 3:26 pm
Forum: JFreeChart
Topic: setEnabled(false)
Replies: 2
Views: 3496

setEnabled(false)

Is there a way to disable a chart component in order to be displayed in grayscale, JButton.setEnabled(false) style. ? temperatureDataset = new DefaultValueDataset(new Double(-1)); JFreeChart temperatureChart = createThermoChart(temperatureDataset); ChartPanel temperatureChartPanel = new ChartPanel(t...
by iraklismath
Tue Jan 22, 2008 5:50 pm
Forum: JFreeChart
Topic: Question: Howto display selected categories onthe DomainAxis
Replies: 0
Views: 1801

Question: Howto display selected categories onthe DomainAxis

I have a bar chart that the domain axis ranges from 0 to 360 (i'm plotting degrees). So i Have this : for (int i = 0; i < 360; i++) { veloCategoryDataset.addValue(bins[i], "Row 1", String.valueOf(i)); } Is there a way to display the label of only selected categories on the Chart ? eg, 0 - 90 - 180 -...
by iraklismath
Tue Jan 22, 2008 5:41 pm
Forum: JFreeChart
Topic: Changing the dataset on runtime?
Replies: 1
Views: 2455

found a solution.

simply adding / removing values from the veloCategoryDataset does the trick
by iraklismath
Tue Jan 22, 2008 10:51 am
Forum: JFreeChart
Topic: Changing the dataset on runtime?
Replies: 1
Views: 2455

Changing the dataset on runtime?

Is it possible to give a new dataset to a JFreeChart chart once i have created it ? As in : Initial creation : DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.addValue(1.0, "Row 1", "Column 1"); dataset.addValue(5.0, "Row 1", "Column 2"); dataset.addValue(2.0, "Row 1", "Column...