-
Notifications
You must be signed in to change notification settings - Fork 1
Pie Chart Sample
sharmstr edited this page Jan 21, 2023
·
4 revisions
Pie chart with default options:
{
module: "MMM-ApexCharts",
position: "top_center",
header: "Sample Chart A",
config: {
chartConfig: {
chart: {
type: 'pie'
},
series: [44, 55, 13, 43, 22],
labels: ['Team A', 'Team B', 'Team C', 'Team D', 'Team E']
}
}
}
Same pie chart with custom options:
{
module: "MMM-ApexCharts",
position: "top_center",
header: "Sample Chart B",
config: {
chartMonochrome: false, // Disabled monochrome coloring
chartDataLabels: false, // Removed data point lables
chartConfig: {
chart: {
type: 'pie'
},
series: [44, 55, 13, 43, 22],
labels: ['Team A', 'Team B', 'Team C', 'Team D', 'Team E']
}
}
}