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-03',1613200,85,55,null,null], ['2024-01-04',1613200,113,39,null,null], ['2024-01-05',1613200,110,36,null,null], ['2024-01-06',1613200,105,33,null,null], ['2024-01-07',1613200,101,32,null,null], ['2024-01-08',1613200,99,29,null,null], ['2024-01-09',1613200,99,26,null,null], ['2024-01-10',1613200,71,28,null,null], ['2024-01-11',1613200,64,30,null,null], ['2024-01-12',1613200,64,30,null,null], ['2024-01-13',1613200,57,31,null,null], ['2024-01-14',1613200,57,30,null,null], ['2024-01-15',1613200,57,28,null,null], ['2024-01-16',1635356,55,28,null,null], ['2024-01-17',1635356,61,33,null,null], ['2024-01-18',1636431,68,33,null,null], ['2024-01-19',1637064,69,36,null,null], ['2024-01-20',1637223,69,44,null,null], ['2024-01-21',1637223,72,38,null,null], ['2024-01-22',1637223,70,34,null,null], ['2024-01-23',1637223,70,34,null,null], ['2024-01-24',1637300,72,33,null,null], ['2024-01-25',1637300,72,33,null,null], ['2024-01-26',1639713,74,36,null,null], ['2024-01-27',1639713,74,39,null,null], ['2024-01-28',1639713,73,33,null,null], ['2024-01-29',1639713,68,25,null,null], ['2024-01-30',1641679,68,29,null,null], ['2024-01-31',1641679,69,32,null,null], ['2024-02-01',1644484,71,44,null,null], ['2024-02-02',1644950,71,57,null,null], ['2024-02-03',1645533,71,52,null,null], ['2024-02-04',1645695,85,43,null,null], ['2024-02-05',1646560,94,32,null,null], ['2024-02-06',1647242,95,36,null,null], ['2024-02-07',1647737,94,39,null,null], ['2024-02-08',1648262,93,42,null,null], ['2024-02-09',1648812,93,47,null,null], ['2024-02-10',1649327,81,49,null,null], ['2024-02-11',1649785,76,40,null,null], ['2024-02-12',1650534,72,32,null,null], ['2024-02-13',1651975,69,27,null,null], ['2024-02-14',1652545,68,27,null,null], ['2024-02-15',1652545,68,36,null,null], ['2024-02-16',1653429,69,38,null,null], ['2024-02-17',1653929,71,43,null,null], ['2024-02-18',1654427,71,39,null,null], ['2024-02-19',1654427,70,29,null,null], ['2024-02-20',1655327,69,33,null,null], ['2024-02-21',1655985,74,36,null,null], ['2024-02-22',1656550,77,35,null,null], ['2024-02-23',1656924,null,44,null,null], ['2024-02-24',1657962,78,37,null,null], ['2024-02-25',1660564,null,33,null,null], ['2024-02-26',1663291,null,26,null,null], ['2024-02-27',1665590,null,31,null,null], ['2024-02-28',1668036,null,33,null,null], ['2024-02-29',1669631,null,40,null,null], ['2024-03-01',1670991,null,47,null,null], ['2024-03-02',1670991,null,64,null,null], ['2024-03-03',1671975,null,57,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:150}} ], 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) } }); });