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-01-25',603874,null,null,null,null], ['2024-01-26',603874,null,null,null,null], ['2024-01-27',604433,null,null,null,null], ['2024-01-28',604433,null,null,null,null], ['2024-01-29',604433,null,null,null,null], ['2024-01-30',605212,null,null,null,null], ['2024-01-31',608120,null,null,null,null], ['2024-02-01',608590,null,null,null,null], ['2024-02-02',609916,null,null,null,null], ['2024-02-03',610276,null,null,null,null], ['2024-02-04',610812,null,null,null,null], ['2024-02-05',610812,null,null,null,null], ['2024-02-06',611356,null,null,null,null], ['2024-02-07',611875,null,null,null,null], ['2024-02-08',611875,null,null,null,null], ['2024-02-09',613059,null,null,null,null], ['2024-02-10',613518,null,null,null,null], ['2024-02-11',613988,null,null,null,null], ['2024-02-12',614549,null,null,null,null], ['2024-02-13',614827,null,null,null,null], ['2024-02-14',615405,null,null,null,null], ['2024-02-15',615823,null,null,null,null], ['2024-02-16',616115,null,null,null,null], ['2024-02-17',616570,null,null,null,null], ['2024-02-18',616570,null,null,null,null], ['2024-02-19',616570,null,null,null,null], ['2024-02-20',617153,null,null,null,null], ['2024-02-21',617153,null,null,null,null], ['2024-02-22',617836,null,null,null,null], ['2024-02-23',618117,null,null,null,null], ['2024-02-24',618835,null,null,null,null], ['2024-02-25',618835,null,null,null,null], ['2024-02-26',619266,null,null,null,null], ['2024-02-27',619640,null,null,null,null], ['2024-02-28',619992,null,null,null,null], ['2024-02-29',620287,null,null,null,null], ['2024-03-01',620719,null,null,null,null], ['2024-03-02',621036,null,null,null,null], ['2024-03-03',621583,null,null,null,null], ['2024-03-04',621583,null,null,null,null], ['2024-03-05',622471,null,null,null,null], ['2024-03-06',622753,null,null,null,null], ['2024-03-07',623183,null,null,null,null], ['2024-03-08',623492,null,null,null,null], ['2024-03-09',623824,null,null,null,null], ['2024-03-10',624042,null,null,null,null], ['2024-03-11',624321,null,null,null,null], ['2024-03-12',624612,null,null,null,null], ['2024-03-13',624839,null,null,null,null], ['2024-03-14',625339,null,null,null,null], ['2024-03-15',625339,null,null,null,null], ['2024-03-16',625820,null,null,null,null], ['2024-03-17',625820,null,null,null,null], ['2024-03-18',626354,null,null,null,null], ['2024-03-19',626562,null,null,null,null], ['2024-03-20',626562,null,null,null,null], ['2024-03-21',626799,null,null,null,null], ['2024-03-22',627075,null,null,null,null], ['2024-03-23',627291,null,null,null,null], ['2024-03-24',627512,null,null,null,null], ['2024-03-25',627804,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) } }); });