org.dashbuilder.renderer.chartjs.lib.data.AreaChartData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dashbuilder-renderer-chartjs Show documentation
Show all versions of dashbuilder-renderer-chartjs Show documentation
Dashbuilder Renderer for the Chart JS API
The newest version!
package org.dashbuilder.renderer.chartjs.lib.data;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JsArrayString;
public class AreaChartData extends JavaScriptObject{
protected AreaChartData(){
}
public final void setLabels(String[] labels){
JsArrayString array = JsArrayString.createArray().cast();
for(String str : labels)
array.push(str);
setLabels(array);
}
private final native void setLabels(JsArrayString labels) /*-{
this.labels = labels;
}-*/;
public final native JsArray getSeries() /*-{
return this.datasets;
}-*/;
public final native void setSeries(JsArray series) /*-{
this.datasets = series;
}-*/;
}