use of com.vaadin.addon.charts.model.PlotOptionsBoxplot in project charts by vaadin.
the class BoxPlotExample method getPlotBoxOptions.
private PlotOptionsBoxplot getPlotBoxOptions() {
PlotOptionsBoxplot options = new PlotOptionsBoxplot();
if (useCustomStyles.getValue()) {
// optional styling
options.setMedianColor(new SolidColor("cyan"));
options.setMedianWidth(1);
options.setStemColor(new SolidColor("green"));
options.setStemDashStyle(DashStyle.SHORTDOT);
options.setStemWidth(4);
options.setWhiskerColor(new SolidColor("magenta"));
options.setWhiskerLength("70");
options.setWhiskerWidth(5);
}
return options;
}
use of com.vaadin.addon.charts.model.PlotOptionsBoxplot in project charts by vaadin.
the class ChartTypes method chartTypesBoxplotPlotoptionsSnippet1.
public void chartTypesBoxplotPlotoptionsSnippet1() {
Chart chart = new Chart(ChartType.BOXPLOT);
Configuration conf = chart.getConfiguration();
// Set median line color and thickness
PlotOptionsBoxplot plotOptions = new PlotOptionsBoxplot();
plotOptions.setMedianColor(SolidColor.BLUE);
plotOptions.setMedianWidth(3);
conf.setPlotOptions(plotOptions);
}
Aggregations