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([ ['2023-10-31',522017,null,null,null,null], ['2023-11-01',522017,null,null,null,null], ['2023-11-02',522033,null,null,null,null], ['2023-11-03',522033,null,null,null,null], ['2023-11-04',522053,null,null,null,null], ['2023-11-05',522066,null,null,null,null], ['2023-11-06',522075,null,null,null,null], ['2023-11-07',522083,null,null,null,null], ['2023-11-08',522089,null,null,null,null], ['2023-11-09',522095,null,null,null,null], ['2023-11-10',522099,null,null,null,null], ['2023-11-11',522103,null,null,null,null], ['2023-11-12',522113,null,null,null,null], ['2023-11-13',522120,null,null,null,null], ['2023-11-14',522131,null,null,null,null], ['2023-11-15',522133,null,null,null,null], ['2023-11-16',522139,null,null,null,null], ['2023-11-17',522146,null,null,null,null], ['2023-11-18',522153,null,null,null,null], ['2023-11-19',522161,null,null,null,null], ['2023-11-20',522172,null,null,null,null], ['2023-11-21',522189,null,null,null,null], ['2023-11-22',522194,null,null,null,null], ['2023-11-23',522194,null,null,null,null], ['2023-11-24',522198,null,null,null,null], ['2023-11-25',522198,null,null,null,null], ['2023-11-26',522198,null,null,null,null], ['2023-11-27',522204,null,null,null,null], ['2023-11-28',522204,null,null,null,null], ['2023-11-29',522244,null,null,null,null], ['2023-11-30',522244,null,null,null,null], ['2023-12-01',522244,null,null,null,null], ['2023-12-02',522244,null,null,null,null], ['2023-12-03',522272,null,null,null,null], ['2023-12-04',522284,null,null,null,null], ['2023-12-05',522297,null,null,null,null], ['2023-12-06',522305,null,null,null,null], ['2023-12-07',522307,null,null,null,null], ['2023-12-08',522312,null,null,null,null], ['2023-12-09',522325,null,null,null,null], ['2023-12-10',522333,null,null,null,null], ['2023-12-11',522341,null,null,null,null], ['2023-12-12',522356,null,null,null,null], ['2023-12-13',522367,null,null,null,null], ['2023-12-14',522375,null,null,null,null], ['2023-12-15',522384,null,null,null,null], ['2023-12-16',522394,null,null,null,null], ['2023-12-17',522413,null,null,null,null], ['2023-12-18',522413,null,null,null,null], ['2023-12-19',522425,null,null,null,null], ['2023-12-20',522425,null,null,null,null], ['2023-12-21',522425,null,null,null,null], ['2023-12-22',522425,null,null,null,null], ['2023-12-23',522425,null,null,null,null], ['2023-12-24',522425,null,null,null,null], ['2023-12-25',522470,null,null,null,null], ['2023-12-26',522470,null,null,null,null], ['2023-12-27',522470,null,null,null,null], ['2023-12-28',522470,null,null,null,null], ['2023-12-29',522470,null,null,null,null], ['2023-12-30',522470,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) } }); });