Hakon
(Håkon Lind)
1
Hi, I can`t find a way to set additional data on a DataSeriesItem for use when calling
setPointFormat(“{point.name}:
{point.y}
{point.x}
”);
In the underlying highcharts this is possible using the technique described here:
http://stackoverflow.com/questions/8514457/set-additional-data-to-highcharts-series
How can I do this in VaadinCharts?
Thanks!
Johannes10
(Johannes Häyry)
2
Just extend DataSeriesItem and add some property. Then you can access it with {point.myProperty} or whatever you name it.
public static class MyDataSeriesItem extends DataSeriesItem {
private String myProperty;
public MyDataSeriesItem(Date yearDate, Number temp, String myMeta) {
super(yearDate, temp);
this.myProperty = myMeta;
}
public String getMyProperty() {
return myProperty;
}
public void setMyProperty(String myMeta) {
this.myProperty = myMeta;
}
}