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/05/14 13:52:26 UTC

[GitHub] [incubator-echarts] RomanOlegovich opened a new issue #12635: Colorize the line between categories

RomanOlegovich opened a new issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635


   ### Version
   4.7.0
   
   ### Reproduction link
   [https://gallery.echartsjs.com/editor.html?c=xMxKcaockv&v=1](https://gallery.echartsjs.com/editor.html?c=xMxKcaockv&v=1)
   
   ### Steps to reproduce
   ```
   option = {
       xAxis: {
           type: 'category'
       },
       yAxis: {
           type: 'value'
       },
       series: [{
           data: [[0,0,100],[1,3,101],[2,2,102], [5,2,105], [10,5,110]],
           type: 'line',
           itemStyle: {color: "black"}
       }],
       visualMap:{
           type: 'piecewise',
           inRange: {color: "red", symbolSize:10},
           outOfRange: {color: "black"},
           min: 102,
           max: 105,
           dimension: 2,
       }
   };
   
   ```
   
   ### What is expected?
   Highlight the line between categories
   
   ### What is actually happening?
   Highlight points only.
   
   <!-- 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] [incubator-echarts] RomanOlegovich removed a comment on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich removed a comment on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629011946


   @yufeng04 
   Of course. There is a selection along the Y axis. And I need to select a line between specific categories


----------------------------------------------------------------
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] [incubator-echarts] RomanOlegovich edited a comment on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich edited a comment on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629013217


   > Could you try this [example](https://echarts.apache.org/examples/zh/editor.html?c=line-aqi)?
   @yufeng04
   
   Of course. There is a selection along the Y axis. But I need to select a line between specific categories


----------------------------------------------------------------
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] [incubator-echarts] RomanOlegovich closed issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich closed issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635


   


----------------------------------------------------------------
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] [incubator-echarts] RomanOlegovich commented on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich commented on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-630518934


   Thanks, I realized that the only way is to use dimension 0.


----------------------------------------------------------------
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] [incubator-echarts] RomanOlegovich commented on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich commented on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629013217


   > Could you try this [example](https://echarts.apache.org/examples/zh/editor.html?c=line-aqi)?
   
   @yufeng04
   Of course. There is a selection along the Y axis. And I need to select a line between specific categories


----------------------------------------------------------------
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] [incubator-echarts] Ovilia commented on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629922683


   If you wish to colorize it using x series data. The `dimension` of should be `0` rather than `2` in your demo. See https://gallery.echartsjs.com/editor.html?c=xMxKcaockv&v=4 .


