google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-04-18',207684,null,null,null,null], ['2024-04-19',207885,null,null,null,null], ['2024-04-20',208118,null,null,null,null], ['2024-04-21',208213,null,null,null,null], ['2024-04-22',208477,null,null,null,null], ['2024-04-23',208758,null,null,null,null], ['2024-04-24',208931,null,null,null,null], ['2024-04-25',209204,null,null,null,null], ['2024-04-26',209204,null,null,null,null], ['2024-04-27',209341,null,null,null,null], ['2024-04-28',209535,null,null,null,null], ['2024-04-29',209731,null,null,null,null], ['2024-04-30',210107,null,null,null,null], ['2024-05-01',210107,null,null,null,null], ['2024-05-02',210406,null,null,null,null], ['2024-05-03',210406,null,null,null,null], ['2024-05-04',210556,null,null,null,null], ['2024-05-05',210736,null,null,null,null], ['2024-05-06',210921,null,null,null,null], ['2024-05-07',211097,null,null,null,null], ['2024-05-08',211247,null,null,null,null], ['2024-05-09',211405,null,null,null,null], ['2024-05-10',211525,null,null,null,null], ['2024-05-11',211728,null,null,null,null], ['2024-05-12',211904,null,null,null,null], ['2024-05-13',212248,null,null,null,null], ['2024-05-14',212391,null,null,null,null], ['2024-05-15',212391,null,null,null,null], ['2024-05-16',212527,null,null,null,null], ['2024-05-17',212688,null,192,null,null], ['2024-05-18',212861,null,167,null,null], ['2024-05-19',213027,null,null,null,null], ['2024-05-20',213027,null,null,null,null], ['2024-05-21',213484,null,null,null,null], ['2024-05-22',213646,null,null,null,null], ['2024-05-23',213855,null,null,null,null], ['2024-05-24',214031,null,null,null,null], ['2024-05-25',214348,null,null,null,null], ['2024-05-26',214536,null,null,null,null], ['2024-05-27',214536,null,null,null,null], ['2024-05-28',214707,null,null,null,null], ['2024-05-29',215025,null,null,null,null], ['2024-05-30',215025,null,null,null,null], ['2024-05-31',215172,null,null,null,null], ['2024-06-01',215367,null,null,null,null], ['2024-06-02',215367,null,null,null,null], ['2024-06-03',215367,null,null,null,null], ['2024-06-04',215367,null,null,null,null], ['2024-06-05',215367,null,null,null,null], ['2024-06-06',216010,null,null,null,null], ['2024-06-07',216160,null,null,null,null], ['2024-06-08',216293,null,null,null,null], ['2024-06-09',216431,null,null,null,null], ['2024-06-10',216840,null,null,null,null], ['2024-06-11',216840,null,null,null,null], ['2024-06-12',216953,null,null,null,null], ['2024-06-13',217082,null,null,null,null], ['2024-06-14',217223,null,null,null,null], ['2024-06-15',217223,null,null,null,null], ['2024-06-16',217223,null,null,null,null], ['2024-06-17',217223,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:200}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });