Toggle navigation
综合分析
By
r***6
2020-12-18 15:10:47
脚本
16
21
作品使用的第三方脚本
数据管理
上传数据
支持小于 5M 任意格式(csv, xlsx, json, xml, ...)的数据文件
上传后可以通过生成的文件链接异步获取托管的数据。
历史数据
0 条
无历史数据
代码修改记录
信息提示
保存作品
对当前截图不满意?你还可以
上传本地截图
重新截图
作品名称
作品描述
标签
geo
grid
legend
markLine
markPoint
bar
effectScatter
line
lines
map
timeline
title
toolbox
tooltip
visualMap
作品默认版本
最新
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
20:11:45
图表已生成
整理代码
刷新
代码
option = { backgroundColor: '#fff', //rgba设置透明度0.1 title: {}, tooltip: { // show: true, trigger: 'axis', formatter: function(params) { let str = params[0].name + ''; params.forEach(item => { str += item.marker + item.seriesName + ' : ' + item.value + ''; }) return str; } }, axisPointer: { link: { xAxisIndex: 'all' } }, xAxis: [{ gridIndex: 0, type: 'category', data: ['2020-12-12', '2020-12-13', '2020-12-14', '2020-12-15', '2020-12-16', '2020-12-17', '2020-12-18'], "axisLine": { lineStyle: { color: 'rgba(151,151,151,0.5)', type: 'dashed' } }, "axisTick": { "show": false }, axisLabel: { margin: 10, color: '#666', textStyle: { fontSize: 14, //fontWeight: 'bold', // 加粗 }, }, }, { gridIndex: 1, type: 'category', data: ['2020-12-12', '2020-12-13', '2020-12-14', '2020-12-15', '2020-12-16', '2020-12-17', '2020-12-18'], "axisLine": { lineStyle: { color: 'rgba(151,151,151,0.5)', type: 'dashed' } }, "axisTick": { "show": false }, axisLabel: { margin: 10, color: '#666', textStyle: { fontSize: 14, //fontWeight: 'bold', // 加粗 }, }, }, { gridIndex: 2, type: 'category', data: ['2020-12-12', '2020-12-13', '2020-12-14', '2020-12-15', '2020-12-16', '2020-12-17', '2020-12-18'], "axisLine": { lineStyle: { color: 'rgba(151,151,151,0.5)', type: 'dashed' } }, "axisTick": { "show": false }, axisLabel: { margin: 10, color: '#666', textStyle: { fontSize: 14, }, }, } ], yAxis: [{ name: '', type: 'value', gridIndex: 0, nameTextStyle: { padding: [0, 0, 0, 0] // 文字自交多的时候设置距离容器左侧的距离 }, "axisLine": { lineStyle: { color: 'rgba(151,151,151,0.5)', type: 'dashed' } }, splitLine: { show: true, lineStyle: { color: 'rgba(151,151,151,0.5)', type: 'dashed' } }, "axisTick": { "show": false }, axisLabel: { margin: 15, color: '#666', textStyle: { fontSize: 14, }, } }, { name: '', type: 'value', gridIndex: 1, nameTextStyle: { padding: [0, 0, 0, 0] }, "axisLine": { lineStyle: { color: 'rgba(151,151,151,0.5)', type: 'dashed' } }, splitLine: { show: true, lineStyle: { color: 'rgba(151,151,151,0.5)', type: 'dashed' } }, "axisTick": { "show": false }, axisLabel: { margin: 15, color: '#666', textStyle: { fontSize: 14, }, } }, { name: '', type: 'value', gridIndex: 2, nameTextStyle: { padding: [0, 0, 0, 0] }, "axisLine": { lineStyle: { color: 'rgba(151,151,151,0.5)', type: 'dashed' } }, splitLine: { show: true, lineStyle: { color: 'rgba(151,151,151,0.5)', type: 'dashed' } }, "axisTick": { "show": false }, axisLabel: { margin: 15, color: '#666', textStyle: { fontSize: 14, }, } } ], grid: [{ left: '8%', right: '8%', top: '10%', height: '20%' }, { left: '8%', right: '8%', top: '40%', height: '20%' }, { left: '8%', right: '8%', top: '70%', height: '20%' } ], legend: { icon: 'circle', top: '5%', left: '20%', itemWidth: 6, itemGap: 20, textStyle: { color: '#556677' } }, series: [{ name: '销量', data: [150, 120, 170, 140, 500, 160, 110], type: 'line', smooth: true, xAxisIndex: 0, // 指定x轴 yAxisIndex: 0, // 指定y轴 lineStyle: { normal: { color: '#4194fc' } }, itemStyle: { normal: { color: '#4194fc', borderColor: '#4194fc' } } }, { name: '订单量', data: [52, 72, 81, 64, 75, 66, 89], type: 'line', smooth: true, xAxisIndex: 0, // 指定x轴 yAxisIndex: 0, // 指定y轴 lineStyle: { normal: { color: '#3bbc86' } }, itemStyle: { normal: { color: '#3bbc86', borderColor: '#3bbc86' } } }, { name: '毛利润($)', data: [99.00, 168.00, 88.01, 154.00, 210.00, 68.00, 165.01], type: 'line', smooth: true, xAxisIndex: 1, // 指定x轴 yAxisIndex: 1, // 指定y轴 lineStyle: { normal: { color: '#ffb25f' } }, itemStyle: { normal: { color: '#ffb25f', borderColor: '#ffb25f' } } }, { name: '毛利率(%)', data: [40.00, 63.00, 25.01, 58.00, 65.00, 68.00, 65.01], type: 'line', smooth: true, xAxisIndex: 2, // 指定x轴 yAxisIndex: 2, // 指定y轴 lineStyle: { normal: { color: '#929fff' } }, itemStyle: { normal: { color: '#929fff', borderColor: '#929fff' } } } ] };