showCharts(type: String, multiple: Boolean)
[starting from version: 1.4]
Switches to the charts view and shows the chart of the specified type. The following chart types are supported:
showCharts() API call
options.viewType property in the report will be
type(optional) – String. The type of charts to show. Default value:
multiple(optional) – Boolean. To show one measure on the chart (
false) or multiple (
true) – as many measures as selected in the slice. Available since version 1.9. Default value:
1) Show default chart type:
Try on JSFiddle.
2) Show the pie chart:
Check out the example on JSFiddle.