Public
Edited
Mar 17, 2023
Insert cell
Insert cell
ApexCharts = require('apexcharts@3.7.1/dist/apexcharts.amd.js')
Insert cell
ApexCharts.default
Insert cell
DOM.element('div', { id: 'chart2' })
Insert cell
chart = {
return new ApexCharts.default(
document.getElementById("chart"),
options
)
}
Insert cell
options = ({
series: [
{
name: "Series 1",
data: [{
x: 'W1',
y: 22
}, {
x: 'W2',
y: 29
}, {
x: 'W3',
y: 13
}, {
x: 'W4',
y: 32
}]
},
{
name: "Series 2",
data: [{
x: 'W1',
y: 43
}, {
x: 'W2',
y: 43
}, {
x: 'W3',
y: 43
}, {
x: 'W4',
y: 43
}]
}
]
})
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more