Set the "interpolateNulls" option to true.
Hi every one,
i want to draw tow lignes but ignoring some data table: exemple, take it from google codes:
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Year', 'Sales', 'Expenses'],
['2004', 1000, 400],
['2005', XXXX, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]);
var options = {
title: 'Company Performance'
};
var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
somme time, i dont have Sales value in 2005, so i want that google chart draw ligne for this category from 2004 to 2006.
Thank you.