JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://www.google.com/jsapi?.js"></script>
<div id="chart_div"></div>
JavaScript
function drawChart () {
var data = google.visualization.arrayToDataTable([
['X', 'Y', 'vertical line', {type: 'boolean', role: 'certainty'}],
[1, 5, null, null],
[2, 2, null, null],
// put the vertical line here
[3, 6, 0, false],
// this is the duplicate row
[3, 6, 10, false],
[4, 7, null, null]
]);
var chart = new google.visualization.ComboChart(document.querySelector('#chart_div'));
chart.draw(data, {
height: 400,
width: 600,
series: {
1: {
// hide the vertical line from the legend
showInLegend: false,
enableInteractivity: false
}
},
vAxis: {
viewWindow: {
min: 0,
max: 8
}
}
});
}
google.load('visualization', '1', {packages:['corechart'], callback: drawChart});