Format information when hovering with mouse over the points?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
am
Posts: 22
Joined: Mon May 09, 2005 4:56 pm

Format information when hovering with mouse over the points?

Post by am » Mon May 23, 2005 1:31 pm

When i move my mouse over a specific point. It gives me the details in terms of milliseconds and a certain value. I wanted to know is it possible to format this information say perhaps. when i hover over the point it shows me the information in terms of a date not milliseconds???

Thanks if u can help!!!

Am :wink:

Guest

Post by Guest » Tue May 24, 2005 9:28 pm

Code: Select all

seriesRenderer.setToolTipGenerator(
                            new StandardXYToolTipGenerator(
                                                      StandardXYToolTipGenerator.DEFAULT_TOOL_TIP_FORMAT
                                                     ,new SimpleDateFormat("HH:mm:ss")
                                                     ,NumberFormat.getInstance()
                                                          )
                                                      );

Locked