当前位置:网站首页>echart 特例-多分组X轴
echart 特例-多分组X轴
2022-08-10 19:07:00 【江湖行骗老中医】
option = {
color: ['#5470C6', '#5470C6', '#EE6666', '#EE6666'],
legend: {
show: true,
data: ['现有总计', '现有密度', '现有+规划总计', '现有+规划密度'],
},
grid: [{
top: '5%',
width: '30%',
right: '5%',
left: '5%',
bottom: "25%"
}, {
top: '5%',
width: '30%',
right: '5%',
left: '35%',
bottom: "25%"
}
, {
top: '5%',
width: '30%',
right: '5%',
left: '65%',
bottom: "25%"
},
],
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow', //line
label: {
show: true,
color: "#000"
}
}
},
xAxis: [{
type: 'category',
gridIndex: 0,
data: ['万博', '万顷沙', '三元里', '亚运城', '南岗'],
axisTick: {
length: 0,
},
axisLabel: {
rotate: 75
},
}, {
type: 'category',
gridIndex: 1,
data: ['万博', '万顷沙', '三元里', '亚运城', '南岗'],
axisTick: {
length: 0,
},
axisLabel: {
rotate: 75
},
}, {
type: 'category',
gridIndex: 2,
data: ['万博', '万顷沙', '三元里', '亚运城', '南岗'],
axisTick: {
length: 0,
},
axisLabel: {
rotate: 75
},
}, {
type: 'category',
gridIndex: 0,
data: [
{
value: '产业园',
textStyle: {
fontSize: 18,
lineHeight: 150
}
}
],
position: 'bottom',
axisTick: {
length: 110
},
}, {
type: 'category',
gridIndex: 1,
data: [
{
value: '医院',
textStyle: {
fontSize: 18,
lineHeight: 150
}
}
],
position: 'bottom',
axisTick: {
length: 110
},
}, {
type: 'category',
gridIndex: 2,
data: [
{
value: '学校',
textStyle: {
fontSize: 18,
lineHeight: 150
}
}
],
position: 'bottom',
axisTick: {
length: 110
},
},], yAxis: [{
type: 'value',
axisLabel: {
interval: 0,
},
splitLine: {
show: false
}
},
{
show: false,
gridIndex: 1,
type: 'value',
},
{
show: false,
gridIndex: 2,
type: 'value',
},
{
show: false,
gridIndex: 3,
type: 'value',
},], series: [
{
name: '现有总计',
xAxisIndex: 0,
yAxisIndex: 0,
data: [7, 14, 14, 7, 5],
type: 'bar'
},
{
name: '现有密度',
xAxisIndex: 0,
yAxisIndex: 0,
data: [0.30634, 0.05362, 1.18335, 0.04484, 0.23194],
type: 'line'
},
{
name: '现有+规划总计',
xAxisIndex: 0,
yAxisIndex: 0,
data: [7, 22, 14, 7, 5],
type: 'bar'
},
{
name: '现有+规划密度',
xAxisIndex: 0,
yAxisIndex: 0,
data: [0.30634, 0.08426, 1.18335, 0.04484, 0.23194],
type: 'line'
},
{
name: '现有总计',
xAxisIndex: 1,
yAxisIndex: 1,
data: [0, 2, 3, 1, 2],
type: 'bar'
},
{
name: '现有密度',
xAxisIndex: 1,
yAxisIndex: 1,
data: [0, 0.00766, 0.25357, 0.00641, 0.09278],
type: 'line'
},
{
name: '现有+规划总计',
xAxisIndex: 1,
yAxisIndex: 1,
data: [0, 4, 3, 1, 2],
type: 'bar'
},
{
name: '现有+规划密度',
xAxisIndex: 1,
yAxisIndex: 1,
data: [0, 0.01532, 0.25357, 0.00641, 0.09278],
type: 'line'
},
{
name: '现有总计',
xAxisIndex: 2,
yAxisIndex: 2,
data: [9, 4, 6, 10, 5],
type: 'bar'
},
{
name: '现有密度',
xAxisIndex: 2,
yAxisIndex: 2,
data: [0.39387, 0.01532, 0.50715, 0.06406, 0.23194],
type: 'line'
},
{
name: '现有+规划总计',
xAxisIndex: 2,
yAxisIndex: 2,
data: [11, 6, 6, 11, 9],
type: 'bar'
},
{
name: '现有+规划密度',
xAxisIndex: 2,
yAxisIndex: 2,
data: [0.4814, 0.02298, 0.50715, 0.07047, 0.41749],
type: 'line'
},]
}
边栏推荐
- 赎金信问题答记
- 代理模式的使用总结
- 【初学必备】3d游戏建模入门基础知识
- 怎么完全卸载赛门铁克_Symantec卸载方法,赛门铁克卸载「建议收藏」
- 线性结构----链表
- What is the upstream bandwidth and downstream bandwidth of the server?
- LeetCode·283.移除零·双指针
- 【luogu CF1534F2】Falling Sand (Hard Version)(性质)(dfs)(线段树 / 单调队列 / 贪心)
- QoS Quality of Service Seven Switch Congestion Management
- [教你做小游戏] 只用几行原生JS,写一个函数,播放音效、播放BGM、切换BGM
猜你喜欢
常见端口及服务
你不知道的浏览器页面渲染机制
转铁蛋白Tf功能化β-榄香烯-雷公藤红素/紫杉醇PLGA纳米粒/雷公藤甲素脂质体(化学试剂)
巧用RoaringBitMap处理海量数据内存diff问题
3D Game Modeling Learning Route
【自然语言处理】【向量表示】PairSupCon:用于句子表示的成对监督对比学习
FEMRL: A Framework for Large-Scale Privacy-Preserving Linkage of Patients’ Electronic Health Rec Paper Summary
端口探测详解
Keras深度学习实战(17)——使用U-Net架构进行图像分割
whois information collection & corporate filing information
随机推荐
西安凯新(CAS:2408831-65-0)Biotin-PEG4-Acrylamide 特性
Modern Privacy-Preserving Record Linkage Techniques: An Overview论文总结
3D游戏建模学习路线
LeetCode·283.移除零·双指针
铱钌合金/氧化铱仿生纳米酶|钯纳米酶|GMP-Pd纳米酶|金钯复合纳米酶|三元金属Pd-M-Ir纳米酶|中空金铂合金纳米笼核-多空二氧化硅壳纳米酶
Today's bug, click on the bug that the Windows dynamic wallpaper disappears in the win10 taskbar, and no solution has been found yet.
Linux服务器安装Redis,详细步骤。
(十二) findContours函数的hierarchy详解
电脑为什么会蓝屏的原因
越折腾越好用的 3 款开源 APP
你不知道的浏览器页面渲染机制
【greenDao】Cannot access ‘org.greenrobot.greendao.AbstractDaoSession‘ which is a supertype of
mysql踩坑----case when then用法
servlet映射路径匹配解析
flask的配置文件
redis如何查看key的有效期
Optimizing Bloom Filter: Challenges, Solutions, and Comparisons论文总结
Introduction to 3 d games beginners essential 】 【 modeling knowledge
不止跑路,拯救误操作rm -rf /*的小伙儿
argparse——命令行参数解析