kurtomerfaruk / wicked-charts

Automatically exported from code.google.com/p/wicked-charts
0 stars 0 forks source link

Add support for multiple series tolltip prefix and suffix #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be a big enhancement if u can configure different suffix or prefix for 
every series/line in the tooltip.

Like explained here: http://jsfiddle.net/aXvcw/2/ 
(http://stackoverflow.com/questions/15667749/a-different-suffix-for-each-line-on
-highstock-highcharts)

Original issue reported on code.google.com by Chakaaa on 31 Oct 2013 at 11:50

GoogleCodeExporter commented 9 years ago
Found a Solution ... Tried to set global tooltip but not for the series. 

Solution:

Set a Tooltip for every series

Series<Number> series2 = new SimpleSeries();
        series2.setData(/*Some data*/);
        series2.setTooltip(new Tooltip().setValueSuffix(" €"));

Series<Number> series1 = new SimpleSeries();
        series1.setData(/*Some data*/);
        series1.setTooltip(new Tooltip().setValueSuffix(" m³"));

Original comment by Chakaaa on 1 Nov 2013 at 12:45

GoogleCodeExporter commented 9 years ago
Thanks for sharing your solution!

Original comment by tom.homb...@gmail.com on 1 Nov 2013 at 10:11