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-23',null,null,null,null,null], ['2024-01-24',null,null,null,null,null], ['2024-01-25',null,null,null,null,null], ['2024-01-26',null,null,null,null,null], ['2024-01-27',null,null,null,null,null], ['2024-01-28',null,null,null,null,null], ['2024-01-29',null,null,null,null,null], ['2024-01-30',null,null,null,null,null], ['2024-01-31',null,null,null,null,null], ['2024-02-01',null,null,null,null,null], ['2024-02-02',124227,null,null,null,null], ['2024-02-03',124446,null,null,null,null], ['2024-02-04',124662,null,null,null,null], ['2024-02-05',125191,null,null,null,null], ['2024-02-06',125345,null,null,null,null], ['2024-02-07',125345,null,null,null,null], ['2024-02-08',125687,null,null,null,null], ['2024-02-09',125687,null,197,null,null], ['2024-02-10',126005,null,null,null,null], ['2024-02-11',126210,null,null,null,null], ['2024-02-12',126483,null,null,null,null], ['2024-02-13',126652,null,null,null,null], ['2024-02-14',126826,null,null,null,null], ['2024-02-15',127061,null,null,null,null], ['2024-02-16',127219,null,null,null,null], ['2024-02-17',127354,null,null,null,null], ['2024-02-18',127354,null,null,null,null], ['2024-02-19',127668,null,null,null,null], ['2024-02-20',127668,null,null,null,null], ['2024-02-21',128159,null,null,null,null], ['2024-02-22',128357,null,null,null,null], ['2024-02-23',128593,null,null,null,null], ['2024-02-24',128743,null,null,null,null], ['2024-02-25',128743,null,null,null,null], ['2024-02-26',128929,null,null,null,null], ['2024-02-27',129060,null,null,null,null], ['2024-02-28',129211,null,null,null,null], ['2024-02-29',129349,null,null,null,null], ['2024-03-01',129504,null,null,null,null], ['2024-03-02',129654,null,null,null,null], ['2024-03-03',129852,null,null,null,null], ['2024-03-04',130112,null,null,null,null], ['2024-03-05',130295,null,null,null,null], ['2024-03-06',130544,null,null,null,null], ['2024-03-07',130557,null,null,null,null], ['2024-03-08',130635,null,null,null,null], ['2024-03-09',130735,null,null,null,null], ['2024-03-10',130944,null,null,null,null], ['2024-03-11',131062,null,null,null,null], ['2024-03-12',131172,null,null,null,null], ['2024-03-13',131252,null,null,null,null], ['2024-03-14',131252,null,null,null,null], ['2024-03-15',131252,null,null,null,null], ['2024-03-16',131613,null,null,null,null], ['2024-03-17',131731,null,null,null,null], ['2024-03-18',131878,null,null,null,null], ['2024-03-19',132016,null,null,null,null], ['2024-03-20',132112,null,null,null,null], ['2024-03-21',132241,null,null,null,null], ['2024-03-22',132356,null,null,null,null], ['2024-03-23',132473,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:200}} ], 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) } }); });