Search found 10 matches
- Fri Aug 06, 2010 11:08 pm
- Forum: JFreeChart
- Topic: Redrawing chart after dataset changed. How ?
- Replies: 13
- Views: 29141
Re: Redrawing chart after dataset changed. How ?
Thanks for that. I will have a good luck at it tomorrow
- Fri Aug 06, 2010 10:27 pm
- Forum: JFreeChart
- Topic: Changing selected plot colour
- Replies: 0
- Views: 2078
Changing selected plot colour
I have an interactive chart that enables me to click a point on the chart and use the mouse arrows to move the point. The finishing touch would be to have the point change to a different colour so I can see it is selected.
Anyone have any sample code on the easiest way to do this ?
Thanks
Anyone have any sample code on the easiest way to do this ?
Thanks
- Fri Aug 06, 2010 9:19 pm
- Forum: JFreeChart
- Topic: Redrawing chart after dataset changed. How ?
- Replies: 13
- Views: 29141
Re: Redrawing chart after dataset changed. How ?
stupid question, but how do I get a handle on the underlying xyseries from the actual chart instance ?
I have been using eclipse, but there seems to be so many associations with the chart that I can't see the woods for the trees.
Thanks for your help, by the way.
I have been using eclipse, but there seems to be so many associations with the chart that I can't see the woods for the trees.
Thanks for your help, by the way.
- Fri Aug 06, 2010 7:40 pm
- Forum: JFreeChart
- Topic: Redrawing chart after dataset changed. How ?
- Replies: 13
- Views: 29141
Re: Redrawing chart after dataset changed. How ?
Thanks for that. What is the easiest option for updating the dataset ?
Once I have created my chart I don't what the hassle of having to traverse the object of the chart to locate the point that I want to update?
Once I have created my chart I don't what the hassle of having to traverse the object of the chart to locate the point that I want to update?
- Fri Aug 06, 2010 2:04 pm
- Forum: JFreeChart
- Topic: Redrawing chart after dataset changed. How ?
- Replies: 13
- Views: 29141
Re: Redrawing chart after dataset changed. How ?
Sorry, I misunderstood your previous posting. Double/Float is immutable, so your references change, rather than the objects themselves. What you really want to do, is update your dataset. Either re-create the dataset and set it via plot.setDataset(), or get a reference to the used dataset and updat...
- Fri Aug 06, 2010 1:36 pm
- Forum: JFreeChart
- Topic: Redrawing chart after dataset changed. How ?
- Replies: 13
- Views: 29141
Re: Redrawing chart after dataset changed. How ?
Here is the full source code of the create combined chart public static JFreeChart createCombinedChart(GraphableObject graphObject) { final XYSeries altitudeSeries = new XYSeries("Altitude"); final XYSeries slopeSeries = new XYSeries("Slope"); for(GraphableObject.GraphPoint point : graphObject.getGr...
- Fri Aug 06, 2010 10:08 am
- Forum: JFreeChart
- Topic: Redrawing chart after dataset changed. How ?
- Replies: 13
- Views: 29141
Re: Redrawing chart after dataset changed. How ?
I don't quite get this. This is the code where I create my chart final XYSeries altitudeSeries = new XYSeries("Altitude"); final XYSeries slopeSeries = new XYSeries("Slope"); for(GraphableObject.GraphPoint point : graphObject.getGraphPoints()) { altitudeSeries.add( point.getDistancePoint(), point.ge...
- Thu Aug 05, 2010 11:51 pm
- Forum: JFreeChart
- Topic: Redrawing chart after dataset changed. How ?
- Replies: 13
- Views: 29141
Redrawing chart after dataset changed. How ?
It has been a long day and if anyone can help I would be most grateful. I have extended ChartPanel to enable me to implement KeyPressed events on the chart. I have got that working and I am incrementing / decrementing the value that was mouse clicked by using the up / down arrow. Having changed the ...
- Wed Aug 04, 2010 8:40 pm
- Forum: JFreeChart
- Topic: Zooming in function
- Replies: 0
- Views: 2179
Zooming in function
When I create an XYChart I can zoom in but the zoom is on the vertical axis, where as a combined chart seems to zoom on the horizontal plane. Is there a way to change this ?
Thanks
Thanks
- Tue Jul 27, 2010 3:15 pm
- Forum: JFreeChart
- Topic: Dragging Line Chart Points
- Replies: 2
- Views: 5017
Dragging Line Chart Points
I have an interactive linc chart that enables me to click a point on the chart which in turn then highlights the corresponding row in my JTable. What I ideally would like to be able to do is to click the point and then drag the pointer UP or DOWN and get it to change the value. Is there an easy way ...