Click here to Skip to main content
11,481,916 members (65,525 online)
Rate this: bad
good
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,
false);
 
CategoryPlot plot = chart.getCategoryPlot();
BarRenderer renderer = (BarRenderer) plot.getRenderer();
 
renderer.setToolTipGenerator(new StandardCategoryToolTipGenerator());
Give me some guidance to proceed further

Thanks in advance

Sankar
Posted 1-Oct-12 20:27pm
Edited 1-Oct-12 20:43pm
JF201553.7K
v2

1 solution

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

Solution 1

  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.150520.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