Search in sources :

Example 1 with PlotOptionsArearange

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);
}
Also used : SolidColor(com.vaadin.flow.component.charts.model.style.SolidColor) PlotOptionsArearange(com.vaadin.flow.component.charts.model.PlotOptionsArearange)

Aggregations

PlotOptionsArearange (com.vaadin.flow.component.charts.model.PlotOptionsArearange)1 SolidColor (com.vaadin.flow.component.charts.model.style.SolidColor)1