Search found 9 matches
- Thu Jul 12, 2007 2:57 pm
- Forum: JFreeChart
- Topic: Redraw/repaint a graph
- Replies: 6
- Views: 7960
Thanks!
Thanks a lot uvoigt, it works!
- Thu Jul 12, 2007 4:03 am
- Forum: JFreeChart
- Topic: Redraw/repaint a graph
- Replies: 6
- Views: 7960
Nope not creatChartPanel()
Hi uvoigt, Thanks for the reply. This is my createChartPanel(): private ChartPanel createChartPanel() { dataset = createDataset(); ChartPanel cp = new ChartPanel(createChart(dataset)); cp.setPreferredSize(new Dimension(500, 220)); cp.setBackground(Color.WHITE); return cp; } The dataset has been decl...
- Wed Jul 11, 2007 2:50 am
- Forum: JFreeChart
- Topic: Redraw/repaint a graph
- Replies: 6
- Views: 7960
Still doesn't update
Hi David, I have updated the dataset but the chart still doesn't update. This is the chart code. private JFreeChart createChart(IntervalXYDataset dataset) { JFreeChart chart = ChartFactory.createXYBarChart( null, "m/z", false, null, dataset, PlotOrientation.VERTICAL, false, false, false ); chart.set...
- Mon Jul 09, 2007 2:09 pm
- Forum: JFreeChart
- Topic: Redraw/repaint a graph
- Replies: 6
- Views: 7960
Redraw/repaint a graph
Hi, I'm wondering how can I redraw a chart that is already displaying a chart. I want the user to push a button and recalculate the chart and have it redrawn. Which would I have to change, the IntervalXYDataset, the XYSeriesCollection, the XYPlot or the XYBarRenderer? I was thinking that I just have...
- Thu Jun 28, 2007 2:19 pm
- Forum: JFreeChart
- Topic: Custom labels for series in a chart
- Replies: 0
- Views: 2030
Custom labels for series in a chart
Hi, I have a chart that has 3 series on it (coloured differently) and I want to label the series (each series has a number of bar values) with custom labels (I'm using the XYBarRenderer). Is there a way for me to label each value in a series and make them visible/invisible when I make the series vis...
- Mon Jul 10, 2006 7:06 am
- Forum: JFreeChart
- Topic: Setting series as visible/invisible and setting range axis
- Replies: 1
- Views: 2976
Setting series as visible/invisible and setting range axis
I have 2 questions. Question 1 I have used the source codes for the XYBarChartDemo4. I have succeeded in changing the colour of the individual plots (I have 3 series in 1 collection). plot.getRenderer().setSeriesPaint(2, Color.gray); I'd like to make the series visible/invisible depending on the use...
- Wed Jul 05, 2006 5:16 am
- Forum: JFreeChart
- Topic: Width of bar for XY Bar Chart
- Replies: 1
- Views: 2162
Width of bar for XY Bar Chart
Hi,
Is there a way for me to 'force' the width of an XY Bar Chart.
The lines of the plot like like lines when it is drawn but when I zoom in, it becomes bars. Can I force it to be lines and not bars?
Thanks.
Desmond
Is there a way for me to 'force' the width of an XY Bar Chart.
The lines of the plot like like lines when it is drawn but when I zoom in, it becomes bars. Can I force it to be lines and not bars?
Thanks.
Desmond
- Fri Apr 28, 2006 1:09 am
- Forum: JFreeChart
- Topic: Newbie question: Which graph to create
- Replies: 3
- Views: 4272
- Thu Apr 27, 2006 6:54 am
- Forum: JFreeChart
- Topic: Newbie question: Which graph to create
- Replies: 3
- Views: 4272
Newbie question: Which graph to create
Hi,
I'm trying to redo an application and it displays a graph like this.
http://static.flickr.com/49/135766592_9 ... b5.jpg?v=0
1) Should I use histogram for this?
2) What is the bins in the HistogramDataset().addSeries(key, values, bins)?
Thanks.
Desmond
I'm trying to redo an application and it displays a graph like this.
http://static.flickr.com/49/135766592_9 ... b5.jpg?v=0
1) Should I use histogram for this?
2) What is the bins in the HistogramDataset().addSeries(key, values, bins)?
Thanks.
Desmond