Stacked series
Three series stacked outward per hour.
Series, gauge & live
Open the chart without page chrome ↗Drawing width at least 760 px. Scroll within the chart on smaller screens.
const options = {
"chart": {
"type": "radialColumn",
"height": 460,
"toolbar": {
"show": false
},
"stacked": true
},
"series": [
{
"name": "Solar",
"data": [
14,
14,
15,
22,
29,
31,
27,
23,
17,
17,
20,
27,
32,
30,
28,
22,
16,
18,
21,
28,
31,
29,
25,
19
]
},
{
"name": "Wind",
"data": [
30,
29,
25,
21,
23,
27,
32,
36,
35,
33,
29,
24,
23,
26,
30,
34,
36,
35,
30,
27,
27,
30,
33,
37
]
},
{
"name": "Hydro",
"data": [
13,
12,
11,
11,
11,
10,
11,
13,
14,
14,
12,
11,
10,
10,
11,
12,
13,
14,
13,
12,
11,
11,
12,
13
]
}
],
"xaxis": {
"categories": [
"00:00",
"01:00",
"02:00",
"03:00",
"04:00",
"05:00",
"06:00",
"07:00",
"08:00",
"09:00",
"10:00",
"11:00",
"12:00",
"13:00",
"14:00",
"15:00",
"16:00",
"17:00",
"18:00",
"19:00",
"20:00",
"21:00",
"22:00",
"23:00"
]
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()import WestCoastCharts from 'west-coast-charts'
import premium from 'west-coast-charts/premium'
WestCoastCharts.use(premium)
const WestCoastChartsPremium = premium
WestCoastCharts.setLicenseKey(LICENCE_KEY) // paid production licence; localhost evaluation needs no key
const options = {
"chart": {
"type": "radialColumn",
"height": 460,
"toolbar": {
"show": false
},
"stacked": true
},
"series": [
{
"name": "Solar",
"data": [
14,
14,
15,
22,
29,
31,
27,
23,
17,
17,
20,
27,
32,
30,
28,
22,
16,
18,
21,
28,
31,
29,
25,
19
]
},
{
"name": "Wind",
"data": [
30,
29,
25,
21,
23,
27,
32,
36,
35,
33,
29,
24,
23,
26,
30,
34,
36,
35,
30,
27,
27,
30,
33,
37
]
},
{
"name": "Hydro",
"data": [
13,
12,
11,
11,
11,
10,
11,
13,
14,
14,
12,
11,
10,
10,
11,
12,
13,
14,
13,
12,
11,
11,
12,
13
]
}
],
"xaxis": {
"categories": [
"00:00",
"01:00",
"02:00",
"03:00",
"04:00",
"05:00",
"06:00",
"07:00",
"08:00",
"09:00",
"10:00",
"11:00",
"12:00",
"13:00",
"14:00",
"15:00",
"16:00",
"17:00",
"18:00",
"19:00",
"20:00",
"21:00",
"22:00",
"23:00"
]
}
}
const chart = new WestCoastCharts(document.querySelector('#chart'), options)
await chart.render() Waiting for the chart.
Open Data & agent view to read this chart through chart.describe().
Read from the running library through its optional agent/describe module. Text, table and JSON share the same snapshot. Demo data only.
$ wcc chart export radial-column-stacked.json --out radial-column-stacked.svg --with-table Public agent tools 0.2.3, tested with Library 1.1.5; available from the versioned GitHub release and npm. Save a JSON spec first and check the loaded runtime and supported modules before rendering. Command reference
Loading /gallery/radial-column/stacked/index.md … This example uses Premium modules. Compare licences · Embedding in a distributed product?