Click here to Skip to main content
13,042,630 members (75,837 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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 19:27pm
Updated 1-Oct-12 19:43pm
JF201555.4K
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2017
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