Click here to Skip to main content
12,457,938 members (49,465 online)
Rate this:
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 19:27pm
Updated 1-Oct-12 19: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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2016
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