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

Vaadin Charts

Figure 19.6. Overlaid Pie and Donut Chart

19.4.6. Gauges

A gauge is an one-dimensional chart with a circular Y-axis, where a rotating pointer points to a value on the axis. A gauge can, in fact, have multiple Y-axes to display multiple scales.

Let us consider the following gauge:

Chart chart = new Chart(ChartType.GAUGE); chart.setWidth("400px"); chart.setHeight("400px");

After the settings done in the subsequent sections, it will show as in Figure 19.7, “A Gauge”.

Figure 19.7. A Gauge

Gauge Configuration

The start and end angles of the gauge can be configured in the Pane object of the chart configuration. The angles can be given as -360 to 360 degrees, with 0 at the top of the circle.

Gauges

423

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