GaugeChart
Inhalt:
Füllen von Daten
Properties
Allgemein
Detailierte Information finden Sie zusätzlich hier: https://developers.google.com/chart/interactive/docs/gallery/gauge
Beispiel: Füllen der Daten
final ChartModel model = ChartModel.New()
.addColumn(Column.New(Column.Type.STRING, "label"))
.addColumn(Column.New(Column.Type.NUMBER, "value"));
model.addRow("Memory", 80);
model.addRow("CPU", 55);
model.addRow("Network", 68);
this.gaugeChart.setModel(model); |
API und Methoden:
Properties |
|
---|---|
GreenColor, YellowColor, RedColor | The color to use for the green, yellow, red section, in HTML color notation. this.gaugeChart.setYellowColor("yellow");
this.gaugeChart.setYellowColor("#526846");
this.gaugeChart.setYellowColor("red"); |
GreenFrom, YellowFrom, RedFrom | The lowest value for a range marked by a green, yellow, red color. this.gaugeChart.setYellowFrom(75); |
GreenTo, YellowTo, RedTo | The highest value for a range marked by a green, yellow, red color. |
MajorTicks | Labels for major tick marks. The number of labels define the number of major ticks in all gauges. The default is five major ticks, with the labels of the minimal and maximal gauge value. |
MinorTicks | The number of minor tick section in each major tick section. |
AnimationDuration | The duration of the animation, in milliseconds. For details, see the animation documentation. |
AnimationEasing | The easing function applied to the animation. The following options are available:
|
XDEV Software Corp. - One Embarcadero Center, San Francisco, CA 94111, US
Copyright © 2015. XDEV Software Corp. All rights reserved.