2
votes

is there a way to make tooltip in jfreechart data points to appear quicker? here's how I customize the tooltip:

    renderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator(){
        public String generateToolTip(XYDataset dataset, int series, int item) {
           double y =dataset.getYValue(series, item);
           double x = dataset.getXValue(series, item);
           return x+" m, "+y+" %";
        }
    });

1
Quicker than what? Have you tried setInitialDelay()? Please edit your question to include an sscce that exhibits the problem you describe.trashgod

1 Answers

4
votes

ChartPanel.setInitialDelay(x) is the solution as commented above