ToolTip « XYLineChart « JFreeChart Q&A





1. Array in XYLineChart with Own ToolTip    jfree.org

Hello, i am new to JFreeChart, i already tested some examples of it (PieChart and XYLineChart). these examples works very good and includes also the standard Tooltip (it means: it shows the Dataname, xvalue and yValue in the Tooltip). My question is: I have an 2 dim. Array with 4 columns ( x | y | d1 | d2 ) my ...

2. Can't see TOOLTIPS in XYLineChart (I added XYShapeRenderer)    jfree.org

Code: Select all import javax.swing.JFrame; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.labels.StandardXYToolTipGenerator; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.renderer.xy.*; import org.jfree.data.xy.DefaultXYDataset; public class ToolTipDemo { public static void main(String[] args) { DefaultXYDataset set = new DefaultXYDataset(); set.addSeries("Values",new double[][]{{1,2,3.25,4,5},{10,15,8,37,23}}); ...