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-03-14',59073,null,null,null,null], ['2024-03-15',59073,null,null,null,null], ['2024-03-16',59087,null,null,null,null], ['2024-03-17',59093,null,null,null,null], ['2024-03-18',59093,null,null,null,null], ['2024-03-19',59100,null,null,null,null], ['2024-03-20',59102,null,null,null,null], ['2024-03-21',59107,null,null,null,null], ['2024-03-22',59115,null,null,null,null], ['2024-03-23',59119,null,null,null,null], ['2024-03-24',59124,null,null,null,null], ['2024-03-25',59130,null,null,null,null], ['2024-03-26',59133,null,null,null,null], ['2024-03-27',59133,null,null,null,null], ['2024-03-28',59146,null,null,null,null], ['2024-03-29',59150,null,null,null,null], ['2024-03-30',59150,null,null,null,null], ['2024-03-31',59150,null,null,null,null], ['2024-04-01',59150,null,null,null,null], ['2024-04-02',59150,null,null,null,null], ['2024-04-03',59150,null,null,null,null], ['2024-04-04',59179,null,null,null,null], ['2024-04-05',59181,null,null,null,null], ['2024-04-06',59181,null,null,null,null], ['2024-04-07',59193,null,null,null,null], ['2024-04-08',59193,null,null,null,null], ['2024-04-09',59204,null,null,null,null], ['2024-04-10',59207,null,null,null,null], ['2024-04-11',59211,null,null,null,null], ['2024-04-12',59218,null,null,null,null], ['2024-04-13',59221,null,null,null,null], ['2024-04-14',59224,null,null,null,null], ['2024-04-15',59226,null,null,null,null], ['2024-04-16',59227,null,null,null,null], ['2024-04-17',59232,null,null,null,null], ['2024-04-18',59239,null,null,null,null], ['2024-04-19',59246,null,null,null,null], ['2024-04-20',59252,null,null,null,null], ['2024-04-21',59252,null,null,null,null], ['2024-04-22',59256,null,null,null,null], ['2024-04-23',59263,null,null,null,null], ['2024-04-24',59267,null,null,null,null], ['2024-04-25',59278,null,null,null,null], ['2024-04-26',59278,null,null,null,null], ['2024-04-27',59283,null,null,null,null], ['2024-04-28',59289,null,null,null,null], ['2024-04-29',59289,null,null,null,null], ['2024-04-30',59289,null,null,null,null], ['2024-05-01',59307,null,null,null,null], ['2024-05-02',59307,null,null,null,null], ['2024-05-03',59324,null,null,null,null], ['2024-05-04',59325,null,null,null,null], ['2024-05-05',59332,null,null,null,null], ['2024-05-06',59336,null,null,null,null], ['2024-05-07',59337,null,null,null,null], ['2024-05-08',59337,null,null,null,null], ['2024-05-09',59337,null,null,null,null], ['2024-05-10',59362,null,null,null,null], ['2024-05-11',59365,null,null,null,null], ['2024-05-12',59369,null,null,null,null], ['2024-05-13',59372,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) } }); });