public class BarChart extends AbstractChart implements IsDatasetCreator<BarDataset>, HasCartesianAxes
Modifier | Constructor and Description |
---|---|
|
BarChart()
Builds the object.
|
protected |
BarChart(Type extendedType)
Builds the chart.
This is must be extended for controller which are based on this type of chart. |
protected |
BarChart(Type extendedType,
boolean doNotCreateOptions)
Builds the chart.
This is must be extended for controller which are based on this type of chart. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkDataset(Dataset dataset)
Returns
true if the dataset can be managed by a this chart type. |
BarOptions |
getOptions()
Returns the options of chart.
|
BarDataset |
newDataset(boolean hidden)
Creates a new dataset related to chart type.
|
addHandler, applyConfiguration, checkAxes, checkDatasets, clear, createAndSetTimer, destroy, draw, getActiveElements, getBaseType, getCanvas, getChartElement, getData, getDatasetAtEvent, getDatasetItem, getDefaultChartOptions, getElementAtEvent, getElementsAtEvent, getId, getInitialCursor, getMaximumAxesCount, getMaximumDatasetsCount, getNode, getPlugins, getSource, getTimer, getTooltipActiveElements, getType, getVisibleDatasetCount, getWholeOptions, hide, hide, isChartAttached, isDatasetVisible, isDataVisible, isDestroyOnDetach, isDrawOnAttach, isInitialized, onAttach, onDetach, reconfigure, reconfigure, reconfigure, removeCanvasPreventDefault, render, reset, resetActiveElements, resetTooltipActiveElements, resize, resize, setActiveElements, setActiveElements, setDatasetVisibility, setDestroyOnDetach, setDrawOnAttach, setTooltipActiveElements, setTooltipActiveElements, show, show, stop, toBase64Image, toggleDataVisibility, update, update, update
fireEvent, getHandlerCount, isEventHandled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newDataset
checkAxis
checkAndGetIfConsistent, checkAndGetIfValid, checkIfConsistent, checkIfValid, fireEvent, getHandlerCount, isAbstractChart, isConsistent, isEventHandled, isValid, toBase64Image, toBase64Image, toBase64Image
public BarChart()
protected BarChart(Type extendedType)
extendedType
- type of chartprotected BarChart(Type extendedType, boolean doNotCreateOptions)
extendedType
- type of chartdoNotCreateOptions
- if true
, it ignores the creation of the bar options because the extended class will create own options.public BarOptions getOptions()
IsChart
getOptions
in interface IsChart
public BarDataset newDataset(boolean hidden)
IsDatasetCreator
newDataset
in interface IsDatasetCreator<BarDataset>
hidden
- if true
, it will be initially hidden.protected boolean checkDataset(Dataset dataset)
AbstractChart
true
if the dataset can be managed by a this chart type.checkDataset
in class AbstractChart
dataset
- dataset to checktrue
if the dataset can be managed by a this chart type