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',254290,null,null,null,null], ['2024-03-25',254328,null,null,null,null], ['2024-03-26',254363,null,null,null,null], ['2024-03-27',254363,null,null,null,null], ['2024-03-28',254409,null,null,null,null], ['2024-03-29',254440,null,null,null,null], ['2024-03-30',254501,null,null,null,null], ['2024-03-31',254501,null,null,null,null], ['2024-04-01',254501,null,null,null,null], ['2024-04-02',254501,null,null,null,null], ['2024-04-03',254501,null,null,null,null], ['2024-04-04',254670,null,null,null,null], ['2024-04-05',254670,null,null,null,null], ['2024-04-06',254700,null,null,null,null], ['2024-04-07',254733,null,null,null,null], ['2024-04-08',254770,null,null,null,null], ['2024-04-09',254795,null,null,null,null], ['2024-04-10',254795,null,null,null,null], ['2024-04-11',254860,null,null,null,null], ['2024-04-12',254900,null,null,null,null], ['2024-04-13',254929,null,null,null,null], ['2024-04-14',254962,null,null,null,null], ['2024-04-15',254997,null,null,null,null], ['2024-04-16',255032,null,null,null,null], ['2024-04-17',255055,null,null,null,null], ['2024-04-18',255111,null,null,null,null], ['2024-04-19',255111,null,null,null,null], ['2024-04-20',255129,null,null,null,null], ['2024-04-21',255181,null,null,null,null], ['2024-04-22',255204,null,null,null,null], ['2024-04-23',255231,null,null,null,null], ['2024-04-24',255253,null,null,null,null], ['2024-04-25',255253,null,null,null,null], ['2024-04-26',255288,null,null,null,null], ['2024-04-27',255319,null,null,null,null], ['2024-04-28',255343,null,null,null,null], ['2024-04-29',255378,null,null,null,null], ['2024-04-30',255378,null,null,null,null], ['2024-05-01',255455,null,null,null,null], ['2024-05-02',255455,null,null,null,null], ['2024-05-03',255507,null,null,null,null], ['2024-05-04',255534,null,null,null,null], ['2024-05-05',255569,null,null,null,null], ['2024-05-06',255605,null,null,null,null], ['2024-05-07',255629,null,null,null,null], ['2024-05-08',255688,null,null,null,null], ['2024-05-09',255688,null,null,null,null], ['2024-05-10',255711,null,null,null,null], ['2024-05-11',255738,null,null,null,null], ['2024-05-12',255756,null,null,null,null], ['2024-05-13',255785,null,null,null,null], ['2024-05-14',255810,null,null,null,null], ['2024-05-15',255837,null,null,null,null], ['2024-05-16',255854,null,null,null,null], ['2024-05-17',255911,null,null,null,null], ['2024-05-18',255911,null,null,null,null], ['2024-05-19',255911,null,null,null,null], ['2024-05-20',255968,null,null,null,null], ['2024-05-21',255989,null,null,null,null], ['2024-05-22',256012,null,null,null,null], ['2024-05-23',256041,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) } }); });