Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
Additional data on each DataSeriesItem
Hi, I can`t find a way to set additional data on a DataSeriesItem for use when calling
setPointFormat("{point.name}: <br />{point.y}<br />{point.x}<br />");
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!
Last updated on
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;
}
}
Last updated on
You cannot reply to this thread.