Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Java
Dear Sir / Madam
Good Morning , I am new to jfreechart and am trying to make tooltips showup on a simple bar chart. But no tooltips are showing up.
My code
JFreeChart chart = ChartFactory.createBarChart(title, label,
				"Number of Students",
 dataSet, PlotOrientation.VERTICAL,
 true, true,
CategoryPlot plot = chart.getCategoryPlot();
BarRenderer renderer = (BarRenderer) plot.getRenderer();
renderer.setToolTipGenerator(new StandardCategoryToolTipGenerator());
Give me some guidance to proceed further
Thanks in advance
Posted 1-Oct-12 20:27pm
Edited 1-Oct-12 20:43pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Mobile
Web04 | 2.8.150305.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100