new Infographic(chart_id, chartType, title, width, height, data)
- Source:
This constructor creates the chart itself and surrounding HTML such as dropdown buttons.
Parameters:
| Name | Type | Description |
|---|---|---|
chart_id |
string | The id of the chart. |
chartType |
string | The type of the chart, i.e line, pie or donut. |
title |
string | The title of the infographic. |
width |
int | The width of a chart. |
height |
int | The height of a chart. |
data |
object | The data to be inserted into a given chart. |