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([ ['2023-11-07',5046103,null,null,null,null], ['2023-11-08',5047160,null,null,null,null], ['2023-11-09',5048056,null,null,null,null], ['2023-11-10',5049456,null,null,null,null], ['2023-11-11',5050121,null,null,null,null], ['2023-11-12',5051194,null,null,null,null], ['2023-11-13',5052679,null,null,null,null], ['2023-11-14',5054084,null,null,null,null], ['2023-11-15',5055613,null,null,null,null], ['2023-11-16',5056327,null,null,null,null], ['2023-11-17',5057523,null,null,null,null], ['2023-11-18',5059431,null,null,null,null], ['2023-11-19',5060044,null,null,null,null], ['2023-11-20',5061735,null,null,null,null], ['2023-11-21',5063367,null,null,null,null], ['2023-11-22',5063367,null,null,null,null], ['2023-11-23',5065556,null,null,null,null], ['2023-11-24',5066047,null,null,null,null], ['2023-11-25',5066047,null,null,null,null], ['2023-11-26',5066047,null,null,null,null], ['2023-11-27',5068898,null,null,null,null], ['2023-11-28',5071568,null,null,null,null], ['2023-11-29',5072518,null,null,null,null], ['2023-11-30',5072518,null,null,null,null], ['2023-12-01',5072518,null,null,null,null], ['2023-12-02',5072518,null,null,null,null], ['2023-12-03',5076455,null,null,null,null], ['2023-12-04',5078179,null,null,null,null], ['2023-12-05',5079063,null,null,null,null], ['2023-12-06',5080455,null,null,null,null], ['2023-12-07',5081433,null,null,null,null], ['2023-12-08',5082834,null,null,null,null], ['2023-12-09',5083513,null,null,null,null], ['2023-12-10',5084733,null,null,null,null], ['2023-12-11',5085883,null,null,null,null], ['2023-12-12',5087184,null,null,null,null], ['2023-12-13',5089857,null,null,null,null], ['2023-12-14',5090662,null,null,null,null], ['2023-12-15',5092179,null,null,null,null], ['2023-12-16',5092179,null,null,null,null], ['2023-12-17',5092886,null,null,null,null], ['2023-12-18',5094426,null,null,null,null], ['2023-12-19',5095740,null,null,null,null], ['2023-12-20',5095740,null,null,null,null], ['2023-12-21',5095740,null,null,null,null], ['2023-12-22',5095740,null,null,null,null], ['2023-12-23',5095740,null,null,null,null], ['2023-12-24',5095740,null,null,null,null], ['2023-12-25',5095740,null,null,null,null], ['2023-12-26',5095740,null,null,null,null], ['2023-12-27',5106112,null,null,null,null], ['2023-12-28',5106112,null,null,null,null], ['2023-12-29',5106112,null,null,null,null], ['2023-12-30',5106112,null,null,null,null], ['2023-12-31',5106112,null,null,null,null], ['2024-01-01',5113505,null,null,null,null], ['2024-01-02',5113505,null,null,null,null], ['2024-01-03',5113505,null,null,null,null], ['2024-01-04',5113505,null,null,null,null], ['2024-01-05',5113505,null,null,null,null], ['2024-01-06',5113505,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) } }); });