how to show pointed values onto the chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
doudou
Posts: 27
Joined: Tue Mar 14, 2006 6:05 pm

how to show pointed values onto the chart

Post by doudou » Wed Apr 26, 2006 9:53 am

hello all,

Here is my issue:

I have a chart with multiple curves.
I added a vertical crosshair on it, so that we can point multiple points at the same time.

How to print directly on the chart all points that have been designed? I'm pretty sure it's possible...

Thank you very much for your help.

doudou
Posts: 27
Joined: Tue Mar 14, 2006 6:05 pm

Post by doudou » Wed Apr 26, 2006 9:56 am

I actually would like it to show just like a tooltip, but permanently and for all curves at the same time

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Apr 26, 2006 10:47 am

Do you mean something like CrosshairDemo2.java, but with the values displayed directly on the chart rather than in a table below the chart? That would need some custom code - either an new annotation type or a direct modification to the plot drawing code.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

doudou
Posts: 27
Joined: Tue Mar 14, 2006 6:05 pm

Post by doudou » Wed Apr 26, 2006 10:56 am

david.gilbert wrote:Do you mean something like CrosshairDemo2.java, but with the values displayed directly on the chart rather than in a table below the chart? That would need some custom code - either an new annotation type or a direct modification to the plot drawing code.
Exactly!

Could you please give me directions on what I should implement to to this? I hava no clue on what to do and in what order :oops:

Locked