use of com.vaadin.addon.charts.Chart in project charts by vaadin.
the class ConfigurationTest method getPlotOptionsForType_PlotOptionsLineIsCreated_ReturnTheLinePlotOptions.
@Test
public void getPlotOptionsForType_PlotOptionsLineIsCreated_ReturnTheLinePlotOptions() {
Chart chart = new Chart();
PlotOptionsLine expected = new PlotOptionsLine();
chart.getConfiguration().setPlotOptions(expected);
AbstractPlotOptions result = chart.getConfiguration().getPlotOptions(ChartType.LINE);
assertEquals(expected, result);
}
use of com.vaadin.addon.charts.Chart in project charts by vaadin.
the class AdvancedUse method chartsAdvancedExportSnippet2.
public void chartsAdvancedExportSnippet2() {
Chart chart = new Chart();
Exporting exporting = new Exporting(true);
exporting.setFilename("mychartfile.pdf");
chart.getConfiguration().setExporting(exporting);
}
use of com.vaadin.addon.charts.Chart in project charts by vaadin.
the class AdvancedUse method chartsAdvancedExportSnippet1.
public void chartsAdvancedExportSnippet1() {
Chart chart = new Chart();
chart.getConfiguration().setExporting(true);
}
use of com.vaadin.addon.charts.Chart in project charts by vaadin.
the class BasicUse method basicUseSnippet1.
public void basicUseSnippet1() {
Chart chart = new Chart(ChartType.COLUMN);
// 100% by default
chart.setWidth("400px");
// 400px by default
chart.setHeight("300px");
}
use of com.vaadin.addon.charts.Chart in project charts by vaadin.
the class BasicUse method basicUsePlotOptionsSnippet1.
public void basicUsePlotOptionsSnippet1() {
Chart chart = new Chart(ChartType.COLUMN);
Configuration conf = chart.getConfiguration();
PlotOptionsLine plotOptions = new PlotOptionsLine();
plotOptions.setMarker(new Marker(false));
conf.setPlotOptions(plotOptions);
}
Aggregations