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',1912978,null,null,null,null], ['2024-04-17',1912994,null,null,null,null], ['2024-04-18',1913029,null,null,null,null], ['2024-04-19',1913047,null,null,null,null], ['2024-04-20',1913057,null,null,null,null], ['2024-04-21',1913076,null,null,null,null], ['2024-04-22',1913102,null,null,null,null], ['2024-04-23',1913102,null,null,null,null], ['2024-04-24',1913120,null,null,null,null], ['2024-04-25',1913128,null,null,null,null], ['2024-04-26',1913150,null,null,null,null], ['2024-04-27',1913161,null,null,null,null], ['2024-04-28',1913174,null,null,null,null], ['2024-04-29',1913195,null,null,null,null], ['2024-04-30',1913195,null,null,null,null], ['2024-05-01',1913234,null,null,null,null], ['2024-05-02',1913234,null,null,null,null], ['2024-05-03',1913272,null,null,null,null], ['2024-05-04',1913284,null,null,null,null], ['2024-05-05',1913329,null,null,null,null], ['2024-05-06',1913380,null,null,null,null], ['2024-05-07',1913403,null,null,null,null], ['2024-05-08',1913403,null,null,null,null], ['2024-05-09',1913642,null,null,null,null], ['2024-05-10',1913859,null,null,null,null], ['2024-05-11',1914023,null,null,null,null], ['2024-05-12',1914582,null,null,null,null], ['2024-05-13',1915315,null,null,null,null], ['2024-05-14',1915315,null,null,null,null], ['2024-05-15',1915715,null,null,null,null], ['2024-05-16',1915944,null,null,null,null], ['2024-05-17',1915944,null,null,null,null], ['2024-05-18',1916095,null,null,null,null], ['2024-05-19',1916875,null,null,null,null], ['2024-05-20',1918096,null,null,null,null], ['2024-05-21',1918319,null,null,null,null], ['2024-05-22',1918655,196,null,null,null], ['2024-05-23',1918655,189,null,null,null], ['2024-05-24',1918924,182,null,null,null], ['2024-05-25',1919059,178,null,null,null], ['2024-05-26',1919135,174,null,null,null], ['2024-05-27',1919418,null,null,null,null], ['2024-05-28',1919418,null,null,null,null], ['2024-05-29',1919495,null,null,null,null], ['2024-05-30',1919569,null,null,null,null], ['2024-05-31',1919643,null,null,null,null], ['2024-06-01',1919716,null,null,null,null], ['2024-06-02',1919716,null,null,null,null], ['2024-06-03',1919716,null,null,null,null], ['2024-06-04',1919716,199,null,null,null], ['2024-06-05',1919716,194,null,null,null], ['2024-06-06',1919937,189,null,null,null], ['2024-06-07',1919937,188,null,null,null], ['2024-06-08',1920023,182,null,null,null], ['2024-06-09',1920059,186,null,null,null], ['2024-06-10',1920116,186,null,null,null], ['2024-06-11',1920166,186,null,null,null], ['2024-06-12',1920211,186,null,null,null], ['2024-06-13',1920244,167,null,null,null], ['2024-06-14',1920276,173,null,null,null], ['2024-06-15',1920276,181,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) } }); });