The width/height ratio of this canvas. The canvas height, everytime it
is redrawn, changes based on the canvas clientWidth. The height follows
the width depending on the ratio: height = width/aspectRatio.
Unlike RenderComponent, setting the baseInnerHtml does not update
baseInnerElement, because this component is not designed +to be rendered
independently. You need to reprint the component to the parent's component
(update its baseInnerHtml with this component string asString), and
re-attach it with _attachToRenderComponent again.
Setting the component with new ID is basically not recommended. It will
change the real HTML ID of this element rendered in DOM too, and will
throw ComponentDuplicateIdException when the new ID already exists.
The formatting function used to display the labels in X axis.
If none is specified, it by default uses NumberFormat.compact to format
label values into string. You might want to override this for example
if you want the label to be a date.
The formatting function used to display the labels in Y axis.
If none is specified, it by default uses NumberFormat.compact to format
label values into string. You might want to override this for example
if you want the label to be a date.
The exact font height is retrieved from TextMetrics.fontBoundingBoxAscent.
However, not all browsers support this property, and if this property returns
null, the height can be approximated by getting the width of character
'M'. This is no magic, see also: https://stackoverflow.com/a/13318387/9113939.
Loads this component event handlers.
Call super to check whether this component has been attached. If it hasn't,
it will throw ComponentNotRenderedException.
Unloads this component event handlers.
Call super to check whether this component has been attached. If it hasn't,
it will throw ComponentNotRenderedException.