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 2020/04/01 13:55:20 UTC
[GitHub] [incubator-echarts] souperk opened a new issue #12366: visualMap on
time series incorrect line color
souperk opened a new issue #12366: visualMap on time series incorrect line color
URL: https://github.com/apache/incubator-echarts/issues/12366
### Version
4.7.0
### Steps to reproduce
```javascript
option = {
xAxis: { type: 'time' },
yAxis: { type: 'value' },
visualMap: {
type: 'piecewise',
show: false,
dimension: 0,
max: new Date('2020-04-01T01:00'),
inRange: { color: "blue" },
outOfRange: { color: "red" }
},
tooltip:{ trigger: "axis" },
series: [{
type: 'line',
data: [
['2020-04-01T00:00', 200],
['2020-04-01T01:00', 400],
['2020-04-01T02:00', 650],
['2020-04-01T03:00', 500]
]
}]
};
```
### What is expected?
Line and points before 2020-04-01 01:00 to be colored blue. Line and points after 2020-04-01 01:00 to be colored red.
### What is actually happening?
Points before 2020-04-01 01:00 are colored blue (correct) but line is colored red (wrong). Points and lines after 2020-04-01 01:00 are colored red (correct).
<!-- 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
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] souperk commented on issue #12366: visualMap on
time series incorrect line color
Posted by GitBox <gi...@apache.org>.
souperk commented on issue #12366: visualMap on time series incorrect line color
URL: https://github.com/apache/incubator-echarts/issues/12366#issuecomment-607882132
https://gallery.echartsjs.com/editor.html?c=xx0mG_wXBJ&v=1
----------------------------------------------------------------
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
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12366:
visualMap on time series incorrect line color
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12366: visualMap on time series incorrect line color
URL: https://github.com/apache/incubator-echarts/issues/12366#issuecomment-607320295
@souperk Please provide a demo for the issue either with https://jsfiddle.net/ovilia/n6xc4df3/ or https://gallery.echartsjs.com/editor.html.
----------------------------------------------------------------
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
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] github-actions[bot] commented on issue #12366: visualMap on time series incorrect line color
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #12366:
URL: https://github.com/apache/echarts/issues/12366#issuecomment-1086723859
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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] [incubator-echarts] echarts-bot[bot] commented on issue #12366:
visualMap on time series incorrect line color
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12366: visualMap on time series incorrect line color
URL: https://github.com/apache/incubator-echarts/issues/12366#issuecomment-607264529
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
Have a nice day! 🍵
----------------------------------------------------------------
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
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [incubator-echarts] 100pah commented on issue #12366: visualMap on
time series incorrect line color
Posted by GitBox <gi...@apache.org>.
100pah commented on issue #12366: visualMap on time series incorrect line color
URL: https://github.com/apache/incubator-echarts/issues/12366#issuecomment-608073043
This option works.
```js
option = {
xAxis: { type: 'time' },
yAxis: { type: 'value' },
visualMap: {
type: 'piecewise',
show: false,
dimension: 0,
pieces: [{
gt: +new Date('2020-04-01T00:00'),
lte: +new Date('2020-04-01T01:00'),
color: 'blue'
}, {
gt: +new Date('2020-04-01T01:00'),
lte: +new Date('2020-04-01T04:00'),
color: 'red'
}]
},
tooltip:{ trigger: "axis" },
series: [{
type: 'line',
data: [
['2020-04-01T00:00', 200],
['2020-04-01T01:00', 400],
['2020-04-01T02:00', 650],
['2020-04-01T03:00', 500]
]
}]
};
```
But notice each piece should both contain `lt`/`lte` and `gt`/`gte`.
(this should be enhanced)
----------------------------------------------------------------
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
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org