Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
book-of-vaadin.pdf
Скачиваний:
88
Добавлен:
24.03.2015
Размер:
13.43 Mб
Скачать

Vaadin Charts

"Mars",

"Jupiter", "Saturn",

"Uranus",

"Neptune");

xaxis.setTitle("Planet");

 

conf.addxAxis(xaxis);

 

// Set the Y axis title YAxis yaxis = new YAxis(); yaxis.setTitle("Diameter");

yaxis.getLabels().setFormatter(

"function() {return Math.floor(this.value/1000) + \'Mm\';}"); yaxis.getLabels().setStep(2);

conf.addyAxis(yaxis);

layout.addComponent(chart);

The resulting chart is shown in Figure 19.2, “Basic Chart Example”.

Figure 19.2. Basic Chart Example

Vaadin Charts is based on Highcharts JS, a charting library written in JavaScript.

Licensing

Vaadin Charts is a commercial product licensed under the CVAL License (Commercial Vaadin Add-On License). A license needs to be purchased for all use, including web deployments as well as intranet use. The Vaadin Charts license includes the license for Highcharts JS.

The commercial licenses can be purchased from the Vaadin Directory [https://vaadin.com/directory], where you can also find the license details and download the Vaadin Charts.

19.2. Installing Vaadin Charts

Vaadin Charts can be installed either from an installation package, which you can download from the Vaadin Directory, or as a Maven dependency. For detailed instructions, please see Chapter 17,

Using Vaadin Add-ons.

Once you have installed the library in your project, you need to compile the widget set.

Licensing

413

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]