VividCharts
Search…
Set Type
How to associate a type of chart with the VividChart API

Using Set Type

All VividChart objects must be assigned a type before data can be gathered. This ensures the correct data is returned when we run our queries. Not all chart types that share the same fields will return the data. Be sure to reference the list of chart types to be sure to pick the chart type best suited to your tasks. To use simply include the name of the chart type in the method field.
Using Set Type to associate the class with a type of chart:
1
var vividChart = new VividChart(chart);
2
vividChart.setType('pie');
Copied!
Tips: Chart types are not case sensitive.
Warning: You may only have one chart type set. Should you need two sets of data please create a second VividChart object.
For a list of different chart types please consult the chart types available here:
Last modified 9mo ago
Copy link