JSFiddle - React, Tailwind, and code Playground
by mrmartineau
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; max-width: 800px; height: 200px; margin: 0 auto"></div>
<br><br>
<div id="container_2" style="min-width: 310px; max-width: 370px; height: 200px; margin:;"></div>
CSS
.highcharts-grid {
display: none;
}
.highcharts-axis-labels {
display: none;
}
.highcharts-axis {
display: none;
}
.highcharts-button {
display: none;
}
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'bar',
animation: {
duration: 3500,
easing: 'easeInOut'
}
},
title: {
text: 'Skills Weighed'
},
yAxis: {
min: 0,
max: 100
},
legend: {
reversed: true
},
plotOptions: {
series: {
stacking: 'normal',
colorByPoint: false
}
},
series: [{
name: 'Photography',
data: [10],
color: 'e1e1e1'
},{
name: 'SysAdmin',
data: [5],
color: 'red'
},{
name: 'Design',
data: [25],
color: '#0095d4'
},{
name: 'Development',
data: [20],
color: '#000080'
},{
name: 'Design',
data: [25],
color: '#0095d4'
},{
name: 'Marketing',
data: [5],
color: 'red'
},{
name: 'Client Facing',
data: [10],
color: 'e1e1e1'
},]
});
$('#container_2').highcharts({
chart: {
type: 'bar',
animation: {
duration: 3500,
easing: 'easeInOut'
}
},
title: {
text: 'Design Skills Weighed'
},
yAxis: {
min: 0,
max: 100
},
legend: {
reversed: false
},
plotOptions: {
series: {
...