org.dashbuilder.renderer.chartjs.lib.options.LegendOption 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.options;
import com.google.gwt.core.client.JavaScriptObject;
public class LegendOption extends ChartOption{
protected LegendOption(){
super();
}
public static LegendOption get(){
return JavaScriptObject.createObject().cast();
}
/**
* Template String of legend widget.
* For example -legend\"><% for (var i=0; i- \"><%if(datasets[i].label){%><%=datasets[i].label%><%}%>
<%}%>
* @param template
*/
public final native void setLegendTemplate(String template)/*-{
this.legendTemplate = template;
}-*/;
}