天貓實(shí)時數(shù)據(jù)大屏
2024-07-11|20:59|發(fā)布在分類 / 開網(wǎng)店| 閱讀:6
2024-07-11|20:59|發(fā)布在分類 / 開網(wǎng)店| 閱讀:6
// 創(chuàng)建一個echarts實(shí)例var myChart = echarts.init(document.getElementById(container));// 指定圖表的配置項(xiàng)和數(shù)據(jù)var option = {title: {text: 天貓實(shí)時數(shù)據(jù)大屏,subtext: 實(shí)時展現(xiàn)天貓渠道的各種數(shù)據(jù)},tooltip: {trigger: axis},legend: {data: [成交額, 訂單數(shù), 訪客數(shù)]},grid: {left: 3%,right: 4%,bottom: 3%,containLabel: true},toolbox: {feature: {saveAsImage: {}}},xAxis: {type: category,boundaryGap: false,data: [00:00, 01:00, 02:00, 03:00, 04:00, 05:00, 06:00, 07:00, 08:00, 09:00, 10:00, 11:00, 12:00, 13:00, 14:00, 15:00, 16:00, 17:00, 18:00, 19:00, 20:00, 21:00, 22:00, 23:00]},yAxis: {type: value},series: [{name: 成交額,type: line,stack: 總量,data: [120, 132, 101, 134, 90, 230, 210, 182, 100, 180, 232, 181, 133, 199, 160, 142, 130, 167, 129, 135, 110, 105, 90, 80]},{name: 訂單數(shù),type: line,stack: 總量,data: [220, 182, 191, 234, 290, 330, 310, 282, 200, 280, 332, 381, 333, 299, 360, 342, 288, 277, 296, 350, 310, 305, 290, 300]},{name: 訪客數(shù),type: line,stack: 總量,data: [150, 132, 101, 134, 90, 230, 210, 182, 100, 180, 232, 181, 133, 199, 160, 142, 130, 167, 129, 135, 110, 105, 90, 80]}]};// 設(shè)置圖表選項(xiàng)myChart.setOption(option);
這個問題還有疑問的話,可以加幕.思.城火星老師免費(fèi)咨詢,微.信號是為: msc496。
推薦閱讀:
淘寶聯(lián)盟抖音推廣賺錢技巧是什么?如何賺更多?(淘寶客能自己推自己嗎?淘寶客如何賺傭金?)
更多資訊請關(guān)注幕 思 城。
微信掃碼回復(fù)「666」
別默默看了 登錄\ 注冊 一起參與討論!