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-03-19',16037346,null,null,null,null], ['2024-03-20',16066502,null,null,null,null], ['2024-03-21',16091705,null,null,null,null], ['2024-03-22',16132734,null,null,null,null], ['2024-03-23',16140800,null,null,null,null], ['2024-03-24',16179297,null,null,null,null], ['2024-03-25',16205131,null,null,null,null], ['2024-03-26',16235587,null,null,null,null], ['2024-03-27',16277032,null,null,null,null], ['2024-03-28',16280151,null,null,null,null], ['2024-03-29',16307844,null,null,null,null], ['2024-03-30',16346747,null,null,null,null], ['2024-03-31',16362471,null,null,null,null], ['2024-04-01',16391474,null,null,null,null], ['2024-04-02',16449984,null,null,null,null], ['2024-04-03',16449984,null,null,null,null], ['2024-04-04',16449984,null,null,null,null], ['2024-04-05',16509078,null,null,null,null], ['2024-04-06',16534406,null,null,null,null], ['2024-04-07',16568326,null,null,null,null], ['2024-04-08',16605341,null,null,null,null], ['2024-04-09',16635423,null,null,null,null], ['2024-04-10',16669194,null,null,null,null], ['2024-04-11',16694731,null,null,null,null], ['2024-04-12',16758916,null,null,null,null], ['2024-04-13',16758916,null,null,null,null], ['2024-04-14',16844604,null,null,null,null], ['2024-04-15',16861865,null,null,null,null], ['2024-04-16',16900808,null,null,null,null], ['2024-04-17',16945227,null,null,null,null], ['2024-04-18',16982067,null,null,null,null], ['2024-04-19',17026648,197,null,null,null], ['2024-04-20',17087532,null,null,null,null], ['2024-04-21',17120183,null,null,null,null], ['2024-04-22',17176723,null,null,null,null], ['2024-04-23',17202888,null,null,null,null], ['2024-04-24',17221877,null,null,null,null], ['2024-04-25',17276189,null,null,null,null], ['2024-04-26',17276189,null,null,null,null], ['2024-04-27',17313214,null,null,null,null], ['2024-04-28',17348358,null,null,null,null], ['2024-04-29',17393901,null,null,null,null], ['2024-04-30',17430002,null,null,null,null], ['2024-05-01',17448569,null,null,null,null], ['2024-05-02',17448569,null,null,null,null], ['2024-05-03',17521180,null,null,null,null], ['2024-05-04',17561397,null,null,null,null], ['2024-05-05',17610088,null,null,null,null], ['2024-05-06',17647849,null,null,null,null], ['2024-05-07',17693763,null,null,null,null], ['2024-05-08',17741397,null,null,null,null], ['2024-05-09',17741397,null,null,null,null], ['2024-05-10',17776872,null,null,null,null], ['2024-05-11',17819259,null,null,null,null], ['2024-05-12',17841901,null,null,null,null], ['2024-05-13',17913860,null,null,null,null], ['2024-05-14',17931378,null,null,null,null], ['2024-05-15',17965764,null,null,null,null], ['2024-05-16',18026650,null,null,null,null], ['2024-05-17',18036029,null,null,null,null], ['2024-05-18',18104136,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) } }); });