Search found 16 matches

by jusepi
Mon Nov 13, 2006 8:13 am
Forum: JFreeChart
Topic: Getting X,Y location and size of plot of rendered chart
Replies: 0
Views: 1830

Getting X,Y location and size of plot of rendered chart

Is there any way to get the relative position of the plot origin and max points of a plot once it's rendered? I'd like to see if there is a way to display scaled position on the plot while the mouse is moving using javascript. I have the browser scripting down, but now I need the offset and size of ...
by jusepi
Tue Oct 17, 2006 8:03 pm
Forum: JFreeChart
Topic: How do you place a footer (subtitle) below the legend?
Replies: 4
Views: 5726

Nothing seemed to work until i set the legend to false when I create the chart and add the subtitle (footer) before I add the legend. The following code seems to create the same exact legend as the default: LegendTitle legend = new LegendTitle(plot); legend.setPosition(RectangleEdge.BOTTOM); legend....
by jusepi
Tue Oct 17, 2006 2:24 am
Forum: JFreeChart
Topic: How do you place a footer (subtitle) below the legend?
Replies: 4
Views: 5726

Actually I set the position. The vertical alignment did nothing:

Code: Select all

	footer.setPosition(RectangleEdge.BOTTOM);
by jusepi
Tue Oct 17, 2006 2:01 am
Forum: JFreeChart
Topic: Line chart's X-Axis labels are not showing completely
Replies: 8
Views: 14693

maybe you could try having the labels on an angle instead of horizontal to allow for more room for the text..
by jusepi
Tue Oct 17, 2006 1:59 am
Forum: JFreeChart
Topic: How do you place a footer (subtitle) below the legend?
Replies: 4
Views: 5726

How do you place a footer (subtitle) below the legend?

I'm trying to put a footer in my charts by adding a subtitle, but even when I set the vertical alignment to BOTTOM, the legend still shows below the subtitle. Is there any work around? If not, can anyone point me in the right direction in the JFreeChart package? TIA.
by jusepi
Fri Oct 13, 2006 1:47 am
Forum: JFreeChart
Topic: LegendItemToolTipGenerator - tooltips for legend items??
Replies: 4
Views: 4698

ya, that's what I found on sourceforge.
But I've added the changes you mentioned and copied the LegendTitle class from CVS, and it works great. Thanks a bunch for the tips.
by jusepi
Thu Oct 12, 2006 5:00 pm
Forum: JFreeChart
Topic: LegendItemToolTipGenerator - tooltips for legend items??
Replies: 4
Views: 4698

other changes?

Thanks for the note.

What happened to LegendItemBlockContainer? It's marked as dead in CVS, but the latest version of LegendTitle still uses it. Also this means that LegendItemEntity will need to change as well right? So I assume this feature is not working as of yet...
by jusepi
Thu Oct 12, 2006 1:34 am
Forum: JFreeChart
Topic: LegendItemToolTipGenerator - tooltips for legend items??
Replies: 4
Views: 4698

LegendItemToolTipGenerator - tooltips for legend items??

Hi, I would like to put tooltips on the legend items in an XYPlot. I noticed the method: setLegendItemToolTipGenerator(XYSeriesLabelGenerator generator) under the XYLineAndShapeRenderer object. But for some reason, it seems to do nothing. I even see print out statements that I inserted in my own cus...
by jusepi
Sun May 21, 2006 7:02 pm
Forum: JFreeChart
Topic: Plotting non-linear data chronologically
Replies: 0
Views: 2541

Plotting non-linear data chronologically

Does anyone know if JFreechart supports plotting non-linear data? I saw a similar post from a couple years ago, but no info there. If you compare data of 2 parameters like fuel flow and exhaust temperature over time, the paramater values will change in relation to each other. However, if the values ...
by jusepi
Wed May 17, 2006 2:17 pm
Forum: JFreeChart
Topic: can't make graph in jsp work
Replies: 5
Views: 9829

you probably have something extra or missing in your web.xml file. Looks like line 2 is a good place to start. Also, you may want to try using an XML editor like the one found in eclipse.
by jusepi
Wed May 17, 2006 5:15 am
Forum: JFreeChart
Topic: how to set legend tooltips
Replies: 1
Views: 3147

how to set legend tooltips

I need to have tooltips on each entry in the legend of a standard line chart using CategoryDatasets. I noticed a method called getLegendItems() within the CategoryPlot class. So I figure I could just get each LegendItem and set the tooltip. For some reason there's no setToolTipText method in that cl...
by jusepi
Mon May 15, 2006 2:05 pm
Forum: JFreeChart
Topic: trouble generating tooltips with CustomXYToolTipGenerator
Replies: 3
Views: 5792

This is getting a bit messy. sorry about the mess... 2) Why do you create and set a renderer (plot.setRenderer)???ChartFactory.createScatterPlot did this already. Ya figured it out. I was thinking I needed to set a generator for each renderer with one renderer per series. I was thinking in terms of...
by jusepi
Sun May 14, 2006 7:30 pm
Forum: JFreeChart
Topic: trouble generating tooltips with CustomXYToolTipGenerator
Replies: 3
Views: 5792

trouble generating tooltips with CustomXYToolTipGenerator

Also is there a better way of creating custom tooltips? I'd like to be able to add them as I generate the data, so in that case, I'd only have access to the dataset, not the plot. Thanks again.
by jusepi
Sun May 14, 2006 7:26 pm
Forum: JFreeChart
Topic: trouble generating tooltips with CustomXYToolTipGenerator
Replies: 3
Views: 5792

trouble generating tooltips with CustomXYToolTipGenerator

I've been trying to get custom tool tips working on an XYScatter plot for a few days now, but I'm doing something wrong. :? Basically I create a XYSeriesCollection with 2 series and 20 items in each. Then I use the following code to create a chart: JFreeChart chart = ChartFactory.createScatterPlot( ...
by jusepi
Tue May 09, 2006 10:01 pm
Forum: JFreeChart
Topic: How to rotate the domain labels to allow longer labels
Replies: 2
Views: 4104

Nice, works perfect. Thanks much!