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-23',null,null,null,null,null], ['2024-04-24',289191,null,null,null,null], ['2024-04-25',289201,null,null,null,null], ['2024-04-26',289210,null,null,null,null], ['2024-04-27',289219,null,null,null,null], ['2024-04-28',289224,null,null,null,null], ['2024-04-29',289241,null,null,null,null], ['2024-04-30',289241,null,null,null,null], ['2024-05-01',289265,null,null,null,null], ['2024-05-02',289267,null,null,null,null], ['2024-05-03',289279,null,null,null,null], ['2024-05-04',289288,null,null,null,null], ['2024-05-05',289299,null,null,null,null], ['2024-05-06',289316,null,null,null,null], ['2024-05-07',289346,null,null,null,null], ['2024-05-08',289346,null,null,null,null], ['2024-05-09',289360,null,null,null,null], ['2024-05-10',289369,null,null,null,null], ['2024-05-11',289375,null,null,null,null], ['2024-05-12',289397,null,null,null,null], ['2024-05-13',289407,null,null,null,null], ['2024-05-14',289414,null,null,null,null], ['2024-05-15',289414,null,null,null,null], ['2024-05-16',289420,null,null,null,null], ['2024-05-17',289423,null,null,null,null], ['2024-05-18',289427,null,null,null,null], ['2024-05-19',289427,null,null,null,null], ['2024-05-20',289427,null,null,null,null], ['2024-05-21',289450,null,null,null,null], ['2024-05-22',289454,null,null,null,null], ['2024-05-23',289461,null,null,null,null], ['2024-05-24',289474,null,null,null,null], ['2024-05-25',289477,null,null,null,null], ['2024-05-26',289487,null,null,null,null], ['2024-05-27',289487,null,null,null,null], ['2024-05-28',289505,null,null,null,null], ['2024-05-29',289509,null,null,null,null], ['2024-05-30',289513,null,null,null,null], ['2024-05-31',289524,null,null,null,null], ['2024-06-01',289524,null,null,null,null], ['2024-06-02',289524,null,null,null,null], ['2024-06-03',289524,null,null,null,null], ['2024-06-04',289524,null,null,null,null], ['2024-06-05',289524,null,null,null,null], ['2024-06-06',289571,null,null,null,null], ['2024-06-07',289571,null,null,null,null], ['2024-06-08',289581,null,null,null,null], ['2024-06-09',289590,null,null,null,null], ['2024-06-10',289603,null,null,null,null], ['2024-06-11',289618,null,null,null,null], ['2024-06-12',289621,null,null,null,null], ['2024-06-13',289628,null,null,null,null], ['2024-06-14',289632,null,null,null,null], ['2024-06-15',289632,null,null,null,null], ['2024-06-16',289632,null,null,null,null], ['2024-06-17',289632,null,null,null,null], ['2024-06-18',289632,null,null,null,null], ['2024-06-19',289632,null,null,null,null], ['2024-06-20',289684,null,null,null,null], ['2024-06-21',289684,null,null,null,null], ['2024-06-22',289721,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) } }); });