----------------------------------------------------------------
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] [incubator-echarts] plainheart edited a comment on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629076048


   Maybe this is a new feature but not a bug.
   From the source code, we can get a tip in `getVisualGradient` method at [line 163](https://github.com/apache/incubator-echarts/blob/master/src/chart/line/LineView.js#L163)  below
   https://github.com/apache/incubator-echarts/blob/baa6ea6e77e40359e70f094f87c28fb618e26897/src/chart/line/LineView.js#L132-L166
   ```js
   Visual map on line style only support x or y dimension.
   ```
   The dimension is `value` in you case, so the right result has gone.
   Currently, it seems that data can only be [x, y] or [value...] but not [x, y, another dimension...]
   Just Like the [example](https://echarts.apache.org/examples/zh/editor.html?c=line-aqi) above.


----------------------------------------------------------------
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] [incubator-echarts] RomanOlegovich edited a comment on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich edited a comment on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629013217


   > Could you try this [example](https://echarts.apache.org/examples/zh/editor.html?c=line-aqi)?
   @yufeng04
   
   Of course. There is a selection along the Y axis. And I need to select a line between specific categories


----------------------------------------------------------------
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] [incubator-echarts] RomanOlegovich commented on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich commented on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629011946


   @yufeng04 
   Of course. There is a selection along the Y axis. And I need to select a line between specific categories


----------------------------------------------------------------
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] [incubator-echarts] RomanOlegovich commented on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich commented on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629011560


   @plainheart 
   1) category
   2) value
   3) ordered values ​​(index).
   I want to highlight a line from a category with index X to a category with index 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] [incubator-echarts] plainheart commented on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629076048


   Maybe this is a new feature but not a bug.
   From the source code, we can get a tip in `getVisualGradient` method at [line 163](https://github.com/apache/incubator-echarts/blob/master/src/chart/line/LineView.js#L132)  below
   https://github.com/apache/incubator-echarts/blob/baa6ea6e77e40359e70f094f87c28fb618e26897/src/chart/line/LineView.js#L132-L166
   ```js
   Visual map on line style only support x or y dimension.
   ```
   The dimension is `value` in you case, so the right result has gone.
   Currently, it seems that data can only be [x, y] or [value...] but not [x, y, another dimension...]
   Just Like the [example](https://echarts.apache.org/examples/zh/editor.html?c=line-aqi) above.


----------------------------------------------------------------
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] [incubator-echarts] RomanOlegovich removed a comment on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich removed a comment on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629011560


   @plainheart 
   1) category
   2) value
   3) ordered values ​​(index).
   I want to highlight a line from a category with index X to a category with index 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] [incubator-echarts] RomanOlegovich commented on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich commented on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629012918


   > Could I know the meaning of each dimension of data in line series?
   
   1. category
   2. value
   3. ordered values ​​(index).
   I want to highlight a line from a category with index X to a category with index 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] [incubator-echarts] plainheart edited a comment on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629076048


   Maybe this is a new feature but not a bug.
   From the source code, we can get a tip in `getVisualGradient` method at [line 163](https://github.com/apache/incubator-echarts/blob/master/src/chart/line/LineView.js#L163)  below
   https://github.com/apache/incubator-echarts/blob/baa6ea6e77e40359e70f094f87c28fb618e26897/src/chart/line/LineView.js#L132-L166
   ```js
   Visual map on line style only support x or y dimension.
   ```
   The dimension is `value` in your case, so the right result has gone.
   Currently, it seems that data can only be [x, y] or [value...] but not [x, y, another dimension...]
   Just Like the [example](https://echarts.apache.org/examples/zh/editor.html?c=line-aqi) above.


----------------------------------------------------------------
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] [incubator-echarts] yufeng04 commented on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
yufeng04 commented on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-628991238


   Could you try this [example](https://echarts.apache.org/examples/zh/editor.html?c=line-aqi)?


----------------------------------------------------------------
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] [incubator-echarts] plainheart commented on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-628993065


   Could I know the meaning of each dimension of data in line series? 


----------------------------------------------------------------
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] [incubator-echarts] RomanOlegovich edited a comment on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich edited a comment on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629017997


   I use dynamic data filtering. Therefore, I introduced another dimension to know the source index of the category, and not in the filtered data.
   
   Data:
   data: [[0,1], [1,1], [2,1], [3,1], [4,1], [5,1]]
   Filtered via zoom:
   data: [[0,1], [2,1], [4,1]].
   I can’t use "dimension: 0" because if select {min:1, max:2}, then the wrong categories will be highlighted in the filtered data:
   expected highlighted data: [[0,1], **[1,1], [2,1],** [3,1], [4,1], [5,1]]
   actually highlighted data: [[0,1], **[2,1], [4,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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] RomanOlegovich commented on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich commented on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629017997


   Data:
   data: [[0,1], [1,1], [2,1], [3,1], [4,1], [5,1]]
   Filtered via zoom:
   data: [[0,1], [2,1], [4,1]].
   I can’t use "dimension: 0" because if select {min:1, max:2}, then the wrong categories will be highlighted in the filtered data:
   expected highlighted data: [[0,1], **[1,1], [2,1],** [3,1], [4,1], [5,1]]
   actually highlighted data: [[0,1], **[2,1], [4,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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] RomanOlegovich edited a comment on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
RomanOlegovich edited a comment on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-629012918


   > Could I know the meaning of each dimension of data in line series?
   @plainheart 
   1. category
   2. value
   3. ordered values ​​(index).
   I want to highlight a line from a category with index X to a category with index 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] [incubator-echarts] echarts-bot[bot] commented on issue #12635: Colorize the line between categories

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12635:
URL: https://github.com/apache/incubator-echarts/issues/12635#issuecomment-628650891


   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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org