use of com.vaadin.flow.component.charts.model.PlotOptionsArearange in project flow-components by vaadin.
the class ColorThreshold method initDemo.
@Override
public void initDemo() {
super.initDemo();
PlotOptionsArearange plotOptions = new PlotOptionsArearange();
// Make "value" below -5 displayed with another color. Default threshold
// value is 0
plotOptions.setThreshold(-5);
plotOptions.setNegativeColor(new SolidColor("#434348"));
chart.getConfiguration().setPlotOptions(plotOptions);
}
Aggregations