EJSC.Chart Property Examples
Methods Demonstrated
Desired Result
Default Chart Settings
Source Code
- Rendering Source Code...
Methods Demonstrated
- addSeries
- removeSeries
Desired Result
When you click on the "Add Series" button, the chart will add a new series. When you click on the "Remove Series" button, the series will be removed.
Source Code
- Rendering Source Code...
Methods Demonstrated
- showTitlebar
- hideTitlebar
Desired Result
These buttons will show and hide the titlebar.
Source Code
- Rendering Source Code...
Methods Demonstrated
- setLegendTitle
- setTitle
Desired Result
These buttons will change the legend title and chart title (respectively) to custom titles.
Source Code
- Rendering Source Code...
Methods Demonstrated
- selectPoint
- clearSelectedPoint
Desired Result
These buttons will select and unselect (respectively) a point.
Source Code
- Rendering Source Code...
Methods Demonstrated
- acquireSeries
- redraw
Desired Result
The "Acquire Series" button will take a series from the chart on the left and move it to this chart. The "Redraw" button will redraw the chart.
Source Code
- Rendering Source Code...
Methods Demonstrated
- remove
Desired Result
This button will remove (destroy) the chart.
Source Code
- Rendering Source Code...
Methods Demonstrated
- showZoomBox
- getZoomBoxPixelCoordinates
Desired Result
The "Show Zoom" button will display the zoom box from (0,2) to (4,4). The "Get Zoom" will alert the offset of the zoom box from the top and left of the chart.
Source Code
- Rendering Source Code...