Toggle navigation
好看的折线图
By
X***s
2019-05-20 11:37:02
脚本
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
图表已生成
整理代码
刷新
代码
var data1 = [{ name: '自然学科0', value: 1, text: '人文社科', number: 100 },{ name: '自然学科1', value: 0.5, text: '人文社科', number: 100 },{ name: '自然学科2', value: 0.4, text: '人文社科', number: 100 },{ name: '自然学科3', value: 0.8, text: '人文社科', number: 100 },{ name: '自然学科4', value: 0.3, text: '人文社科', number: 100 }] option = { backgroundColor: '#fff', title: { text: "学生成绩实时跟踪分析", subtext: "全面把控复习进度和易错题型", textStyle: { color: '#666', fontSize: '14', }, subtextStyle: { color: '#666', fontSize: '14', }, left: 'center', bottom: '15' }, tooltip: { trigger: "axis", axisPointer: { type: "line", textStyle: { color: "#fff" }, lineStyle: { color: '#ccc' } }, formatter: function(params) { return '主题: '+params[0].data.name+'
主题平均测试系数: '+params[0].data.name+"
主题知识点个数: "+params[0].data.number+"
从属专题: "+params[0].data.text; } }, grid: { borderWidth: 0, top: 110, bottom: 95, textStyle: { color: "#fff" } }, legend: { x: '4%', top: '11%', textStyle: { color: '#90979c', }, data: ['1'] }, calculable: true, xAxis: [{ name: '主题', type: "category", axisLine: { lineStyle: { color: '#ccc' } }, splitLine: { show: true, lineStyle: { color: '#e7e7e7', type: 'dashed' } }, axisTick: { "show": false }, splitArea: { "show": false }, axisLabel: { "interval": 0, show: true, rotate: '45' }, data: [1, 2, 3, 4, 5] }], yAxis: [{ name: '平均测试系数', type: "value", splitLine: { show: true, lineStyle: { color: '#e6e6e6', type: 'dashed' } }, axisLine: { lineStyle: { color: '#ccc' } }, axisTick: { show: false }, axisLabel: { interval: 0, show: true, }, splitArea: { show: false }, }], series: [{ name: "平均测试系数", type: "line", symbolSize: 12, symbol: 'circle', smooth: true, //关键点,为true是不支持虚线的,实线就用true color: ['#fff'], //折线条的颜色 itemStyle: { normal: { lineStyle: { width: 3, type: 'solid', //'dotted'虚线 'solid'实线 color: '#ffcd8e' }, borderColor: '#ff9c00', borderWidth: '3' } }, data: data1 }] }