How to make jfreechart display tooltip information faster

I would like to make a hint with point information faster. How can I do it? with the default setting, I have to hover over a point, and then wait to see information about the coordinates of the point. I want the coordinates of the point to be immediately available. How can i do this?

enter image description here

0
source share
1 answer

ChartPanel provides getInitialDelay() and setInitialDelay() to query and change the "initial value of the tooltip delay used in this chart panel." As a concrete example, based on BarChartDemo1 , the following change in the constructor completely eliminates the initial delay:

 public BarChartDemo1(String title) { super(title); … chartPanel.setInitialDelay(0); setContentPane(chartPanel); } 
+1
source

Source: https://habr.com/ru/post/1369170/


All Articles