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-25',248617,null,null,null,null], ['2024-01-26',248617,null,null,null,null], ['2024-01-27',248992,null,null,null,null], ['2024-01-28',248992,null,null,null,null], ['2024-01-29',249367,null,null,null,null], ['2024-01-30',249367,null,null,null,null], ['2024-01-31',250103,null,null,null,null], ['2024-02-01',250103,null,null,null,null], ['2024-02-02',250103,null,null,null,null], ['2024-02-03',250371,null,null,null,null], ['2024-02-04',250398,null,null,null,null], ['2024-02-05',250610,null,null,null,null], ['2024-02-06',250707,null,null,null,null], ['2024-02-07',250804,null,null,null,null], ['2024-02-08',250896,null,null,null,null], ['2024-02-09',250945,null,null,null,null], ['2024-02-10',251045,null,null,null,null], ['2024-02-11',251125,null,null,null,null], ['2024-02-12',251272,null,null,null,null], ['2024-02-13',251323,null,null,null,null], ['2024-02-14',251464,null,null,null,null], ['2024-02-15',251515,null,null,null,null], ['2024-02-16',251549,null,null,null,null], ['2024-02-17',251549,null,null,null,null], ['2024-02-18',251549,null,null,null,null], ['2024-02-19',251769,null,null,null,null], ['2024-02-20',251769,null,null,null,null], ['2024-02-21',251944,null,null,null,null], ['2024-02-22',252066,null,null,null,null], ['2024-02-23',252153,null,null,null,null], ['2024-02-24',252253,null,null,null,null], ['2024-02-25',252402,null,null,null,null], ['2024-02-26',252491,null,null,null,null], ['2024-02-27',252491,null,null,null,null], ['2024-02-28',252530,null,null,null,null], ['2024-02-29',252640,null,null,null,null], ['2024-03-01',252721,null,null,null,null], ['2024-03-02',252814,null,null,null,null], ['2024-03-03',252897,null,null,null,null], ['2024-03-04',253025,null,null,null,null], ['2024-03-05',253025,null,null,null,null], ['2024-03-06',253236,null,null,null,null], ['2024-03-07',253353,null,null,null,null], ['2024-03-08',253432,null,null,null,null], ['2024-03-09',253566,null,null,null,null], ['2024-03-10',253641,null,null,null,null], ['2024-03-11',253789,null,null,null,null], ['2024-03-12',253924,null,null,null,null], ['2024-03-13',254169,null,null,null,null], ['2024-03-14',254169,null,null,null,null], ['2024-03-15',254378,null,null,null,null], ['2024-03-16',254378,null,null,null,null], ['2024-03-17',254448,null,null,null,null], ['2024-03-18',254610,null,null,null,null], ['2024-03-19',254748,null,null,null,null], ['2024-03-20',254856,null,null,null,null], ['2024-03-21',254960,null,null,null,null], ['2024-03-22',254960,null,null,null,null], ['2024-03-23',255148,null,null,null,null], ['2024-03-24',255217,null,null,null,null], ['2024-03-25',255318,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) } }); });