How else can you build such a graph without using these strange NULLs in an array? Here is an example
google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['дата', 'онлайн', 'офлайн'], ['09.05.16', 55, null], ['10.05.16', 44, null], ['11.05.16', 7, null], ['12.05.16', 56, null], ['13.05.16', 45, null], ['14.05.16', 45, null], ['15.05.16', 60, 60], ['16.05.16', 60, 60], ['17.05.16', 34, null], ['18.05.16', 43, null], ['19.05.16', 60, 60], ['20.05.16', 60, 60], ['21.05.16', 55, null] ]); var options = { title: 'Как можно еще построить такой график не используя в массиве эти странные NULL?', hAxis: {title: 'Дата', titleTextStyle: {color: '#333'}}, vAxis: {minValue: 0} }; var chart = new google.visualization.AreaChart(document.getElementById('chart_div')); chart.draw(data, options); }
['15.05.16', null], ['16.05.16', null], ['17.05.16', 34], ['18.05.16', 43], ['19.05.16', null], ['20.05.16', null], ['21.05.16', 55]I would like to send something like this:['15.05.16', null], ['16.05.16', null], ['17.05.16', 34], ['18.05.16', 43], ['19.05.16', null], ['20.05.16', null], ['21.05.16', 55]- wwwplatonNULLin the data, there is no line, and I need it in red there - wwwplaton