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',72962905,null,null,null,null], ['2024-03-26',72972019,null,null,null,null], ['2024-03-27',72979231,null,null,null,null], ['2024-03-28',72988842,null,null,null,null], ['2024-03-29',72996219,null,null,null,null], ['2024-03-30',73007813,null,null,null,null], ['2024-03-31',73014551,null,null,null,null], ['2024-04-01',73019000,null,null,null,null], ['2024-04-02',73026947,null,null,null,null], ['2024-04-03',73031352,null,null,null,null], ['2024-04-04',73040269,null,null,null,null], ['2024-04-05',73046766,null,null,null,null], ['2024-04-06',73057001,null,null,null,null], ['2024-04-07',73063771,null,null,null,null], ['2024-04-08',73073054,null,null,null,null], ['2024-04-09',73081721,null,null,null,null], ['2024-04-10',73089254,null,null,null,null], ['2024-04-11',73089254,null,null,null,null], ['2024-04-12',73095678,null,null,null,null], ['2024-04-13',73103299,null,null,null,null], ['2024-04-14',73110449,null,null,null,null], ['2024-04-15',73117876,null,null,null,null], ['2024-04-16',73124394,null,null,null,null], ['2024-04-17',73131977,null,null,null,null], ['2024-04-18',73139420,null,null,null,null], ['2024-04-19',73146854,null,null,null,null], ['2024-04-20',73159100,null,null,null,null], ['2024-04-21',73162992,null,null,null,null], ['2024-04-22',73171002,null,null,null,null], ['2024-04-23',73178194,null,null,null,null], ['2024-04-24',73188012,null,null,null,null], ['2024-04-25',73192088,null,null,null,null], ['2024-04-26',73199632,null,null,null,null], ['2024-04-27',73211931,null,null,null,null], ['2024-04-28',73218691,null,null,null,null], ['2024-04-29',73222099,null,null,null,null], ['2024-04-30',73233179,null,null,null,null], ['2024-05-01',73233179,null,null,null,null], ['2024-05-02',73233179,null,null,null,null], ['2024-05-03',73247809,null,null,null,null], ['2024-05-04',73257232,null,null,null,null], ['2024-05-05',73264830,null,null,null,null], ['2024-05-06',73272200,null,null,null,null], ['2024-05-07',73281949,null,null,null,null], ['2024-05-08',73286466,null,null,null,null], ['2024-05-09',73294584,null,null,null,null], ['2024-05-10',73306603,null,null,null,null], ['2024-05-11',73312622,null,null,null,null], ['2024-05-12',73324227,null,null,null,null], ['2024-05-13',73324227,null,null,null,null], ['2024-05-14',73330771,null,null,null,null], ['2024-05-15',73330771,null,null,null,null], ['2024-05-16',73345990,null,null,null,null], ['2024-05-17',73354358,null,null,null,null], ['2024-05-18',73362524,null,null,null,null], ['2024-05-19',73362524,null,null,null,null], ['2024-05-20',73375203,null,null,null,null], ['2024-05-21',73384062,null,null,null,null], ['2024-05-22',73387772,null,null,null,null], ['2024-05-23',73398383,null,null,null,null], ['2024-05-24',73409522,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) } }); });