Sample
by Black Label
HTML
<script src="https://code.highcharts.com/gantt/highcharts.js"></script>
<script src="https://code.highcharts.com/gantt/modules/gantt.js"></script>
<div id="container"></div>
CSS
#container {
max-width: 800px;
margin: 1em auto;
height: 500px;
}
JavaScript
Highcharts.ganttChart('container', {
yAxis: {
categories: ['1', '', '2']
},
series: [{
groupPadding: 1,
type: 'line',
data: [{
y: 0,
x: Date.UTC(2022, 10, 18),
}, {
y: 0,
x: Date.UTC(2022, 10, 25, 12),
}]
}, {}, {
type: 'line',
data: [{
y: 2,
x: Date.UTC(2022, 10, 18),
}, {
y: 2,
x: Date.UTC(2022, 10, 25, 12),
}]
}]
});