Need a special offer?Find out if your project fits.
+
All documentation
API reference
  • API Reference for older versions
  • 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: "column", "bar_h", "line""scatter", "pie", "stacked_column" and "column_line".
    After showCharts() API call, the viewType option in the report will be "charts".

    Parameters

    Parameter/Type Description
    type
    String
    optional The type of charts to show.
    Default value: "column".
    multiple
    Boolean
    optional To show one measure on the chart (false) or multiple (true) - as many measures as selected in the slice. Available since version 1.9.
    Default value: false.

    Examples

    1) Show default chart type:

    flexmonster.showCharts();

    Try on JSFiddle.

    2) Show the pie chart:

    flexmonster.showCharts("pie");

    Check out the example on JSFiddle.

    See also

    showGrid
    showGridAndCharts