Toggle navigation
三段双折线图
By
s***8
2020-08-18 01:09:16
脚本
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', tooltip: [{ show: true, trigger: 'axis', axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'line' // 默认为直线,可选为:'line' | 'shadow' }, formatter:'{b}
我的认知得分:{c}
知识点达标分:{c1}', }], grid: [{ x: '10%', y: '12%', width: '30%', height: '76%' }, { x: '40%', y: '12%', width: '30%', height: '76%', }, { x: '70%', y: '12%', width: '20%', height: '76%' } ], xAxis: [{ gridIndex: 0, type: 'category', data:['a','1','2','4'], name:'', nameLocation:'center', axisTick: { show: false }, axisLine: { lineStyle: { color: '#e0e7ff' } }, boundaryGap:false, triggerEvent: true, axisLabel:{ color:'transparent', } }, { gridIndex: 1, type: 'category', data: ['b','2','3'], name:'', nameLocation:'center', axisTick: { show: false }, axisLine: { lineStyle: { color: '#e0e7ff' } }, boundaryGap:false, triggerEvent: true, axisLabel:{ color:'transparent', } }, { gridIndex: 2, type: 'category', data: ['c','2','4','1'], name:'', nameLocation:'center', axisTick: { show: false }, axisLine: { lineStyle: { color: '#e0e7ff' } }, boundaryGap:false, triggerEvent: true, axisLabel:{ color:'transparent', }, } ], yAxis: [{ gridIndex: 0, type: 'value', axisLine: { lineStyle: { type: 'dotted', color: '#e0e7ff' } }, name: '认知得分', splitLine: { lineStyle: { type: 'dotted', color: '#e8ecf1' } }, axisLabel: { fontSize: 14, color: '#999' }, nameTextStyle: { fontSize: 14, color: '#666' }, min: 0, max: 100 }, { gridIndex: 1, type: 'value', axisLine: { show: true, lineStyle: { type: 'dotted', color: '#f6f7f9' } }, axisTick: { show: false }, axisLabel: { show: false }, splitLine: { lineStyle: { type: 'dotted', color: '#e8ecf1' } }, min: 0, max: 100 }, { gridIndex: 2, type: 'value', axisLine: { show: true, lineStyle: { type: 'dotted', color: '#f6f7f9' } }, axisTick: { show: false }, axisLabel: { show: false }, splitLine: { lineStyle: { type: 'dotted', color: '#e8ecf1' } }, min: 0, max: 100 } ], series: [ // ...virtualLines, { xAxisIndex: 0, yAxisIndex: 0, data: [30,20,10,5], type: 'line', symbol: 'none', lineStyle: { color: '#37c7f2' }, areaStyle: { color: { type: 'linear', x: 0, y: 0, x2: 1, y2: 0, colorStops: [{ offset: 0, color: '#fff' }, { offset: 1, color: '#37c7f2' }], } }, smooth: true }, { xAxisIndex: 0, yAxisIndex: 0, data: [40,10,20,5], type: 'line', symbol: 'none', lineStyle: { color: '#5dd677' }, smooth: true },{ xAxisIndex: 1, yAxisIndex: 1, data: [40,22,33], type: 'line', symbol: 'none', lineStyle: { color: '#ffb787' }, areaStyle: { color: { type: 'linear', x: 0, y: 0, x2: 1, y2: 0, colorStops: [{ offset: 0, color: '#fff' }, { offset: 1, color: '#ffb787' }], } }, smooth: true }, { xAxisIndex: 1, yAxisIndex: 1, data: [10,24,66], type: 'line', symbol: 'none', lineStyle: { color: '#5dd677' }, smooth: true }, { xAxisIndex: 2, yAxisIndex: 2, data: [50,33,55,66], type: 'line', symbol: 'none', lineStyle: { color: '#ff8888' }, areaStyle: { color: { type: 'linear', x: 0, y: 0, x2: 1, y2: 0, colorStops: [{ offset: 0, color: '#fff' }, { offset: 1, color: '#ff8888' }], } }, smooth: true }, { xAxisIndex: 2, yAxisIndex: 2, data: [20,13,35,16], type: 'line', symbol: 'none', lineStyle: { color: '#5dd677' }, smooth: true } ] };