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-24',570091,null,null,null,null], ['2024-03-25',570360,null,null,null,null], ['2024-03-26',570772,null,null,null,null], ['2024-03-27',571022,null,null,null,null], ['2024-03-28',571032,null,null,null,null], ['2024-03-29',571240,null,null,null,null], ['2024-03-30',571534,null,null,null,null], ['2024-03-31',571534,null,null,null,null], ['2024-04-01',572106,null,null,null,null], ['2024-04-02',572106,null,null,null,null], ['2024-04-03',572106,null,null,null,null], ['2024-04-04',572523,null,null,null,null], ['2024-04-05',572626,null,null,null,null], ['2024-04-06',572830,null,null,null,null], ['2024-04-07',572982,null,null,null,null], ['2024-04-08',573176,null,null,null,null], ['2024-04-09',573354,null,null,null,null], ['2024-04-10',573487,null,null,null,null], ['2024-04-11',573558,null,null,null,null], ['2024-04-12',573735,null,null,null,null], ['2024-04-13',573843,null,null,null,null], ['2024-04-14',574017,null,null,null,null], ['2024-04-15',574371,null,null,null,null], ['2024-04-16',574371,null,null,null,null], ['2024-04-17',574530,null,null,null,null], ['2024-04-18',574703,null,null,null,null], ['2024-04-19',574890,null,null,null,null], ['2024-04-20',575072,null,null,null,null], ['2024-04-21',575430,null,null,null,null], ['2024-04-22',575673,null,null,null,null], ['2024-04-23',575860,null,null,null,null], ['2024-04-24',576042,null,null,null,null], ['2024-04-25',576042,null,null,null,null], ['2024-04-26',576133,null,null,null,null], ['2024-04-27',576355,null,null,null,null], ['2024-04-28',576488,null,null,null,null], ['2024-04-29',576669,null,null,null,null], ['2024-04-30',576669,null,null,null,null], ['2024-05-01',576965,null,null,null,null], ['2024-05-02',576987,null,null,null,null], ['2024-05-03',577246,null,null,null,null], ['2024-05-04',577392,null,null,null,null], ['2024-05-05',577634,null,null,null,null], ['2024-05-06',577803,null,null,null,null], ['2024-05-07',578154,null,null,null,null], ['2024-05-08',578154,null,null,null,null], ['2024-05-09',578335,null,null,null,null], ['2024-05-10',578512,null,null,null,null], ['2024-05-11',578679,null,null,null,null], ['2024-05-12',578817,null,null,null,null], ['2024-05-13',579003,null,null,null,null], ['2024-05-14',579183,null,null,null,null], ['2024-05-15',579470,null,null,null,null], ['2024-05-16',579506,null,null,null,null], ['2024-05-17',579832,null,null,null,null], ['2024-05-18',579832,null,null,null,null], ['2024-05-19',579960,null,null,null,null], ['2024-05-20',580292,null,null,null,null], ['2024-05-21',580500,null,null,null,null], ['2024-05-22',580591,null,null,null,null], ['2024-05-23',580825,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) } }); });