public final class GaugeChart extends AbstractChart<D>
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_MAX
Default of maximum value of data into a dataset (percentage based), 100.0.
|
static String |
TYPE
Name of chart type "gauge" for gauge
|
| Constructor and Description |
|---|
GaugeChart()
Builds the object.
|
| Modifier and Type | Method and Description |
|---|---|
protected ChartOptions |
createChartOptions()
Creates the chart options based on type of chart.
It can be override when a controller is implemented. |
GaugeOptions |
getOptions()
Returns the options of chart.
|
GaugeDataset |
newDataset()
Creates a new dataset related to chart type.
|
GaugeDataset |
newDataset(double max)
Returns a dataset with a maximum value.
|
addHandler, clear, destroy, draw, generateLegend, getBaseType, getCanvas, getChartElement, getData, getDatasetAtEvent, getDatasetMeta, getDefaultChartOptions, getElementAtEvent, getElementsAtEvent, getId, getInitialCursor, getNode, getPlugins, getSource, getType, getVisibleDatasetCount, getWholeOptions, isDatasetVisible, isDestroyOnDetach, isDrawOnAttach, isInitialized, onAttach, onDetach, reconfigure, reconfigure, removeCanvasPreventDefault, render, render, reset, resize, setDestroyOnDetach, setDrawOnAttach, stop, toBase64Image, update, updatefireEvent, getHandlerCount, isEventHandledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckAndGetIfConsistent, checkIfConsistent, checkIfValid, fireEvent, isAbstractChart, isConsistent, isValidpublic static final String TYPE
public static final double DEFAULT_MAX
public GaugeOptions getOptions()
IsChartpublic GaugeDataset newDataset()
AbstractChartnewDataset in class AbstractChart<GaugeDataset>public GaugeDataset newDataset(double max)
max - maximum value of datasetprotected final ChartOptions createChartOptions()
AbstractChartcreateChartOptions in class AbstractChart<D extends MeterDataset>