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-17',507932,null,null,null,null], ['2024-04-18',508354,null,null,null,null], ['2024-04-19',508795,null,null,null,null], ['2024-04-20',508795,null,171,null,null], ['2024-04-21',509463,null,null,null,null], ['2024-04-22',509987,null,null,null,null], ['2024-04-23',510545,null,null,null,null], ['2024-04-24',510887,null,null,null,null], ['2024-04-25',511123,null,null,null,null], ['2024-04-26',511565,null,null,null,null], ['2024-04-27',512120,null,82,null,null], ['2024-04-28',512466,null,115,null,null], ['2024-04-29',513039,null,136,null,null], ['2024-04-30',514137,null,null,null,null], ['2024-05-01',514137,null,null,null,null], ['2024-05-02',514960,null,138,null,null], ['2024-05-03',515469,null,189,null,null], ['2024-05-04',515469,null,null,null,null], ['2024-05-05',516244,null,null,null,null], ['2024-05-06',516914,null,null,null,null], ['2024-05-07',517479,null,null,null,null], ['2024-05-08',518062,null,null,null,null], ['2024-05-09',518522,null,null,null,null], ['2024-05-10',518927,null,null,null,null], ['2024-05-11',519461,null,138,null,null], ['2024-05-12',519782,null,177,null,null], ['2024-05-13',520831,null,null,null,null], ['2024-05-14',520831,null,null,null,null], ['2024-05-15',521206,null,null,null,null], ['2024-05-16',521438,null,null,null,null], ['2024-05-17',522287,null,null,null,null], ['2024-05-18',522670,null,163,null,null], ['2024-05-19',522670,null,null,null,null], ['2024-05-20',523707,null,null,null,null], ['2024-05-21',523707,null,null,null,null], ['2024-05-22',523920,null,null,null,null], ['2024-05-23',524550,null,null,null,null], ['2024-05-24',524989,null,null,null,null], ['2024-05-25',525413,null,77,null,null], ['2024-05-26',525697,null,133,null,null], ['2024-05-27',526372,null,null,null,null], ['2024-05-28',526900,null,null,null,null], ['2024-05-29',527297,null,null,null,null], ['2024-05-30',527587,null,null,null,null], ['2024-05-31',527587,null,null,null,null], ['2024-06-01',528183,null,null,null,null], ['2024-06-02',528183,null,137,null,null], ['2024-06-03',528183,null,172,null,null], ['2024-06-04',528183,null,null,null,null], ['2024-06-05',528183,null,null,null,null], ['2024-06-06',531018,null,null,null,null], ['2024-06-07',531366,null,null,null,null], ['2024-06-08',531366,null,null,null,null], ['2024-06-09',531720,null,null,null,null], ['2024-06-10',532292,null,null,null,null], ['2024-06-11',532796,null,null,null,null], ['2024-06-12',533099,null,null,null,null], ['2024-06-13',533598,null,null,null,null], ['2024-06-14',534012,null,null,null,null], ['2024-06-15',534012,null,153,null,null], ['2024-06-16',534012,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) } }); });