Constructor Summary
Public Constructor | ||
public |
constructor(data: string) Creates an instance of the LineChart class |
Inherited Summary
From class Chart | ||
private |
_data: * |
|
private |
_outputJson: {"size": *, "data": *, "point": *, "axis": *, "grid": *, "legend": *, "tooltip": *, "subchart": *, "zoom": *, "bar": *, "donut": *} |
|
public |
Alter the parameters of the charts using the provided grammar. |
|
public |
Return the JSON output string of the constructed charts. |
Public Constructors
public constructor(data: string) source
Creates an instance of the LineChart class
Override:
Chart#constructorParams:
Name | Type | Attribute | Description |
data | string | JSON string containing the data columns. |
Test:
- Tests for LineChart class Test to check the constructor behaviour with invalid data
- Tests for LineChart class Test to check the constructor behaviour with valid data
- Tests for PieChart class Test to check the constructor behaviour with invalid data
- Tests for PieChart class Test to check the constructor behaviour with valid data