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-01-06',997054,null,null,null,null], ['2024-01-07',997054,null,null,null,null], ['2024-01-08',997054,null,null,null,null], ['2024-01-09',997549,null,null,null,null], ['2024-01-10',997549,null,null,null,null], ['2024-01-11',997549,null,null,null,null], ['2024-01-12',997549,null,null,null,null], ['2024-01-13',997549,null,null,null,null], ['2024-01-14',997549,null,null,null,null], ['2024-01-15',997549,null,188,null,null], ['2024-01-16',997549,null,null,null,null], ['2024-01-17',997549,null,null,null,null], ['2024-01-18',997549,null,null,null,null], ['2024-01-19',998066,null,null,null,null], ['2024-01-20',998180,null,null,null,null], ['2024-01-21',998180,null,null,null,null], ['2024-01-22',998180,null,null,null,null], ['2024-01-23',998180,null,null,null,null], ['2024-01-24',998203,null,null,null,null], ['2024-01-25',998203,null,null,null,null], ['2024-01-26',998203,null,null,null,null], ['2024-01-27',998515,null,null,null,null], ['2024-01-28',998515,null,null,null,null], ['2024-01-29',998515,null,null,null,null], ['2024-01-30',998657,null,null,null,null], ['2024-01-31',998898,null,null,null,null], ['2024-02-01',998930,null,null,null,null], ['2024-02-02',999059,null,null,null,null], ['2024-02-03',999088,null,null,null,null], ['2024-02-04',999150,null,null,null,null], ['2024-02-05',999150,null,null,null,null], ['2024-02-06',999216,null,null,null,null], ['2024-02-07',999267,null,null,null,null], ['2024-02-08',999267,null,null,null,null], ['2024-02-09',999322,null,null,null,null], ['2024-02-10',999377,null,null,null,null], ['2024-02-11',999420,null,null,null,null], ['2024-02-12',999467,null,157,null,null], ['2024-02-13',999503,null,null,null,null], ['2024-02-14',999544,null,null,null,null], ['2024-02-15',999558,null,null,null,null], ['2024-02-16',999606,null,null,null,null], ['2024-02-17',999690,null,null,null,null], ['2024-02-18',999690,null,null,null,null], ['2024-02-19',999690,null,null,null,null], ['2024-02-20',999690,null,null,null,null], ['2024-02-21',999690,null,null,null,null], ['2024-02-22',999846,null,null,null,null], ['2024-02-23',999886,null,null,null,null], ['2024-02-24',999929,null,null,null,null], ['2024-02-25',1000017,null,null,null,null], ['2024-02-26',1000017,null,null,null,null], ['2024-02-27',1000058,null,null,null,null], ['2024-02-28',1000104,null,null,null,null], ['2024-02-29',1000156,null,null,null,null], ['2024-03-01',1000198,null,null,null,null], ['2024-03-02',1000217,null,null,null,null], ['2024-03-03',1000270,null,null,null,null], ['2024-03-04',1000299,null,null,null,null], ['2024-03-05',1000344,null,null,null,null], ['2024-03-06',1000379,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) } }); });