API reference
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: "column", "bar_h", "line""scatter", "pie", "stacked_column" and "column_line".
After showGridAndCharts() API call options.viewType property in the report will be "grid_charts".

Parameters

Parameter/Type Description
type
String
optional The type of charts to show.
Default value: "column".
position
String
optional Position of charts related to the grid. It can be "bottom", "top", "left", or "right". Available since version 2.2.
Default value: "bottom".
multiple
Boolean
optional To show one measure on the chart (false) or multiple (true) - as many measures as selected in the slice.
Default value: false.

Examples

1) Show grid and charts:

flexmonster.showGridAndCharts();

Open on JSFiddle.

2) Show line chart at the left:

flexmonster.showGridAndCharts("line","left");

Check out on JSFiddle.

See also

showCharts
showGrid