Search in sources :

Example 26 with ListSeries

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

the class HasItemTest method getItemWithListSeriesThrowsUnsupportedOperationException.

@Test(expected = UnsupportedOperationException.class)
public void getItemWithListSeriesThrowsUnsupportedOperationException() {
    Chart chart = new Chart();
    ListSeries series = new ListSeries(1, 2, 3);
    chart.getConfiguration().addSeries(series);
    HasItem hasItem = new HasItemTestImpl(chart, 0, 0);
    hasItem.getItem();
}
Also used : HasItem(com.vaadin.flow.component.charts.events.HasItem) ListSeries(com.vaadin.flow.component.charts.model.ListSeries) Test(org.junit.Test)

Aggregations

ListSeries (com.vaadin.flow.component.charts.model.ListSeries)26 Configuration (com.vaadin.flow.component.charts.model.Configuration)24 YAxis (com.vaadin.flow.component.charts.model.YAxis)21 Chart (com.vaadin.flow.component.charts.Chart)17 XAxis (com.vaadin.flow.component.charts.model.XAxis)17 Tooltip (com.vaadin.flow.component.charts.model.Tooltip)11 PlotOptionsSeries (com.vaadin.flow.component.charts.model.PlotOptionsSeries)7 Labels (com.vaadin.flow.component.charts.model.Labels)5 Legend (com.vaadin.flow.component.charts.model.Legend)5 PlotOptionsColumn (com.vaadin.flow.component.charts.model.PlotOptionsColumn)5 AxisTitle (com.vaadin.flow.component.charts.model.AxisTitle)4 PlotOptionsArea (com.vaadin.flow.component.charts.model.PlotOptionsArea)4 Test (org.junit.Test)4 Crosshair (com.vaadin.flow.component.charts.model.Crosshair)3 DataLabels (com.vaadin.flow.component.charts.model.DataLabels)3 Pane (com.vaadin.flow.component.charts.model.Pane)3 PlotOptionsLine (com.vaadin.flow.component.charts.model.PlotOptionsLine)3 SeriesTooltip (com.vaadin.flow.component.charts.model.SeriesTooltip)3 NativeButton (com.vaadin.flow.component.html.NativeButton)3 ArrayList (java.util.ArrayList)3