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-24',12167,null,null,null,null], ['2024-01-25',12167,null,null,null,null], ['2024-01-26',12167,null,null,null,null], ['2024-01-27',12180,null,null,null,null], ['2024-01-28',12180,null,null,null,null], ['2024-01-29',12180,null,null,null,null], ['2024-01-30',12187,null,null,null,null], ['2024-01-31',12187,null,null,null,null], ['2024-02-01',12202,null,null,null,null], ['2024-02-02',12203,null,null,null,null], ['2024-02-03',12204,null,null,null,null], ['2024-02-04',12204,null,null,null,null], ['2024-02-05',12207,null,null,null,null], ['2024-02-06',12208,null,null,null,null], ['2024-02-07',12209,null,null,null,null], ['2024-02-08',12210,null,null,null,null], ['2024-02-09',12210,null,null,null,null], ['2024-02-10',12212,null,null,null,null], ['2024-02-11',12213,null,null,null,null], ['2024-02-12',12217,null,null,null,null], ['2024-02-13',12219,null,null,null,null], ['2024-02-14',12222,null,null,null,null], ['2024-02-15',12222,null,null,null,null], ['2024-02-16',12223,null,null,null,null], ['2024-02-17',12223,null,null,null,null], ['2024-02-18',12226,null,null,null,null], ['2024-02-19',12226,null,null,null,null], ['2024-02-20',12226,null,null,null,null], ['2024-02-21',12226,null,null,null,null], ['2024-02-22',12232,null,null,null,null], ['2024-02-23',12232,null,null,null,null], ['2024-02-24',12237,null,null,null,null], ['2024-02-25',12237,null,null,null,null], ['2024-02-26',12237,null,null,null,null], ['2024-02-27',12244,null,null,null,null], ['2024-02-28',12246,null,null,null,null], ['2024-02-29',12247,null,null,null,null], ['2024-03-01',12249,null,null,null,null], ['2024-03-02',12250,null,null,null,null], ['2024-03-03',12253,null,null,null,null], ['2024-03-04',12253,null,null,null,null], ['2024-03-05',12259,null,null,null,null], ['2024-03-06',12260,null,null,null,null], ['2024-03-07',12261,null,null,null,null], ['2024-03-08',12268,null,null,null,null], ['2024-03-09',12271,null,null,null,null], ['2024-03-10',12272,null,null,null,null], ['2024-03-11',12275,null,null,null,null], ['2024-03-12',12279,null,null,null,null], ['2024-03-13',12283,null,null,null,null], ['2024-03-14',12283,null,null,null,null], ['2024-03-15',12283,null,null,null,null], ['2024-03-16',12283,null,null,null,null], ['2024-03-17',12283,null,null,null,null], ['2024-03-18',12287,null,null,null,null], ['2024-03-19',12291,null,null,null,null], ['2024-03-20',12293,null,null,null,null], ['2024-03-21',12294,null,null,null,null], ['2024-03-22',12295,null,null,null,null], ['2024-03-23',12296,null,null,null,null], ['2024-03-24',12298,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) } }); });