JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
title: {
text: 'Combination chart'
},
yAxis: {
max: 5
},
xAxis: {
categories: ['Apples', 'Oranges', 'Pears', 'Bananas', 'Plums']
},
series: [{
type: 'column',
name: 'Jane',
data: [3, 2, 1, 3, 4]
}]
}, function (chart) {
var xAxis = chart.xAxis[0],
yAxis = chart.yAxis[0];
$.each(chart.series[0].data, function (i, data) {
console.log(data);
chart.addSeries({
type: 'pie',
data: [{
y: 13
}, {
y: 23
}, {
y: 19
}],
center: [xAxis.toPixels(data.x, true) - 20, yAxis.toPixels(data.y, true) - 50],
size: 50,
showInLegend: false,
dataLabels: {
enabled: false
}
})
});
});
});