美团外卖GMV及其增速(单位: 亿元)[数据停更]
图
微信
Loading...
选择日期
确定
美团外卖GMV及其增速(单位: 亿元)[数据停更]
更新频率:quarterly
美团外卖单季度GMV及其增速
var series1 = []; var series2 = []; var series3 = []; $.each(data0, function(i, v){ series1.push({x: v['dt'], y: v['GMV']}); }); $.each(data1, function(i, v){ series2.push({x: v['dt'], y: v['YOY']}); }); Highcharts.dateFormats = { Q: function(timestamp) { var date = new Date(timestamp); var year = date.getFullYear() ; var q = parseInt(date.getMonth() / 3) ; if(q === 0){ year = year -1; q = 4 } var Q = year + 'Q' + q; return Q; }, q:function(timestamp){ var date = new Date(timestamp); var year = date.getFullYear() ; var q = parseInt(date.getMonth() / 3) + 1; var Q = year + 'Q' + q; return Q; } } Highcharts.stockChart('container', { chart: { type:'column', zoomType: '', }, xAxis: { ordinal: false, dateTimeLabelFormats: { year: '%Y', month:'%Q', } }, yAxis: [ { endOnTick: false, startOnTick: false, showLastLabel:true }, { visible:true, endOnTick: false, startOnTick: false, showLastLabel:true, labels:{ format:'{value}%' } }], tooltip: { split: false, shared: true, xDateFormat:"%q", valueDecimals: 1, }, plotOptions: { }, rangeSelector: { selected: 3, buttons: [{ type: 'year', count: 1, text: '1Y' }, { type: 'year', count: 3, text: '3Y' },{ type: 'year', count: 5, text: '5Y' }, { type: 'all', text: 'All' }] }, legend:{ enabled:true }, navigator: { enabled: false }, series: [{ data: series1, name: '美团外卖GMV', zIndex: 0, showInNavigator: false, type: 'column', color: '#FFC000', tooltip: { valueSuffix: ' 亿人民币', valueDecimals: 2 } }, { data: series2, name: 'YOY', zIndex: 1, type: 'line', color: '#001F5F', showInNavigator: false, yAxis:1, tooltip: { valueSuffix: ' %', valueDecimals: 2 }, }], });