Menu
Download Free Trial
Table of contents

showCharts

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

Parameters

  • type (optional) – the type of charts to show. Default value is "bar".
  • 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. (Available since version 1.9)

Examples

flexmonster.showCharts();

//pie chart will be shown
flexmonster.showCharts("pie");

See also

showGrid
showGridAndCharts