JSFiddle - React, Tailwind, and code Playground
by prateekbansal07
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>
<figure class="highcharts-figure">
<div id="container"></div>
</figure>
CSS
.highcharts-data-table table {
font-family: Verdana, sans-serif;
border-collapse: collapse;
border: 1px solid #EBEBEB;
margin: 10px auto;
text-align: center;https://jsfiddle.net/user/login/
width: 100%;
max-width: 500px;
}
.highcharts-data-table caption {
padding: 1em 0;
font-size: 1.2em;
color: #555;
}
.highcharts-data-table th {
font-weight: 600;
padding: 0.5em;
}
.highcharts-data-table td, .highcharts-data-table th, .highcharts-data-table caption {
padding: 0.5em;
}
.highcharts-data-table thead tr, .highcharts-data-table tr:nth-child(even) {
background: #f8f8f8;
}
.highcharts-data-table tr:hover {
background: #f1f7ff;
}
JavaScript
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'UAT'
},
legend:{
enabled:false
},
xAxis: {
categories: ['Q1', 'Q2', 'Q3', 'Q4'],
lineWidth: 2
},
yAxis: {
visible:false,
allowDecimals: false,
title: {
text: 'Flats'
}
},
credits: {
enabled: false
}, plotOptions: {
series: {
pointWidth: 30
}
},
series: [{
name: 'FNOPT',
data: [3,0,0,0],color: '#006400',
dashStyle: 'ShortDash',
dataLabels: {
enabled: true,
rotation: -90,
color: '#FFFFFF',
align: 'right',
format: 'FNOPT', // one decimal
y: 10, // 10 pixels down from the top
style: {
fontSize: '13px',
fontFamily: 'Verdana, sans-serif'
}
}
}, {
name: 'Spartan Validate 4 Pro',color: '#FFA500',
dashStyle: 'ShortDash',
data: [0,2,0,0],
dataLabels: {
enabled: true,
rotation: -90,
color: 'black',
align: 'right',
format: 'Spartan Validate ', // one decimal
y: 10, // 10 pixels down from the top
style: {
fontSize: '13px',
fontFamily: 'Verdana, sans-serif'
}
}
}, {
name: 'WCM',
data: [3,0,0,0],color: '#006400',
dashStyle: 'ShortDash',
dataLabels: {
enabled: true,
rotation: -90,
color: '#FFFFFF',
align: 'right',
format: 'WCM', // one decimal
y: 10, // 10 pixels down from the top
style: {
fontSize: '13px',
fontFamily: 'Verdana, sans-serif'
}
}
}, {
name: 'CSW UI',color: '#006400',
dashStyle: 'ShortDash',
...