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',464319,null,null,null,null], ['2024-04-18',464433,null,null,null,null], ['2024-04-19',464433,null,null,null,null], ['2024-04-20',464559,null,null,null,null], ['2024-04-21',464688,null,null,null,null], ['2024-04-22',464834,null,null,null,null], ['2024-04-23',464997,null,null,null,null], ['2024-04-24',465127,null,null,null,null], ['2024-04-25',465240,null,null,null,null], ['2024-04-26',465456,null,null,null,null], ['2024-04-27',465573,null,null,null,null], ['2024-04-28',465681,null,null,null,null], ['2024-04-29',465829,null,null,null,null], ['2024-04-30',465829,null,null,null,null], ['2024-05-01',466128,null,null,null,null], ['2024-05-02',466128,null,null,null,null], ['2024-05-03',466347,null,null,null,null], ['2024-05-04',466490,null,null,null,null], ['2024-05-05',467133,null,null,null,null], ['2024-05-06',467356,null,null,null,null], ['2024-05-07',467679,null,null,null,null], ['2024-05-08',467679,null,null,null,null], ['2024-05-09',467679,null,null,null,null], ['2024-05-10',467945,null,null,null,null], ['2024-05-11',468095,null,null,null,null], ['2024-05-12',468260,null,null,null,null], ['2024-05-13',468573,null,null,null,null], ['2024-05-14',468680,null,null,null,null], ['2024-05-15',468767,null,null,null,null], ['2024-05-16',468767,null,null,null,null], ['2024-05-17',468877,null,null,null,null], ['2024-05-18',469021,null,null,null,null], ['2024-05-19',469175,null,null,null,null], ['2024-05-20',469175,null,null,null,null], ['2024-05-21',469421,null,null,null,null], ['2024-05-22',469489,null,null,null,null], ['2024-05-23',469607,null,null,null,null], ['2024-05-24',469694,null,null,null,null], ['2024-05-25',469776,null,null,null,null], ['2024-05-26',469859,null,null,null,null], ['2024-05-27',470053,null,null,null,null], ['2024-05-28',470053,null,null,null,null], ['2024-05-29',470124,null,null,null,null], ['2024-05-30',470180,null,null,null,null], ['2024-05-31',470290,null,null,null,null], ['2024-06-01',470290,null,null,null,null], ['2024-06-02',470290,null,null,null,null], ['2024-06-03',470290,null,null,null,null], ['2024-06-04',470290,null,null,null,null], ['2024-06-05',470290,null,null,null,null], ['2024-06-06',470649,null,null,null,null], ['2024-06-07',470747,null,null,null,null], ['2024-06-08',470775,null,null,null,null], ['2024-06-09',470848,null,null,null,null], ['2024-06-10',470985,null,null,null,null], ['2024-06-11',471022,null,null,null,null], ['2024-06-12',471111,null,null,null,null], ['2024-06-13',471111,null,null,null,null], ['2024-06-14',471234,null,null,null,null], ['2024-06-15',471234,null,null,null,null], ['2024-06-16',471234,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) } }); });