Reference Source Test
public class | source

Chart

Test:

Constructor Summary

Public Constructor
public

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

do(grammar: string): boolean

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 Chart class

Params:

NameTypeAttributeDescription
data string

JSON string containing the data columns.

Test:

Private Members

private _data: * source

private _outputJson: {"size": *, "data": *, "point": *, "axis": *, "grid": *, "legend": *, "tooltip": *, "subchart": *, "zoom": *, "bar": *, "donut": *} source

Public Methods

public generateJson(): string source

Return the JSON output string of the constructed charts.

Return:

string

Test: