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-17',380646281,152,44,null,null], ['2024-04-18',381188683,151,36,null,null], ['2024-04-19',381468166,146,44,null,null], ['2024-04-20',381720547,135,60,null,null], ['2024-04-21',382000756,134,52,null,null], ['2024-04-22',382000756,138,49,null,null], ['2024-04-23',382410184,141,57,null,null], ['2024-04-24',382410184,143,52,null,null], ['2024-04-25',383119679,141,25,null,null], ['2024-04-26',383550311,126,40,null,null], ['2024-04-27',383825161,128,51,null,null], ['2024-04-28',384091394,134,52,null,null], ['2024-04-29',384599644,124,52,null,null], ['2024-04-30',385195375,128,36,null,null], ['2024-05-01',385346600,126,33,null,null], ['2024-05-02',385346600,110,37,null,null], ['2024-05-03',386228519,134,19,null,null], ['2024-05-04',386424011,129,18,null,null], ['2024-05-05',386954760,102,23,null,null], ['2024-05-06',387551699,100,27,null,null], ['2024-05-07',388350615,88,32,null,null], ['2024-05-08',388350615,86,34,null,null], ['2024-05-09',388830073,90,49,null,null], ['2024-05-10',389272943,80,55,null,null], ['2024-05-11',389611128,79,36,null,null], ['2024-05-12',389975864,103,34,null,null], ['2024-05-13',390265585,103,35,null,null], ['2024-05-14',391016075,105,43,null,null], ['2024-05-15',391452872,105,51,null,null], ['2024-05-16',391935851,111,50,null,null], ['2024-05-17',392157957,110,52,null,null], ['2024-05-18',392157957,111,55,null,null], ['2024-05-19',392591906,116,46,null,null], ['2024-05-20',393021303,123,42,null,null], ['2024-05-21',393370633,129,41,null,null], ['2024-05-22',394032174,133,57,null,null], ['2024-05-23',394324674,136,68,null,null], ['2024-05-24',394459537,136,76,null,null], ['2024-05-25',394459537,146,57,null,null], ['2024-05-26',394953441,148,44,null,null], ['2024-05-27',395132413,154,46,null,null], ['2024-05-28',395755511,155,51,null,null], ['2024-05-29',395799362,151,59,null,null], ['2024-05-30',396081670,150,72,null,null], ['2024-05-31',396520771,149,55,null,null], ['2024-06-01',396520771,152,51,null,null], ['2024-06-02',396520771,145,72,null,null], ['2024-06-03',397278818,167,73,null,null], ['2024-06-04',397902882,180,78,null,null], ['2024-06-05',398183215,184,75,null,null], ['2024-06-06',398254188,192,71,null,null], ['2024-06-07',398810757,192,19,null,null], ['2024-06-08',398906396,187,21,null,null], ['2024-06-09',399653553,132,25,null,null], ['2024-06-10',399653553,132,29,null,null], ['2024-06-11',399942530,132,39,null,null], ['2024-06-12',400270396,132,42,null,null], ['2024-06-13',400539754,95,51,null,null], ['2024-06-14',400836436,90,57,null,null], ['2024-06-15',400836436,92,59,null,null], ['2024-06-16',400836436,92,51,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) } }); });