score:1
Accepted answer
You can stack the pie charts by added several charts after each other in the series array of the highcharts object. You just have to add them to the same position, but adjust the size for the different levels. See fiddle bellow.
Highcharts.chart('container', {
title: {
text: 'Stacked pie charts'
},
xAxis: {},
labels: {},
series: [{
type: 'pie',
name: 'Level 1',
data: [{
name: '1.1',
y: 1.1,
color: Highcharts.getOptions().colors[6]
}, {
name: '1.2',
y: 1.2,
color: Highcharts.getOptions().colors[7]
}, {
name: '1.3',
y: 1.3,
color: Highcharts.getOptions().colors[8]
}],
center: [200, 200],
size: 300,
showInLegend: false,
dataLabels: {
enabled: false
}
}, {
type: 'pie',
name: 'Level 2',
data: [{
name: '2.1',
y: 2.1,
color: Highcharts.getOptions().colors[0]
}, {
name: '2.2',
y: 2.2,
color: Highcharts.getOptions().colors[1]
}, {
name: '2.3',
y: 2.3,
color: Highcharts.getOptions().colors[2]
}],
center: [200, 200],
size: 200,
showInLegend: false,
dataLabels: {
enabled: false
}
}, {
type: 'pie',
name: 'Level 3',
data: [{
name: '3.1',
y: 3.1,
color: Highcharts.getOptions().colors[3]
}, {
name: '3.2',
y: 3.2,
color: Highcharts.getOptions().colors[4]
}, {
name: '3.3',
y: 3.3,
color: Highcharts.getOptions().colors[5]
}],
center: [200, 200],
size: 100,
showInLegend: false,
dataLabels: {
enabled: false
}
}]
});
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 600px; margin: 0 auto"></div>
Source: stackoverflow.com
Related Query
- How to show multiple pie charts using highcharts
- How to make multiple charts using highcharts in a loop?
- Highcharts legend how to show multiple charts data category?
- Using Highcharts to show multiple stacked bar charts next to each other
- how to render multiple line charts - highcharts on same page using highcharts react wrapper - highcharts-react-offical
- How to show circular progress pie chart using the highcharts
- How to show multiple HighCharts charts in the same page?
- How to update the HighCharts title using drill-up when there are multiple charts on same page?
- How do I set multiple unique charts in their own DIVs using an AngularJS directive and Highcharts
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- Javascript Highcharts v3.0.5 - How to hide Y Axis Title when using multiple Y Axis
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- Using connecting legends for two Highcharts pie charts
- How to export multiple charts in HighCharts to one file (png, jpeg, pdf)
- How to render multiple HighCharts using a queue to prevent long load times
- How to make two charts using highchart show up in the same line side by side using div
- Highcharts Pie Charts Show Outline When Empty
- Charts using Highcharts with multiple series from JSON
- Highcharts multiple charts on a single page using c# asp.net mvc3
- how to show column and area charts with different y axis with same category and same x axis in highcharts
- How to draw multiple highcharts using highcharts-ng and angularjs
- How to show multiple Highcharts graph on one page
- Highcharts display label for pie chart using html table as data source
- How to show 12AM and 12PM on x-axis using highcharts library
- Highcharts drilldown to pie chart - Clicking on axis label with multiple series causes pie charts to overlap
- How to show other point property in bubble highcharts using tooltip
- Highcharts - How to split up multiple charts in Rails 3
- How to have legends in Pie charts as data labels in HighCharts
- HTML table as data source for highstock charts using highcharts
- Highcharts - how to display multiple graphs on one page using multiple xml files
More Query from same tag
- Dashboard using highcharts.js
- datatable and highchart functionality not working with 'View All' bootstrap tab
- How can I update two highcharts with one dropdown menu?
- Highcharts plotBackgroundColor on spider chart
- Rotating xAxis categories in Polar Chart using Highcharts?
- Highcharts animation with color blending
- Highchart logarithmic X axis fail without zero values nor threshold under zero nor minimum
- bubble chart with highstock
- HighStock Navigator Handles are not moving
- How to remove border radius when use Highcharts renderer.rect function
- Highcharts Auto Calculate Multiple Series Position
- Max & Min highchart line
- How to convert a multi-key hash to single key hash in Ruby for Highcharts
- Highcharts - Heatmap - Legend remove white "dashes"
- Understand variable assigment in JS
- Highcharts tooltip overlapped by absolute positioned element
- Adding a string to highcharts tooltip based on a separate data series
- Highcharts multiple data on single point in series
- Bar-chart gradient background not showing - Highcharts
- How do I get data from a RESTful API JSON response in React?
- How to create a range between series?
- JSON how to get squared brackets?
- Highcharts modify stacklabels dynamically
- Fill area beneath scatter points with color in Highcharts 3d scatter plot
- How to manage y-axis values of high chart
- alternative to deprecated Highcharts.each when using arrays within an array
- Hight chart value are hidden , while clicking all legend
- Highcharts metric prefix
- Highcharts calculated max value not working with 2+ Y axis
- Using HighCharts styledMode in Angular 8 application