JSFiddle - React, Tailwind, and code Playground
by Yuriy Bablyukh
HTML
<script src="http://qa.uz.ua/js/highcharts.js"></script>
<div>
<script>
$(function () {
$('#chart').highcharts({
chart: {
type: 'column'
},
title: {
text: 'Результат і час навчання'
},
xAxis: {
categories: [
'Курси',
'Вузи',
'Книги'
]
},
yAxis: {
min: 0,
title: {
text: '%'
}
},
tooltip: {
headerFormat: '<h3 style="font-size:10px">{point.key}</h3><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
'<td style="padding:0"></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
},
series: [{
name: 'Результат',
color: 'rgba(0, 0, 155, 1)',
data: [100, 80, 50]
}, {
name: 'Тривалість Навчання',
color: 'rgba(0, 155, 0, 1)',
data: [30, 100, 70]
}]
});
});
</script>
</div>
<div id="chart" style="min-width: 310px; height: 400px; margin: 0 auto"></div>