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-12-30',null,null,null,null,null], ['2023-12-31',177902,null,null,null,null], ['2024-01-01',177902,null,null,null,null], ['2024-01-02',177902,null,null,null,null], ['2024-01-03',177902,null,null,null,null], ['2024-01-04',178076,null,null,null,null], ['2024-01-05',178076,null,null,null,null], ['2024-01-06',178076,null,null,null,null], ['2024-01-07',178076,null,null,null,null], ['2024-01-08',178076,null,null,null,null], ['2024-01-09',178076,null,null,null,null], ['2024-01-10',178076,null,null,null,null], ['2024-01-11',178251,null,null,null,null], ['2024-01-12',178278,null,null,null,null], ['2024-01-13',178299,null,null,null,null], ['2024-01-14',178299,null,null,null,null], ['2024-01-15',178299,null,null,null,null], ['2024-01-16',178299,null,null,null,null], ['2024-01-17',178299,null,null,null,null], ['2024-01-18',178388,null,null,null,null], ['2024-01-19',178388,null,null,null,null], ['2024-01-20',178464,null,null,null,null], ['2024-01-21',178464,null,null,null,null], ['2024-01-22',178464,null,null,null,null], ['2024-01-23',178464,null,null,null,null], ['2024-01-24',178462,null,null,null,null], ['2024-01-25',178462,null,null,null,null], ['2024-01-26',178565,null,null,null,null], ['2024-01-27',178565,null,null,null,null], ['2024-01-28',178565,null,null,null,null], ['2024-01-29',178565,null,null,null,null], ['2024-01-30',178642,null,null,null,null], ['2024-01-31',178739,null,null,null,null], ['2024-02-01',178766,null,null,null,null], ['2024-02-02',178778,null,null,null,null], ['2024-02-03',178799,null,null,null,null], ['2024-02-04',178799,null,null,null,null], ['2024-02-05',178818,null,null,null,null], ['2024-02-06',178833,null,null,null,null], ['2024-02-07',178845,null,null,null,null], ['2024-02-08',178869,null,null,null,null], ['2024-02-09',178890,null,null,null,null], ['2024-02-10',178907,null,null,null,null], ['2024-02-11',178917,null,null,null,null], ['2024-02-12',178936,null,null,null,null], ['2024-02-13',178950,null,null,null,null], ['2024-02-14',178985,null,null,null,null], ['2024-02-15',178985,null,null,null,null], ['2024-02-16',179000,null,null,null,null], ['2024-02-17',179033,null,null,null,null], ['2024-02-18',179033,null,null,null,null], ['2024-02-19',179085,null,null,null,null], ['2024-02-20',179085,null,null,null,null], ['2024-02-21',179124,null,null,null,null], ['2024-02-22',179124,null,null,null,null], ['2024-02-23',179145,null,null,null,null], ['2024-02-24',179170,null,null,null,null], ['2024-02-25',179170,null,null,null,null], ['2024-02-26',179196,null,null,null,null], ['2024-02-27',179211,null,null,null,null], ['2024-02-28',179236,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) } }); });