Bar Chart Widget



Source


Event Handling
Examples
1. Simple Bar Chart

2. Stacked Bar Chart

Last updated
Was this helpful?







Last updated
Was this helpful?
Was this helpful?
// Example 1
// Grouped/Stacked Bar Chart
[
{
"country": "India",
"first": 94,
"second": 114,
"third": 14
},
{
"country": "Australia",
"first": 22,
"second": 65,
"third": 16
},
{
"country": "US",
"first": 21,
"second": 85,
"third": 12
}
]
// here 'country' is set as IndexBy key and 'first', 'second' and 'third' are set as yKeys.// Example
// Simple Bar Chart
[
{
"country": "India",
"first": 94
},
{
"country": "Australia",
"first": 22
},
{
"country": "US",
"first": 21
}
]
// here 'country' is set as IndexBy key and 'first' is set as yKey.// Simple Bar Chart
[
{
"country": "India",
"first": 94
},
{
"country": "Australia",
"first": 22
},
{
"country": "US",
"first": 21
}
]
// here 'country' is set as IndexBy key and 'first' is set as yKey.// Grouped/Stacked Bar Chart
[
{
"country": "India",
"first": 94,
"second": 114,
"third": 14
},
{
"country": "Australia",
"first": 22,
"second": 65,
"third": 16
},
{
"country": "US",
"first": 21,
"second": 85,
"third": 12
}
]
// here 'country' is set as IndexBy key and 'first', 'second' and 'third' are set as yKeys.