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-19',11730489,null,null,null,null], ['2024-04-20',11730780,null,null,null,null], ['2024-04-21',11730907,null,null,null,null], ['2024-04-22',11731111,null,null,null,null], ['2024-04-23',11731111,null,null,null,null], ['2024-04-24',11731275,null,null,null,null], ['2024-04-25',11731396,null,null,null,null], ['2024-04-26',11731486,null,null,null,null], ['2024-04-27',11731698,null,null,null,null], ['2024-04-28',11731761,null,null,null,null], ['2024-04-29',11731941,null,null,null,null], ['2024-04-30',11731941,null,null,null,null], ['2024-05-01',11732217,null,null,null,null], ['2024-05-02',11732217,null,null,null,null], ['2024-05-03',11732541,null,null,null,null], ['2024-05-04',11732741,null,null,null,null], ['2024-05-05',11732803,null,null,null,null], ['2024-05-06',11732984,null,null,null,null], ['2024-05-07',11733266,null,null,null,null], ['2024-05-08',11733266,null,null,null,null], ['2024-05-09',11733347,null,null,null,null], ['2024-05-10',11733531,null,null,null,null], ['2024-05-11',11733658,null,null,null,null], ['2024-05-12',11733774,null,null,null,null], ['2024-05-13',11733981,null,null,null,null], ['2024-05-14',11734264,null,null,null,null], ['2024-05-15',11734406,null,null,null,null], ['2024-05-16',11734406,null,null,null,null], ['2024-05-17',11734621,null,null,null,null], ['2024-05-18',11734712,null,null,null,null], ['2024-05-19',11734712,null,null,null,null], ['2024-05-20',11735023,null,null,null,null], ['2024-05-21',11735142,null,null,null,null], ['2024-05-22',11735255,null,null,null,null], ['2024-05-23',11735449,null,null,null,null], ['2024-05-24',11735640,null,null,null,null], ['2024-05-25',11735920,null,null,null,null], ['2024-05-26',11735920,null,null,null,null], ['2024-05-27',11736077,null,null,null,null], ['2024-05-28',11736233,null,null,null,null], ['2024-05-29',11736490,null,null,null,null], ['2024-05-30',11736490,null,null,null,null], ['2024-05-31',11736609,null,null,null,null], ['2024-06-01',11736609,null,null,null,null], ['2024-06-02',11736609,null,null,null,null], ['2024-06-03',11736609,null,null,null,null], ['2024-06-04',11736609,null,null,null,null], ['2024-06-05',11736609,null,null,null,null], ['2024-06-06',11737460,null,null,null,null], ['2024-06-07',11737543,null,null,null,null], ['2024-06-08',11737648,null,null,null,null], ['2024-06-09',11737759,null,null,null,null], ['2024-06-10',11738046,null,null,null,null], ['2024-06-11',11738198,null,null,null,null], ['2024-06-12',11738327,null,null,null,null], ['2024-06-13',11738465,null,null,null,null], ['2024-06-14',11738465,null,null,null,null], ['2024-06-15',11738667,null,null,null,null], ['2024-06-16',11738667,null,null,null,null], ['2024-06-17',11738667,null,null,null,null], ['2024-06-18',11738667,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) } }); });