showGridAndCharts(type: String, position: String, multiple: Boolean)
[starting from version: 1.9]
Switches to the grid and charts view and shows the chart of the specified type. The following chart types are supported: "column", "bar_h", "line", "scatter", "pie", "stacked_column" and "column_line".
After showGridAndCharts() API call, the viewType option in the report will be "grid_charts".
1) Show grid and charts:
pivot.showGridAndCharts();
Open on JSFiddle.
2) Show line chart at the left:
pivot.showGridAndCharts("line","left");Check out on JSFiddle.