Hi,
I would like to set the tooltip to charts. When ever i get the cursor on to the chart, it should display the (x,y) tuple of that point ( not the high & low values).
How should i get this kind of feature?
Thanks in advance.
With Regards,
Rajendra.
ToolTip.
Re: ToolTip.
You should be able to replace the tool tip generator in the chart's renderer:
XYPlot plot = myChart.getXYPlot();
XYItemRenderer renderer = plot.getItemRenderer();
renderer.setToolTipGenerator(myToolTipGenerator);
Maybe the StandardXYToolTipGenerator class will work for you, or the TimeSeriesToolTipGenerator...if not, just create your own class and implement the XYToolTipGenerator interface.
Regards,
DG.
XYPlot plot = myChart.getXYPlot();
XYItemRenderer renderer = plot.getItemRenderer();
renderer.setToolTipGenerator(myToolTipGenerator);
Maybe the StandardXYToolTipGenerator class will work for you, or the TimeSeriesToolTipGenerator...if not, just create your own class and implement the XYToolTipGenerator interface.
Regards,
DG.