Menu
Download Free Trial
Table of contents

showGridAndCharts

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: "bar", "line""scatter", "pie", "bar_stack" and "bar_line" (starting from v1.9).
After showGridAndCharts() API call options.viewType property in report will be "grid_charts".

Parameters

  • type (optional) – the type of charts to show. Default value is "bar".
  • position (optional) – Position of charts related to the grid. It can be "bottom", "top", "left" or "right". Default value is "bottom". (Available since version 2.2)
  • multiple (optional) – to show one measure on the chart (false) or multiple (true) – as many measures as selected in the slice. Default value is false.

Examples

flexmonster.showGridAndCharts();

//line chart will be at the left
flexmonster.showGridAndCharts("line","left");

See also

showCharts
showGrid