Cubic Compass Software

- Support Wiki

Dialogue Script : Google Chart

Modified: 2008/06/14 03:17 by mleach - Categorized as: Dialogue Script
Edit

Dialogue Script : Google Chart (Beta Only)

Syntax
<dlog:GoogleChart id={unique Label ID} soql={data set query} type={Chart Type}
BarChartType={Grouped or Stacked} LineChartType={Single or XY} Data={Chart Data}
Orientation={Vertical|Horizontal} 
width={Chart pixel width} height={Chart pixel height} Label={Chart label} ></dlog:GoogleChart>

Usage
Displays a databound chart using the Google Chart API.

Attributes
id: (Required) A unique identifier for the control. Multiple labels displaying the same field may be used on a page, but each Label control must have a unique ID.

type: (Required) Supported chart types include Line, SparkLine, Bar, Pie, Venn, Scatter, Radar, Map, Meter. See complete Google Charts API chart types

BarChartType: Default is "Grouped". Valid values include "Grouped" and "Stacked".

height: Chart height in pixels.

width: Chart width in pixels.

data: Inline chart data.

label: Chart Label.

param: (optional) Populates a chart param from a URL parameter (not implemented).

CssClass: (Optional) Reference to a Cascading Style Sheet class for defining presentation of control.

objectname: (Optional) Reference to the Salesforce object name (if different than the object defined in the script editor).

Example
Hello <dlog:GoogleChart id="BarChart" soql="Select top 10 from Account order by CompanySize__c" type=bar width=300 height=100></dlog:GoogleChart>
Chart Sample

ScrewTurn Wiki version 2.0.35. Some of the icons created by FamFamFam.