Class Chart
The main Chart class
Defined in: <..\..\src\teechart.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Chart(canvas)
|
Field Attributes | Field Name and Description |
---|---|
Contains properties related to 3D and graphics parameters.
|
|
Contains a list of axis used to draw series.
|
|
The rectangle where this chart will be painted inside canvas.
|
|
The canvas where this chart will paint to.
|
|
Properties to draw text at bottom side of chart.
|
|
Contains properties to control the legend, a panel showing the list of series or values.
|
|
The list of colors to use as default colors for series and points.
|
|
Contains properties used to fill the chart background.
|
|
Properties to control mouse/touch dragging to scroll or pan contents inside chart axes.
|
|
Contains a list of Tee.Series objects that belong to this chart.
|
|
Properties to draw text at top side of chart.
|
|
Contains a list of Tee.Tool objects that belong to this chart.
|
|
Contains properties used to draw chart walls around axes.
|
|
Properties to control mouse/touch dragging to zoom chart axes scales.
|
Method Attributes | Method Name and Description |
---|---|
addSeries(series)
|
|
draw()
Main Chart draw method.
|
|
getSeries(index)
|
|
jpgImage(image, quality)
Paints image parameter with a JPEG picture of canvas.
|
|
pngImage(image)
Paints image parameter with a PNG picture of canvas.
|
Class Detail
Chart(canvas)
- Parameters:
- {String|HTMLCanvasElement} canvas Optional
- Optional canvas id or element.
Field Detail
{Aspect}
aspect
Contains properties related to 3D and graphics parameters.
{Axes}
axes
Contains a list of axis used to draw series.
{Rectangle}
bounds
The rectangle where this chart will be painted inside canvas.
{HTMLCanvasElement}
canvas
The canvas where this chart will paint to.
{Title}
footer
Properties to draw text at bottom side of chart.
{Legend}
legend
Contains properties to control the legend, a panel showing the list of series or values.
{Tee.Palette}
palette
The list of colors to use as default colors for series and points.
{Panel}
panel
Contains properties used to fill the chart background.
{Scroll}
scroll
Properties to control mouse/touch dragging to scroll or pan contents inside chart axes.
{SeriesList}
series
Contains a list of Tee.Series objects that belong to this chart.
{Title}
title
Properties to draw text at top side of chart.
{Tools}
tools
Contains a list of Tee.Tool objects that belong to this chart.
{Walls}
walls
Contains properties used to draw chart walls around axes.
{Zoom}
zoom
Properties to control mouse/touch dragging to zoom chart axes scales.
Method Detail
{Tee.Series}
addSeries(series)
- Parameters:
- {Tee.Series} series
- The series object to add to chart.
- Returns:
- {Tee.Series} Returns the series parameter
draw()
Main Chart draw method. Repaints all chart contents.
{Tee.Series}
getSeries(index)
- Parameters:
- {Integer} index
- The index of the chart series list to obtain.
- Returns:
- {Tee.Series} Returns the index'th series in chart series list
jpgImage(image, quality)
Paints image parameter with a JPEG picture of canvas.
- Parameters:
- {String} image
- The id of an Image HTML component.
- quality
pngImage(image)
Paints image parameter with a PNG picture of canvas.
- Parameters:
- {String} image
- The id of an Image HTML component.