Google Charts
svyGCharts Google charts component for NG client
var data = [
['Genre', 'Fantasy & Sci Fi', 'Romance', 'Mystery/Crime', 'General', 'Western', 'Literature',
{ role: 'annotation' }],
['2010', 10, 24, 20, 32, 18, 5, ''],
['2020', 16, 22, 23, 30, 16, 9, ''],
['2030', 28, 19, 29, 30, 12, 13, '']
];
var options = {
width: 800,
height: 600,
legend: { position: 'top', maxLines: 3 },
bar: { groupWidth: '75%' },
isStacked: true
};
elements.svygooglecharts.drawChart('BarChart', data, options);
svyGCharts properties
Property
Type
Default
Description
ChartSelection type
Property
Type
Description
svyGCharts API
Method
Params
Return
Description
drawChart
Type
Name
Description
Required
getSelection
setSelection
Type
Name
Description
Required
setValue
Type
Name
Description
Required
svyGCharts events
Event
Params
Return
Description
Last updated
Was this helpful?