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-18',638140,null,null,null,null], ['2024-04-19',638356,null,null,null,null], ['2024-04-20',638469,null,null,null,null], ['2024-04-21',638714,null,null,null,null], ['2024-04-22',638927,null,null,null,null], ['2024-04-23',639115,null,null,null,null], ['2024-04-24',639289,null,null,null,null], ['2024-04-25',639454,null,null,null,null], ['2024-04-26',639666,null,null,null,null], ['2024-04-27',639868,null,null,null,null], ['2024-04-28',640008,null,null,null,null], ['2024-04-29',640227,null,null,null,null], ['2024-04-30',640227,null,null,null,null], ['2024-05-01',640640,null,null,null,null], ['2024-05-02',640640,null,null,null,null], ['2024-05-03',641307,null,null,null,null], ['2024-05-04',641587,null,null,null,null], ['2024-05-05',641865,null,null,null,null], ['2024-05-06',641865,null,null,null,null], ['2024-05-07',642178,null,null,null,null], ['2024-05-08',642417,null,null,null,null], ['2024-05-09',642615,null,null,null,null], ['2024-05-10',642781,null,null,null,null], ['2024-05-11',642983,null,null,null,null], ['2024-05-12',643393,null,null,null,null], ['2024-05-13',643643,null,null,null,null], ['2024-05-14',643830,null,null,null,null], ['2024-05-15',643992,null,null,null,null], ['2024-05-16',643992,null,null,null,null], ['2024-05-17',644162,null,null,null,null], ['2024-05-18',644353,null,null,null,null], ['2024-05-19',644538,null,null,null,null], ['2024-05-20',644538,null,null,null,null], ['2024-05-21',644969,null,null,null,null], ['2024-05-22',645152,null,null,null,null], ['2024-05-23',645578,null,null,null,null], ['2024-05-24',645582,null,null,null,null], ['2024-05-25',645776,null,null,null,null], ['2024-05-26',645776,null,null,null,null], ['2024-05-27',646111,null,null,null,null], ['2024-05-28',646355,null,null,null,null], ['2024-05-29',646653,null,null,null,null], ['2024-05-30',646801,null,null,null,null], ['2024-05-31',647290,null,null,null,null], ['2024-06-01',647290,null,null,null,null], ['2024-06-02',647290,null,null,null,null], ['2024-06-03',647290,null,null,null,null], ['2024-06-04',648015,null,null,null,null], ['2024-06-05',648015,null,null,null,null], ['2024-06-06',648463,null,null,null,null], ['2024-06-07',648694,null,null,null,null], ['2024-06-08',648865,null,null,null,null], ['2024-06-09',649105,null,null,null,null], ['2024-06-10',649555,null,null,null,null], ['2024-06-11',649759,null,null,null,null], ['2024-06-12',649917,null,null,null,null], ['2024-06-13',649917,null,null,null,null], ['2024-06-14',650114,null,null,null,null], ['2024-06-15',650114,null,null,null,null], ['2024-06-16',650114,null,null,null,null], ['2024-06-17',650114,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) } }); });