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-19',124635,null,null,null,null], ['2024-04-20',124697,null,null,null,null], ['2024-04-21',124749,null,null,null,null], ['2024-04-22',124830,null,null,null,null], ['2024-04-23',124897,null,null,null,null], ['2024-04-24',124949,null,null,null,null], ['2024-04-25',125021,null,null,null,null], ['2024-04-26',125101,null,null,null,null], ['2024-04-27',125183,null,null,null,null], ['2024-04-28',125242,null,null,null,null], ['2024-04-29',125354,null,null,null,null], ['2024-04-30',125567,null,null,null,null], ['2024-05-01',125567,null,null,null,null], ['2024-05-02',125718,null,null,null,null], ['2024-05-03',125718,null,null,null,null], ['2024-05-04',125781,null,null,null,null], ['2024-05-05',125877,null,null,null,null], ['2024-05-06',125977,null,null,null,null], ['2024-05-07',126078,null,null,null,null], ['2024-05-08',126149,null,null,null,null], ['2024-05-09',126313,null,null,null,null], ['2024-05-10',126369,null,null,null,null], ['2024-05-11',126369,null,null,null,null], ['2024-05-12',126436,null,null,null,null], ['2024-05-13',126517,null,null,null,null], ['2024-05-14',126613,null,null,null,null], ['2024-05-15',126669,null,null,null,null], ['2024-05-16',126713,null,null,null,null], ['2024-05-17',126768,null,null,null,null], ['2024-05-18',126768,null,null,null,null], ['2024-05-19',126881,null,null,null,null], ['2024-05-20',126881,null,null,null,null], ['2024-05-21',127029,null,null,null,null], ['2024-05-22',127095,null,null,null,null], ['2024-05-23',127161,null,null,null,null], ['2024-05-24',127225,null,null,null,null], ['2024-05-25',127281,null,null,null,null], ['2024-05-26',127316,null,null,null,null], ['2024-05-27',127412,null,null,null,null], ['2024-05-28',127412,null,null,null,null], ['2024-05-29',127435,null,null,null,null], ['2024-05-30',127458,null,null,null,null], ['2024-05-31',127484,null,null,null,null], ['2024-06-01',127484,null,null,null,null], ['2024-06-02',127484,null,null,null,null], ['2024-06-03',127484,null,null,null,null], ['2024-06-04',127484,null,null,null,null], ['2024-06-05',127484,null,null,null,null], ['2024-06-06',127696,null,null,null,null], ['2024-06-07',127744,null,null,null,null], ['2024-06-08',127783,null,null,null,null], ['2024-06-09',127840,null,null,null,null], ['2024-06-10',127986,null,null,null,null], ['2024-06-11',128024,null,null,null,null], ['2024-06-12',128073,null,null,null,null], ['2024-06-13',128073,null,null,null,null], ['2024-06-14',128125,null,null,null,null], ['2024-06-15',128125,null,null,null,null], ['2024-06-16',128125,null,null,null,null], ['2024-06-17',128125,null,null,null,null], ['2024-06-18',128125,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) } }); });