当前位置:网站首页>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'
},]
}
边栏推荐
- 从 GAN 到 WGAN
- 从 Delta 2.0 开始聊聊我们需要怎样的数据湖
- Modern Privacy-Preserving Record Linkage Techniques: An Overview论文总结
- 这7个自动化办公模版 教你玩转表格数据自动化
- laya打包发布apk
- mysql踩坑----case when then用法
- Pt/CeO2 monatomic nanoparticles enzyme | H - rGO - Pt @ Pd NPs enzyme | carbon nanotube load platinum nanoparticles peptide modified nano enzyme | leukemia antagonism FeOPtPEG composite nano enzyme
- Transferrin-modified vincristine-tetrandrine liposomes | transferrin-modified co-loaded paclitaxel and genistein liposomes (reagents)
- 西安Biotin-PEG8-IA_IA-PEG8-生物素供应商
- 运维面试题(每日一题)
猜你喜欢
随机推荐
(12) findContours function hierarchy explanation
Biotin-PEG4-IC(TFP ester/amine/NHS Ester/azide)特性分享
西安Biotin-PEG8-IA_IA-PEG8-生物素供应商
基于TCP的聊天系统
【Knowledge Sharing】What is SEI in the field of audio and video development?
关于npm/cnpm/npx/pnpm与yarn
30分钟使用百度EasyDL实现健康码/行程码智能识别
【luogu CF1534F2】Falling Sand (Hard Version)(性质)(dfs)(线段树 / 单调队列 / 贪心)
Linux服务器安装Redis,详细步骤。
Redis persistence mechanism
LeetCode·26.删除有序数组中的重复项·双指针
转铁蛋白修饰蛇床子素长循环脂质体/负载三七皂苷R1的PEG-PLGA纳米粒([email protected] NPs)
2022杭电多校七 Black Magic (签到)
『牛客|每日一题』岛屿数量
优化是一种习惯●出发点是'站在靠近临界'的地方
电脑重装系统Win11格式化硬盘的详细方法
Transferrin-modified vincristine-tetrandrine liposomes | transferrin-modified co-loaded paclitaxel and genistein liposomes (reagents)
2020 ICPC Shanghai Site G
TDD、FDD是什么意思?
Introduction to 3 d games beginners essential 】 【 modeling knowledge