You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/02/10 04:33:54 UTC
[GitHub] [echarts] KehaoWu opened a new issue #14256: visualmap dimension等于2的时候不生效
KehaoWu opened a new issue #14256:
URL: https://github.com/apache/echarts/issues/14256
### Version
5.0.2
### Steps to reproduce
在这个例子的基础上修改代码:
```
option = {
title: {
text: '一天用电量分布',
subtext: '纯属虚构'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross'
}
},
toolbox: {
show: true,
feature: {
saveAsImage: {}
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['00:00', '01:15', '02:30', '03:45', '05:00', '06:15', '07:30', '08:45', '10:00', '11:15', '12:30', '13:45', '15:00', '16:15', '17:30', '18:45', '20:00', '21:15', '22:30', '23:45']
},
yAxis: {
type: 'value',
axisLabel: {
formatter: '{value} W'
},
axisPointer: {
snap: true
}
},
visualMap: {
show: false,
dimension: 0,
pieces: [{
lte: 6,
color: 'green'
}, {
gt: 6,
lte: 8,
color: 'red'
}, {
gt: 8,
lte: 14,
color: 'green'
}, {
gt: 14,
lte: 17,
color: 'red'
}, {
gt: 17,
color: 'green'
}]
},
series: [
{
name: '用电量',
type: 'line',
smooth: true,
data: [300, 280, 250, 260, 270, 300, 550, 500, 400, 390, 380, 390, 400, 500, 600, 750, 800, 700, 600, 400],
markArea: {
itemStyle: {
color: 'rgba(255, 173, 177, 0.4)'
},
data: [ [{
name: '早高峰',
xAxis: '07:30'
}, {
xAxis: '10:00'
}], [{
name: '晚高峰',
xAxis: '17:30'
}, {
xAxis: '21:15'
}] ]
}
}
]
};
```
得到的图折线没有变化颜色
### What is expected?
折线变化颜色
### What is actually happening?
没有变化
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] pissang commented on issue #14256: visualmap dimension等于2的时候不生效
Posted by GitBox <gi...@apache.org>.
pissang commented on issue #14256:
URL: https://github.com/apache/echarts/issues/14256#issuecomment-781822594
@KehaoWu 抱歉之前过年休假,目前折线图 visualMap 只支持在 x 轴和 y 轴两个维度上进行设置
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] KehaoWu commented on issue #14256: visualmap dimension等于2的时候不生效
Posted by GitBox <gi...@apache.org>.
KehaoWu commented on issue #14256:
URL: https://github.com/apache/echarts/issues/14256#issuecomment-781863195
> @KehaoWu 抱歉之前过年休假,目前折线图 visualMap 只支持在 x 轴和 y 轴两个维度上进行设置
好的,期待
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #14256: visualmap dimension等于2的时候不生效
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14256:
URL: https://github.com/apache/echarts/issues/14256#issuecomment-776432616
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] Ovilia closed issue #14256: visualmap dimension等于2的时候不生效
Posted by GitBox <gi...@apache.org>.
Ovilia closed issue #14256:
URL: https://github.com/apache/echarts/issues/14256
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] KehaoWu commented on issue #14256: visualmap dimension等于2的时候不生效
Posted by GitBox <gi...@apache.org>.
KehaoWu commented on issue #14256:
URL: https://github.com/apache/echarts/issues/14256#issuecomment-776450111
仔细研究了下,应该是非x或非y轴的时候,只有点会变色,但是线条不会变色,这个能满足吗?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] KehaoWu commented on issue #14256: visualmap dimension等于2的时候不生效
Posted by GitBox <gi...@apache.org>.
KehaoWu commented on issue #14256:
URL: https://github.com/apache/echarts/issues/14256#issuecomment-781814895
咦,为啥子官方木有动静
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org