Hey,
I want that on my chart item label display only when i bring mouse on chart.
i.e.when i move cursor on chart it should display y value.i am using
CategoryItemLabelGenerator generator = new StandardCategoryItemLabelGenerator(
"{2}", new DecimalFormat("0.0"));
line3d.setSeriesItemLabelGenerator(dataset.getRowIndex(titleMonitor),generator);
line3d.setItemLabelsVisible(true);
It works great but it draws label on all points.But i want only when i bring cursor on chart.
Any suggestion
Thanks in advance!!
How to show Item Label dynamically !!
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Why not use tool tips for that?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You can get tooltips in a web app by creating an HTML image map for your chart.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

