VividCharts
Search…
Initialization

Creating using a chart object

While this is able to be used with any Javascript object with the correct key/value pairs, the intention is for it to be used with the chart object automatically generated for you from the choices made on the chart record and usable by the script in the chart type.
To initialize with a chart object within the chart script:
1
var vividChart = new VividChart(chart);
Copied!
Tips: The chart object is generated by the record and does not need to be initialized.

Creating without using a chart object

If you want to initialize the class without the chart object and instead plan on using options to add fields and value you can initialize the object in one of two ways:
1
var vividChart = new VividChart();
Copied!
or:
1
var vividChart = new VividChart(null);
Copied!
Warning: If a chart is initialized this way all required chart fields must be initialized using options.