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/07/07 12:52:25 UTC

[GitHub] [incubator-echarts] pissang opened a new pull request #12925: [5.0] [FEATURE] Introduce more states echarts

pissang opened a new pull request #12925:
URL: https://github.com/apache/incubator-echarts/pull/12925


   # [5.0] [FEATURE] Introduce more states echarts
   ## Brief Information
   
   This pull request introduces more states and user interactions in echarts.  Which includes:
   
   1. Add `blur` and `select` state to all series. These two states has same styling configuration with the original `emphasis` state
   2. Blur others when highlighting specified data through mouseover or hover linking.
   3. Click to select the data and apply `select` state.
   
   ## Example of Usage
   
   ### Blur others when highlight the specified data.
   
   ![Screen Recording 2020-07-07 at 7 55 20 PM](https://user-images.githubusercontent.com/841551/86782893-38dd3200-c092-11ea-94c2-e4c7f433ddfc.gif)
   
   #### Example code:
   
   ```js
   series: {
       type: 'bar',
       ...
       emphasis: {
           focus: 'series'
           blurScope: 'coordinateSystem'
       },
       blur: {
           opacity: 0.1
       }
   }
   ```
   
   #### Explaination
   
   ##### focus:
   
   `focus` defines which elements to keep not being blurred. It can be:
   
   In commons series:
   
   + `'self'` Only the data highlighted.
   + `'series'` The whole series which highlighted data belongs to.
   
   
   In special series:
   + `'adjacency'` Adjacency node and edges in graph. Available in sankey / graph series.
   + `'ancestor' | 'descendant'` Ancestor / Descendant nodes in tree. Available in tree / treemap / sunburst series.
   
   ##### blurScope:
   
   `blurScope` defines which elements in this scope will be blurred. It can be:
   
   + `'series'` Blur the data in the series which highlighted data belongs to.
   + `'coordinateSystem'` Blur the data in the coordinateSystem which highlighted data belongs to.
   + `'global'` Blur all other data.
   
   
   ## In progress
   
   + Click to select the data.
   
   
   
   
   
   
   


----------------------------------------------------------------
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 pull request #12925: [5.0] [FEATURE] Introduce more states echarts

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on pull request #12925:
URL: https://github.com/apache/incubator-echarts/pull/12925#issuecomment-654835493


   Thanks for your contribution!
   The community will review it ASAP. In the meanwhile, please checkout [the coding standard](https://echarts.apache.org/en/coding-standard.html) and Wiki about [How to make a pull request](https://github.com/apache/incubator-echarts/wiki/How-to-make-a-pull-request).


----------------------------------------------------------------
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 pull request #12925: [5.0] [FEATURE] Introduce more states in echarts

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on pull request #12925:
URL: https://github.com/apache/incubator-echarts/pull/12925#issuecomment-660646161


   Congratulations! Your PR has been merged. Thanks for your contribution! 👍


----------------------------------------------------------------
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] pissang merged pull request #12925: [5.0] [FEATURE] Introduce more states in echarts

Posted by GitBox <gi...@apache.org>.
pissang merged pull request #12925:
URL: https://github.com/apache/incubator-echarts/pull/12925


   


----------------------------------------------------------------
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