High-Charts Add-on for Vaadin 7+
Java style configurator javascript library highcharts
Java style configurator highcharts JS library
Sample code
LineConfig<String, Integer> config = new LineConfig<>(); config.title().text("График с датами типа 'String'") .and() .subtitle().text("Статические данные") .and() .yAxis().title().text("Количество ($)") .and() .and() .xAxis().title().text("Даты").align(AlignAxis.HIGH) .and() .categories( "01-02-2017 00:00", "02-02-2017 00:00", "03-02-2017 10:00", "04-02-2017 00:00", "05-02-2017 00:00", "03-02-2017 00:00"); config.addSeries().name("График №1").color(255, 0, 0).data(10, 20, 60, 1, 50, 45); config.addSeries().name("График №2").color(0, 255, 0).data(7, 6, 1, 4, 1, 8); HighChart chartDate = new HighChart(config);
LineConfig<String, Integer> config = new LineConfig<>(); config.title().text("График с датами типа 'String'"); config.subtitle().text("Статические данные"); config.yAxis().title().text("Количество ($)"); config.xAxis().title().text("Даты").align(AlignAxis.HIGH); config.xAxis().categories(Arrays.asList( "01-02-2017 00:00", "02-02-2017 00:00", "03-02-2017 10:00", "04-02-2017 00:00", "05-02-2017 00:00", "03-02-2017 00:00")); config.addSeries().name("График №1").color(255, 0, 0).data(10, 20, 60, 1, 50, 45); config.addSeries().name("График №2").color(0, 255, 0).data(7, 6, 1, 4, 1, 8); HighChart chartDate = new HighChart(config); chartDate.setWidth(100, Unit.PERCENTAGE); chartDate.setHeight(30, Unit.EM); addTab(chartDate, "StringDate2 Y constant");
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Сompatibility java 7+
- Released
- 2017-04-06
- Maturity
- EXPERIMENTAL
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 7.1+
- Browser
- Internet Explorer
- Firefox
- Opera
- Safari
- Google Chrome
- Internet Explorer
- Internet Explorer
- Internet Explorer
High-Charts Add-on for Vaadin 7+ - Vaadin Add-on Directory
Java style configurator javascript library highchartsJava style configurator highcharts JS library