showGridAndCharts method
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 showCharts()
API call options.viewType
property in the report will be "grid_charts"
.
Implementation
Future<void> showGridAndCharts(
[String type = "column",
String position = "bottom",
bool multiple = false]) async {
WebViewController apiController = await controller.future;
await apiController
.runJavascript("flexmonster.showCharts('$type','$position',$multiple)");
}