public final class GaugeChart extends AbstractChart<D>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasWidgets.ForIsWidget
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
|
DEBUG_ID_PREFIX
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.
|
Type |
getType()
Returns the type of chart.
|
GaugeDataset |
newDataset()
Creates a new dataset related to chart type.
|
GaugeDataset |
newDataset(double max)
Returns a dataset with a maximum value.
|
clear, createHandlerManager, destroy, draw, generateLegend, getCanvas, getData, getDatasetAtEvent, getDatasetMeta, getDefaultChartOptions, getElementAtEvent, getElementsAtEvent, getId, getInitialCursor, getNode, getPlugins, getVisibleDatasetCount, isDatasetVisible, isDestroyOnDetach, isDrawOnAttach, isInitialized, onAttach, onDetach, removeCanvasPreventDefault, render, render, reset, resize, setDestroyOnDetach, setDrawOnAttach, stop, toBase64Image, toJSON, update, update, updateOptions, updateOptions
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addHandler
fireEvent
forEach, spliterator
public static final String TYPE
public static final double DEFAULT_MAX
public Type getType()
IsChart
public GaugeOptions getOptions()
IsChart
public GaugeDataset newDataset()
AbstractChart
newDataset
in class AbstractChart<GaugeDataset>
public GaugeDataset newDataset(double max)
max
- maximum value of datasetprotected final ChartOptions createChartOptions()
AbstractChart
createChartOptions
in class AbstractChart<D extends MeterDataset>