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-25',95524824,null,null,null,null], ['2024-03-26',95525251,null,null,null,null], ['2024-03-27',95525251,null,null,null,null], ['2024-03-28',95526601,null,null,null,null], ['2024-03-29',95526846,null,null,null,null], ['2024-03-30',95526846,null,null,null,null], ['2024-03-31',95526846,null,null,null,null], ['2024-04-01',95526846,null,null,null,null], ['2024-04-02',95526846,null,null,null,null], ['2024-04-03',95526846,null,null,null,null], ['2024-04-04',95528825,null,null,null,null], ['2024-04-05',95529094,null,null,null,null], ['2024-04-06',95529434,null,null,null,null], ['2024-04-07',95529705,null,null,null,null], ['2024-04-08',95529990,null,null,null,null], ['2024-04-09',95530709,null,null,null,null], ['2024-04-10',95531095,null,null,null,null], ['2024-04-11',95531438,null,null,null,null], ['2024-04-12',95531648,null,null,null,null], ['2024-04-13',95531648,null,null,null,null], ['2024-04-14',95531996,null,null,null,null], ['2024-04-15',95532347,null,null,null,null], ['2024-04-16',95532643,null,null,null,null], ['2024-04-17',95533006,null,null,null,null], ['2024-04-18',95533320,null,null,null,null], ['2024-04-19',95533602,null,null,null,null], ['2024-04-20',95533838,null,null,null,null], ['2024-04-21',95534129,null,null,null,null], ['2024-04-22',95534418,null,null,null,null], ['2024-04-23',95534727,null,null,null,null], ['2024-04-24',95535400,null,null,null,null], ['2024-04-25',95535400,null,null,null,null], ['2024-04-26',95535829,null,null,null,null], ['2024-04-27',95536060,null,null,null,null], ['2024-04-28',95536367,null,null,null,null], ['2024-04-29',95536741,null,null,null,null], ['2024-04-30',95537309,null,null,null,null], ['2024-05-01',95537309,null,null,null,null], ['2024-05-02',95537984,null,null,null,null], ['2024-05-03',95538273,null,null,null,null], ['2024-05-04',95538273,null,null,null,null], ['2024-05-05',95538556,null,null,null,null], ['2024-05-06',95538950,null,null,null,null], ['2024-05-07',95539280,null,null,null,null], ['2024-05-08',95539522,null,null,null,null], ['2024-05-09',95539805,null,null,null,null], ['2024-05-10',95539805,null,null,null,null], ['2024-05-11',95540372,null,null,null,null], ['2024-05-12',95540640,null,null,null,null], ['2024-05-13',95541009,null,null,null,null], ['2024-05-14',95541244,null,null,null,null], ['2024-05-15',95541519,null,null,null,null], ['2024-05-16',95541866,null,null,null,null], ['2024-05-17',95542343,null,null,null,null], ['2024-05-18',95542676,null,null,null,null], ['2024-05-19',95542676,null,null,null,null], ['2024-05-20',95542676,null,null,null,null], ['2024-05-21',95543299,null,null,null,null], ['2024-05-22',95543525,null,null,null,null], ['2024-05-23',95543761,null,null,null,null], ['2024-05-24',95544139,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) } }); });