Chart
Direct Subclass:
Test:
Constructor Summary
Public Constructor | ||
public |
constructor(data: string) Creates an instance of the Chart class |
Member Summary
Private Members | ||
private |
_data: * |
|
private |
_outputJson: {"size": *, "data": *, "point": *, "axis": *, "grid": *, "legend": *, "tooltip": *, "subchart": *, "zoom": *, "bar": *, "donut": *} |
Method Summary
Public Methods | ||
public |
Alter the parameters of the charts using the provided grammar. |
|
public |
Return the JSON output string of the constructed charts. |
Public Constructors
Private Members
private _data: * source
private _outputJson: {"size": *, "data": *, "point": *, "axis": *, "grid": *, "legend": *, "tooltip": *, "subchart": *, "zoom": *, "bar": *, "donut": *} source
Public Methods
public do(grammar: string): boolean source
Alter the parameters of the charts using the provided grammar.
Params:
Name | Type | Attribute | Description |
grammar | string | Simple grammar string describing the charts. |
Test:
- Tests for Chart class Test to check the do "Chart size" function behaviour with valid data
- Tests for Chart class Test to check the do "Legend" function behaviour with valid data
- Tests for Chart class Test to check the do "Interaction" function behaviour with valid data
- Tests for Chart class Test to check the do "Rotate axis" function behaviour with valid data
- Tests for Chart class Test to check the do "Axis labels" function behaviour with valid data
- Tests for Chart class Test to check the do "Axis boundaries" function behaviour with valid data
- Tests for Chart class Test to check the do "Data labels" function behaviour with valid data
- Tests for Chart class Test to check the do "Line Chart hide points" function behaviour with valid data
- Tests for Chart class Test to check the do "Optional Grid Lines" function behaviour with valid data
- Tests for Chart class Test to check the do function behaviour with invalid data
- Tests for Chart class Test to check the do "Grid Lines" function behaviour with valid data
- Tests for Chart class Test to check the do "Tooltip" function behaviour with valid data