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-04-16',389733,null,null,null,null], ['2024-04-17',389744,null,null,null,null], ['2024-04-18',389769,null,null,null,null], ['2024-04-19',389769,null,null,null,null], ['2024-04-20',389782,null,null,null,null], ['2024-04-21',389798,null,null,null,null], ['2024-04-22',389848,null,null,null,null], ['2024-04-23',389861,null,null,null,null], ['2024-04-24',389872,null,null,null,null], ['2024-04-25',389896,null,null,null,null], ['2024-04-26',389909,null,null,null,null], ['2024-04-27',389909,null,null,null,null], ['2024-04-28',389925,null,null,null,null], ['2024-04-29',389957,null,null,null,null], ['2024-04-30',389957,null,null,null,null], ['2024-05-01',389993,null,null,null,null], ['2024-05-02',389993,null,null,null,null], ['2024-05-03',390023,null,null,null,null], ['2024-05-04',390051,null,null,null,null], ['2024-05-05',390073,null,null,null,null], ['2024-05-06',390091,null,null,null,null], ['2024-05-07',390106,null,null,null,null], ['2024-05-08',390106,null,null,null,null], ['2024-05-09',390129,null,null,null,null], ['2024-05-10',390156,null,null,null,null], ['2024-05-11',390161,null,null,null,null], ['2024-05-12',390171,null,null,null,null], ['2024-05-13',390193,null,null,null,null], ['2024-05-14',390220,null,null,null,null], ['2024-05-15',390233,null,null,null,null], ['2024-05-16',390251,null,null,null,null], ['2024-05-17',390251,null,null,null,null], ['2024-05-18',390265,null,null,null,null], ['2024-05-19',390282,null,null,null,null], ['2024-05-20',390282,null,null,null,null], ['2024-05-21',390323,null,null,null,null], ['2024-05-22',390346,null,null,null,null], ['2024-05-23',390373,null,null,null,null], ['2024-05-24',390396,null,null,null,null], ['2024-05-25',390409,null,null,null,null], ['2024-05-26',390409,null,null,null,null], ['2024-05-27',390409,null,null,null,null], ['2024-05-28',390504,null,null,null,null], ['2024-05-29',390522,null,null,null,null], ['2024-05-30',390657,null,null,null,null], ['2024-05-31',390736,null,null,null,null], ['2024-06-01',390736,null,null,null,null], ['2024-06-02',390736,null,null,null,null], ['2024-06-03',390736,null,null,null,null], ['2024-06-04',390736,null,null,null,null], ['2024-06-05',390736,null,null,null,null], ['2024-06-06',390811,null,null,null,null], ['2024-06-07',390827,null,null,null,null], ['2024-06-08',390838,null,null,null,null], ['2024-06-09',390847,null,null,null,null], ['2024-06-10',390890,null,null,null,null], ['2024-06-11',390898,null,null,null,null], ['2024-06-12',390910,null,null,null,null], ['2024-06-13',390923,null,null,null,null], ['2024-06-14',390923,null,null,null,null], ['2024-06-15',390923,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) } }); });