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-03-25',2378721,null,159,null,null], ['2024-03-26',2380118,null,168,null,null], ['2024-03-27',2380118,null,157,null,null], ['2024-03-28',2380816,null,169,null,null], ['2024-03-29',2381846,null,194,null,null], ['2024-03-30',2381846,null,178,null,null], ['2024-03-31',2381846,null,179,null,null], ['2024-04-01',2383865,null,184,null,null], ['2024-04-02',2383865,null,null,null,null], ['2024-04-03',2383865,null,null,null,null], ['2024-04-04',2383865,null,191,null,null], ['2024-04-05',2383865,null,176,null,null], ['2024-04-06',2386441,null,163,null,null], ['2024-04-07',2386996,null,155,null,null], ['2024-04-08',2387673,null,156,null,null], ['2024-04-09',2387673,null,166,null,null], ['2024-04-10',2388745,null,150,null,null], ['2024-04-11',2389349,null,168,null,null], ['2024-04-12',2389850,null,182,null,null], ['2024-04-13',2390279,null,186,null,null], ['2024-04-14',2390830,null,168,null,null], ['2024-04-15',2391621,null,167,null,null], ['2024-04-16',2392567,null,181,null,null], ['2024-04-17',2392625,null,170,null,null], ['2024-04-18',2393042,null,172,null,null], ['2024-04-19',2393977,null,194,null,null], ['2024-04-20',2393977,null,200,null,null], ['2024-04-21',2394943,null,196,null,null], ['2024-04-22',2395613,null,177,null,null], ['2024-04-23',2396077,null,173,null,null], ['2024-04-24',2396077,null,144,null,null], ['2024-04-25',2396857,null,143,null,null], ['2024-04-26',2396857,null,166,null,null], ['2024-04-27',2397359,null,191,null,null], ['2024-04-28',2397359,null,175,null,null], ['2024-04-29',2398293,null,166,null,null], ['2024-04-30',2398293,null,163,null,null], ['2024-05-01',2399468,null,180,null,null], ['2024-05-02',2399468,null,null,null,null], ['2024-05-03',2400511,null,null,null,null], ['2024-05-04',2400932,null,192,null,null], ['2024-05-05',2400932,null,177,null,null], ['2024-05-06',2402444,null,162,null,null], ['2024-05-07',2402866,null,146,null,null], ['2024-05-08',2402866,null,152,null,null], ['2024-05-09',2402866,null,152,null,null], ['2024-05-10',2404411,null,162,null,null], ['2024-05-11',2404837,null,176,null,null], ['2024-05-12',2405233,null,156,null,null], ['2024-05-13',2405714,null,131,null,null], ['2024-05-14',2406307,null,140,null,null], ['2024-05-15',2406726,null,134,null,null], ['2024-05-16',2407097,null,154,null,null], ['2024-05-17',2407960,null,166,null,null], ['2024-05-18',2407960,null,187,null,null], ['2024-05-19',2408381,null,166,null,null], ['2024-05-20',2408381,null,149,null,null], ['2024-05-21',2409538,null,157,null,null], ['2024-05-22',2409849,null,158,null,null], ['2024-05-23',2410252,null,165,null,null], ['2024-05-24',2410701,null,174,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:250}} ], 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) } }); });