public final class ChartNode extends Object
Constructor and Description |
---|
ChartNode(String chartId,
Chart chart)
Creates the object wrapping a CHART instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getAspectRatio()
Returns the aspect ratio.
|
ChartAreaNode |
getChartArea()
Returns the chart area item.
|
double |
getCurrentDevicePixelRatio()
Returns the current device pixel ratio.
|
int |
getHeight()
Returns the height in pixel.
|
int |
getId()
Returns the CHART JS chart ID.
|
LegendNode |
getLegend()
Returns the legend item.
|
OptionsNode |
getOptions()
Returns the options item.
|
ScalesNode |
getScales()
Returns the scales item.
|
SubtitleNode |
getSubtitle()
Returns the subtitle item.
|
TitleNode |
getTitle()
Returns the title item.
|
TooltipNode |
getTooltip()
Returns the tooltip item.
|
int |
getWidth()
Returns the width in pixel.
|
boolean |
isInitialized()
Returns if CHART.JS chart instance has been initialized.
|
String |
toJSON()
Returns the string JSON representation of the object.
|
public boolean isInitialized()
true
if initialized, otherwise false
public OptionsNode getOptions()
public LegendNode getLegend()
public ScalesNode getScales()
public ChartAreaNode getChartArea()
public SubtitleNode getSubtitle()
public TitleNode getTitle()
public TooltipNode getTooltip()
public int getId()
public int getWidth()
public int getHeight()
public double getAspectRatio()
public double getCurrentDevicePixelRatio()
public String toJSON()