GoogleCharts

Content Type: Widget
Categories: User Interface

Overview

This widget is based on google charts API library and it follows the same google reference for displaying the charts

Documentation

The widget is not complicated as it follows the google charts API documentation. 

Looking at the below screenshot

 

Title: this is the title of the graph(Refer to google API reference) which is set dynamically

Chart Type: The type of chart that will be rendered with the data provided. for example it can be Area, Column, Bar, etc.

Columns: this are the chart columns and must be written in array of objects e.g. [{“type”:”string”, “value”:”Item”},{“type”:”number”, “value”:”Total”}] (you can refer to google charts columns API documentation). example can be written like the below screen.

 

Data: this is the actual metrices or data that need to be displayed, you can write the logic anyhow, as long as is in google charts API data format which is an array of arrays. example look at the screen below.

 

This data is generated by a Java Action. You can write it manual. Looking at the Columns and the Data, the number of columns must match with the number of columns in the data e.g. we have 2 array of objects in our columns that means we have 2 columns, and in the data take note of the [[“Driver”, 1]], it show we also have 2 columns. (Look at the google charts API for detailed reference).

The Options Tab is descriptive and documented on the widget, see the screenshot below

 

Releases

Version: 2.0.1
Framework Version: 7.0.2
Release Notes: Added combo chart, and fixed the duplicate of the same chart on widget reload
Version: 1.0.0
Framework Version: 8.17.0
Release Notes: The first version of the Google Charts