Toggle navigation
柱线图最小值
By
低***h
2019-09-07 08:27:41
脚本
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: '#010828', title: { left: '550', top: '5', textStyle: { rich: { a: { color: 'red', fontWeight: 'bold', fontSize: '16', }, b: { fontWeight: 'bold', fontSize: '16', color: 'white', }, } }, text: ['{a|案例1|}', '{b|案例2|案例3|案例4|案例5|案例6}'].join(''), }, tooltip:{ type:'items' }, xAxis: [{ axisTick: { show: false }, axisLine: { lineStyle: { color: 'white', } }, axisLabel: { show: true, interval: 0, // formatter: function (val) { // return val.split("").join("\n"); // }, textStyle: { fontSize: 12 //更改坐标轴文字大小 }, }, data: ["互联网", "互联网1", "互联网2", "互联网3", "互联网4"], }], yAxis: [{ type: 'value', min: 0, max: 300, interval: 100, splitLine: { show: false }, axisTick: { show: false }, axisLabel: { formatter: '{value} ' }, axisLine: { lineStyle: { color: 'white', } }, }, { type: 'value', min: -10, max: 20, interval: 10, axisLabel: { formatter: '{value} %' }, splitLine: { show: false }, axisTick: { show: false }, axisLine: { lineStyle: { color: '#FF6347', } }, } ], series: [{ name: '预购队列', type: 'bar', barWidth: 50, markLine: { label: { show: false }, lineStyle: { // type:"solid", }, data: [ // 纵轴,默认 { type: 'min', name: '最小值', itemStyle: { normal: { color: '#FF6347' } } }, // 横轴 // {type : 'min', name: '最小值', valueIndex: 0, itemStyle:{normal:{color:'#1e90ff'}}}, ] }, itemStyle: { normal: { color: new echarts.graphic.LinearGradient( 0, 0, 0, 1, [{ offset: 0, color: '#9e65ea' }, //柱图渐变色 { offset: 0.5, color: '#855de6' }, //柱图渐变色 { offset: 1, color: '#514ddd' }, //柱图渐变色 ] ) }, }, data: [220, 100, 200, 300, 180], }, { name: '最新成交价', type: 'line', lineStyle: { color: '#e7c52c', }, data: [200, 100, 80, 50, 20], symbol: 'none', } ], };