Search in sources :

Example 11 with SolidColor

use of com.vaadin.flow.component.charts.model.style.SolidColor in project flow-components by vaadin.

the class LumoLightTheme method setAxisDefaults.

protected void setAxisDefaults(AxisStyle style) {
    style.setGridLineColor(GRID_COLOR);
    style.setLineColor(GRID_COLOR);
    style.setLineWidth(0);
    style.setTickWidth(0);
    style.setTickColor(new SolidColor(192, 208, 224));
    style.setAlternateGridColor(new SolidColor(255, 255, 255, 0.0));
    style.getTitle().setColor(TEXT_COLOR);
    style.getTitle().setFontWeight(FontWeight.NORMAL);
    style.getSubtitle().setColor(SUBTITLE_COLOR);
    style.getSubtitle().setFontSize("14px");
    style.getSubtitle().setFontWeight(FontWeight.NORMAL);
    style.getLabels().setFontWeight(FontWeight.NORMAL);
    style.getLabels().setColor(LABEL_COLOR);
    style.getLabels().setFontSize("14px");
}
Also used : SolidColor(com.vaadin.flow.component.charts.model.style.SolidColor)

Aggregations

SolidColor (com.vaadin.flow.component.charts.model.style.SolidColor)11 Chart (com.vaadin.flow.component.charts.Chart)5 Configuration (com.vaadin.flow.component.charts.model.Configuration)4 YAxis (com.vaadin.flow.component.charts.model.YAxis)3 DataLabels (com.vaadin.flow.component.charts.model.DataLabels)2 DataSeries (com.vaadin.flow.component.charts.model.DataSeries)2 PlotOptionsOrganization (com.vaadin.flow.component.charts.model.PlotOptionsOrganization)2 Tooltip (com.vaadin.flow.component.charts.model.Tooltip)2 XAxis (com.vaadin.flow.component.charts.model.XAxis)2 H2 (com.vaadin.flow.component.html.H2)2 Component (com.vaadin.flow.component.Component)1 Board (com.vaadin.flow.component.board.Board)1 AxisTitle (com.vaadin.flow.component.charts.model.AxisTitle)1 ChartType (com.vaadin.flow.component.charts.model.ChartType)1 ColorAxis (com.vaadin.flow.component.charts.model.ColorAxis)1 Crosshair (com.vaadin.flow.component.charts.model.Crosshair)1 DataSeriesItem (com.vaadin.flow.component.charts.model.DataSeriesItem)1 DataSeriesItemBullet (com.vaadin.flow.component.charts.model.DataSeriesItemBullet)1 HeatSeries (com.vaadin.flow.component.charts.model.HeatSeries)1 Inactive (com.vaadin.flow.component.charts.model.Inactive)1