I'm trying to replicate chart similar to this (See Image Below). I've attached two separate plunkers for each chart.
What I am trying to achieve: Example Image
Donut Chart: ===> See Comment below for Plunkr
chart: {
type: 'pie'
},
credits: {
enabled: false
},
colors: ['#F59640', '#A589D9', '#F16D64', '#35BEC1', '#EDEDED'],
title: {
text: '82',
style: {
color: '#333333',
fontWeight: 'bold',
fill: '#333333',
width: '211px',
fontSize: '32px'
},
y: -30,
verticalAlign: 'middle'
},
subtitle: {
text: 'out of 100',
style: {
color: '#333333',
fill: '#333333',
width: '211px',
fontSize: '28px'
},
y: 30,
verticalAlign: 'middle'
},
plotOptions: {
pie: {
innerSize: '60%',
outerRadius: '70%',
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: false
}
}
},
exporting: {
enabled: false
},
series: [{
data: [
['Collaboration', 19.61],
['Reading Articles', 17.47],
['Insight', 19.95],
['Personalization', 25]
]
}]
- I'm trying to setup these values dynamically from an API. Total value is 100%, with 4-5 categories/series.
- Its almost complete, just need to show blank value if items do not add up to 100%.
Bar Chart: ===> Bar Chart Plunkr
chart: {
type: 'bar'
},
title: {
text: ''
},
legend: {
enabled: false
},
xAxis: {
categories: ['Collaboration', 'Reading Articles', 'Insight', 'Personalization'],
visible: false,
},
yAxis: {
min: 0,
max: 25,
title: {
text: null
},
stackLabels: {
enabled: true,
},
},
exporting: {
enabled: false
},
plotOptions: {
series: {
stacking: 'percent'
},
bar: {
grouping: false,
dataLabels: {
enabled: false
}
}
},
credits: {
enabled: false
},
series: [{
name: 'Remaining',
data: [5.39, 7.53, 5.05, 0],
borderWidth: 0,
color: 'rgba(0,0,0,0)'
}, {
name: 'Remaining',
data: [5.39, 7.53, 5.05, 0],
borderWidth: 0,
stack: 1,
animation: false,
color: '#CCC'
}, {
name: 'Completed',
data: [{ y: 19.61, color: '#F59640' }, { y: 17.47, color: '#A589D9' }, { y: 19.95, color: '#F16D64' },
{ y: 25, color: '#35BEC1' }]
}]
Unable to separate each bar like the image. Each bars are not stacking each other.
Also trying to match BOTH the labels above each bar as well as showing the Y labels under each bar with only the First and Last Label Showing.
Unable to post more than 2 link at this time.
Thank you in advance for your help.