A component that allows you to create Google Charts
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
src
README.md

README.md

Google Charts component for ManyWho

It is often useful in a Flow to show charts and graphs to the user. This component leverages the Google Charts library available here: https://developers.google.com/chart

Install

Place a copy of the custom component from the dist folder in a publicly accessible location.

At the bottom of your player code add the following script tag:

<script>
    var googleChartsLoaded = false;
</script>

In your player code add the following custom resources to the manywho object:

customResources: ['https://www.gstatic.com/charts/loader.js', '<web address of the custom component>'],

Usage

This component can be used as an alternative to the core chart component.

The Google chart type is controlled using a chart attribute with the value set to one of the following chart types:

  • pieHole
  • annotation
  • area
  • bar
  • bubble
  • calendar
  • candlestick
  • column
  • gauge
  • line
  • sankey
  • treemap

To render the chart with a 3D effect use the is3D attribute with the value set to true.