@@ -55,6 +55,16 @@ calling new ChartCanvas() defines a new chart container for you. The constructor
* By default the chart canvas will take up the space in its parent element, then allocate space for the axis ( in the margins ), and leave the remaining space for the charts to be rendered in. This can be changed by editing these properties.
* minMargin: TBLR\<number\> The minimal amount of space supplied for the axis to draw, and for the chart to overflow ( used to allow charts to draw values on the edge and display the overflow )
* maxMargin: TBLR\<number\> The maximum amount of space supplied for the axis to draw, and for the chart to overflow ( used to allow charts to draw values on the edge and display the overflow )
---
## New DataPoint<T>( data?: T)
All Charts contain a data list that is made up of data points.
*<strong> data: T | Undefined</strong>
* This is the data that is assoacited with this point. Anytime you need to do something with this specific point, store what you need here. This can be set either when the point as a contructor paramater or set directly later.
*<strong> getExtent( chart: BaseChart ): Extent
* Return the extent x and y bounds of the shape that the given chart drew for this point.
* Note: This will fail if the point is not drawn yet.
---
## Base Chart<T extends DataPoint = DataPoint>
...
...
@@ -156,6 +166,10 @@ All Axis will have these properties and configs unless otherwise specified.
This method determines how axis values are displayed on the tick marks. By default, what ever the value, is will just have toString() called on it. However if you are using something like a date, or floating numbers, you will want to overwrite this method to provide your own formatting. The value is the current value getting formatted. The tick index is the index of the tick mark in its array. tickArray, is an array of all the tick values that will be displayed.