Search found 21 matches

by deepujain
Thu Apr 10, 2008 9:49 am
Forum: JFreeChart
Topic: How to get the step size of Y Axis [Range Axis]
Replies: 10
Views: 13600

Thanks, the solution worked.
by deepujain
Thu Apr 03, 2008 5:37 pm
Forum: JFreeChart
Topic: How to get the step size of Y Axis [Range Axis]
Replies: 10
Views: 13600

David can you please let me know how to do this?
by deepujain
Mon Mar 31, 2008 9:56 am
Forum: JFreeChart
Topic: Customize legend?
Replies: 2
Views: 4897

Yes its possible to customize legends. First you need to remove the existing legends from the chart using the following piece of code. //Remove all the legends from chart. for(int i=0;i<mycollection.getItemCount();i++){ chart.removeLegend(); } Now create LegendItemSource mysource= new MyLegendSource...
by deepujain
Mon Mar 31, 2008 9:40 am
Forum: JFreeChart
Topic: How to get the step size of Y Axis [Range Axis]
Replies: 10
Views: 13600

Thanks, But it did not work, The value returned by NumberAxis.getTickUnit().getSize() is always 1.0. Currently my Y Axis reads as 1575, 1600, 1625, 1650, ...... 2250,2275 and hence the step size here is 25. Is it possible to get this value. The Y axis will vary depending on the data. Please let me k...
by deepujain
Fri Mar 28, 2008 11:00 am
Forum: JFreeChart
Topic: Improving performance for huge datasets - (autosort)
Replies: 2
Views: 3644

I plot around 50+ [can go to 100] graphs and for each graph i have new XYSeries("Label") and each series i add to XYSeriesCollection(). I later use this collection to draw timeseries graph and when i add the data into the series i would have already sorted it. So will using the same logic new XYSeri...
by deepujain
Fri Mar 28, 2008 10:57 am
Forum: JFreeChart
Topic: How to get the step size of Y Axis [Range Axis]
Replies: 10
Views: 13600

David And Others please reply to this question.
by deepujain
Wed Mar 26, 2008 7:46 am
Forum: JFreeChart
Topic: Is it possible to mark a visible point on a graph?
Replies: 4
Views: 5468

Yes i did. My problem was that i want a specifc number of point[shape] and not a shape on each data point in data set. Adding XYShapeAnnotation will mark each data point in the dataset.
Hope i used was correct. It did work for me.
by deepujain
Wed Mar 26, 2008 7:44 am
Forum: JFreeChart
Topic: How to create fixed-size shape annotation?
Replies: 1
Views: 2748

If you want a point [shape] on each point on the graph then use what you have done ,But if you want only one/two... points then try the following Here is what worked for me 1) Write a custom class class CircleDrawer implements Drawable { /** The outline paint. */ private Paint outlinePaint; /** The ...
by deepujain
Wed Mar 26, 2008 7:41 am
Forum: JFreeChart
Topic: Web Application ChartsTooltips
Replies: 5
Views: 6511

To use JFreechart for web you will need to use only those graph types [with out controls that some graph types offer] that can be rendered as image.

JFreecHart ---> Image [Graph] ---> Use this as a image in your web app.
Hope this helps.
by deepujain
Tue Mar 25, 2008 5:40 pm
Forum: JFreeChart
Topic: Hyperlink on JFreechart
Replies: 3
Views: 4928

Go throug this link the same logic can be applied to get hyperlinks in graph when used with web applications.
http://www.jfree.org/phpBB2/viewtopic.php?t=24175

This should give you a nice starting point.
Thanks
Deepak
by deepujain
Tue Mar 25, 2008 5:37 pm
Forum: JFreeChart
Topic: Is it possible to mark a visible point on a graph?
Replies: 4
Views: 5468

Thanks it was a nice pointer , Though i had to do a lot of google after the start you gave. Here is what worked for me 1) Write a custom class class CircleDrawer implements Drawable { /** The outline paint. */ private Paint outlinePaint; /** The outline stroke. */ private Stroke outlineStroke; /** T...
by deepujain
Tue Mar 25, 2008 5:34 pm
Forum: JFreeChart
Topic: Web Application ChartsTooltips
Replies: 5
Views: 6511

Since you are using jfreechart with Webapp then your graph would be dumped into one of your image tags say like this <img src="graph.jsp"/> Graph.jsp will dump the graph as PNG. Here is what you need to do Read this tut http://www.w3schools.com/tags/tag_map.asp 1) String toolTipFormat="{0}: {2}" + u...
by deepujain
Tue Mar 25, 2008 12:01 pm
Forum: JFreeChart
Topic: Is it possible to mark a visible point on a graph?
Replies: 4
Views: 5468

Is it possible to mark a visible point on a graph?

Hi,
I have a time series graph , I want to highlight a particular point in the graph which will indicate the peak value in the graph , Is it possible to highlight a particular point say with green circle?
Please help.
Thanks
Deepak
by deepujain
Tue Mar 25, 2008 11:57 am
Forum: JFreeChart
Topic: How to position ItemLabel on a graph.
Replies: 0
Views: 1887

How to position ItemLabel on a graph.

Hi, I have a time series grpah where i display a label which indicates the peak value in the entire graph. Since my range is auto sometimes the label is partly visible. Is it possible to position the label? renderer.setItemLabelGenerator(new flagPeakToolTipGenerator()); renderer.setItemLabelsVisible...
by deepujain
Tue Mar 25, 2008 11:39 am
Forum: JFreeChart
Topic: How to get the step size of Y Axis [Range Axis]
Replies: 10
Views: 13600

How to get the step size of Y Axis [Range Axis]

I am newbie. I have a graph where the range is set to auto and the step size can vary depending on the data. For example if the Y Axis [Range Axis] is 50,100,150,200 ........ Here the step size is 50. I need to get this data. Is it possible. Please help. I searched the forum on how to get the step s...