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-25',8631605,null,null,null,null], ['2024-03-26',8632560,null,null,null,null], ['2024-03-27',8632560,null,null,null,null], ['2024-03-28',8634634,null,null,null,null], ['2024-03-29',8634634,null,null,null,null], ['2024-03-30',8634634,null,null,null,null], ['2024-03-31',8634634,null,null,null,null], ['2024-04-01',8634634,null,null,null,null], ['2024-04-02',8634634,null,null,null,null], ['2024-04-03',8634634,null,null,null,null], ['2024-04-04',8639982,null,null,null,null], ['2024-04-05',8641125,null,null,null,null], ['2024-04-06',8642125,null,null,null,null], ['2024-04-07',8642125,null,null,null,null], ['2024-04-08',8643039,null,null,null,null], ['2024-04-09',8644256,null,null,null,null], ['2024-04-10',8645194,null,null,null,null], ['2024-04-11',8646211,null,null,null,null], ['2024-04-12',8646945,null,null,null,null], ['2024-04-13',8648657,null,null,null,null], ['2024-04-14',8650833,null,null,null,null], ['2024-04-15',8653796,null,null,null,null], ['2024-04-16',8656037,null,null,null,null], ['2024-04-17',8657633,null,null,null,null], ['2024-04-18',8659293,null,null,null,null], ['2024-04-19',8661232,null,null,null,null], ['2024-04-20',8662390,null,null,null,null], ['2024-04-21',8663342,null,null,null,null], ['2024-04-22',8665008,null,null,null,null], ['2024-04-23',8665659,null,null,null,null], ['2024-04-24',8666447,null,null,null,null], ['2024-04-25',8667392,null,null,null,null], ['2024-04-26',8667936,null,null,null,null], ['2024-04-27',8668948,null,null,null,null], ['2024-04-28',8668948,null,null,null,null], ['2024-04-29',8669915,null,null,null,null], ['2024-04-30',8669915,null,null,null,null], ['2024-05-01',8671430,null,null,null,null], ['2024-05-02',8671430,null,null,null,null], ['2024-05-03',8673252,null,null,null,null], ['2024-05-04',8674049,null,null,null,null], ['2024-05-05',8674823,null,null,null,null], ['2024-05-06',8675725,null,null,null,null], ['2024-05-07',8676581,null,null,null,null], ['2024-05-08',8678330,null,null,null,null], ['2024-05-09',8678330,null,null,null,null], ['2024-05-10',8679286,null,null,null,null], ['2024-05-11',8679852,null,null,null,null], ['2024-05-12',8680804,null,null,null,null], ['2024-05-13',8682855,null,null,null,null], ['2024-05-14',8683538,null,null,null,null], ['2024-05-15',8683538,null,null,null,null], ['2024-05-16',8684331,null,null,null,null], ['2024-05-17',8685321,null,null,null,null], ['2024-05-18',8686246,null,null,null,null], ['2024-05-19',8687051,null,null,null,null], ['2024-05-20',8687051,null,null,null,null], ['2024-05-21',8689136,null,null,null,null], ['2024-05-22',8689703,null,null,null,null], ['2024-05-23',8690688,null,null,null,null], ['2024-05-24',8692179,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:0}} ], 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) } }); });