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',708254,null,null,null,null], ['2024-04-19',708288,null,null,null,null], ['2024-04-20',708326,null,null,null,null], ['2024-04-21',708359,null,null,null,null], ['2024-04-22',708411,null,null,null,null], ['2024-04-23',708460,null,null,null,null], ['2024-04-24',708506,null,null,null,null], ['2024-04-25',708558,null,null,null,null], ['2024-04-26',708569,null,null,null,null], ['2024-04-27',708589,null,null,null,null], ['2024-04-28',708616,null,null,null,null], ['2024-04-29',708666,null,null,null,null], ['2024-04-30',708761,null,null,null,null], ['2024-05-01',708761,null,null,null,null], ['2024-05-02',708874,null,null,null,null], ['2024-05-03',708874,null,null,null,null], ['2024-05-04',708909,null,null,null,null], ['2024-05-05',708961,null,null,null,null], ['2024-05-06',709022,null,null,null,null], ['2024-05-07',709083,null,null,null,null], ['2024-05-08',709112,null,null,null,null], ['2024-05-09',709142,null,null,null,null], ['2024-05-10',709161,null,null,null,null], ['2024-05-11',709161,null,null,null,null], ['2024-05-12',709178,null,null,null,null], ['2024-05-13',709206,null,null,null,null], ['2024-05-14',709232,null,null,null,null], ['2024-05-15',709246,null,null,null,null], ['2024-05-16',709259,null,null,null,null], ['2024-05-17',709272,null,null,null,null], ['2024-05-18',709292,null,null,null,null], ['2024-05-19',709292,null,null,null,null], ['2024-05-20',709348,null,null,null,null], ['2024-05-21',709383,null,null,null,null], ['2024-05-22',709402,null,null,null,null], ['2024-05-23',709423,null,null,null,null], ['2024-05-24',709438,null,null,null,null], ['2024-05-25',709459,null,null,null,null], ['2024-05-26',709504,null,null,null,null], ['2024-05-27',709535,null,null,null,null], ['2024-05-28',709535,null,null,null,null], ['2024-05-29',709556,null,null,null,null], ['2024-05-30',709569,null,null,null,null], ['2024-05-31',709578,null,null,null,null], ['2024-06-01',709578,null,null,null,null], ['2024-06-02',709578,null,null,null,null], ['2024-06-03',709578,null,null,null,null], ['2024-06-04',709673,null,null,null,null], ['2024-06-05',709673,null,null,null,null], ['2024-06-06',709706,null,null,null,null], ['2024-06-07',709712,null,null,null,null], ['2024-06-08',709725,null,null,null,null], ['2024-06-09',709746,null,null,null,null], ['2024-06-10',709777,null,null,null,null], ['2024-06-11',709816,null,null,null,null], ['2024-06-12',709849,null,null,null,null], ['2024-06-13',709871,null,null,null,null], ['2024-06-14',709901,null,null,null,null], ['2024-06-15',709932,null,null,null,null], ['2024-06-16',709932,null,null,null,null], ['2024-06-17',709932,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) } }); });