You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "molinator84 (via GitHub)" <gi...@apache.org> on 2023/06/26 10:49:45 UTC

[GitHub] [echarts] molinator84 opened a new pull request, #18806: feat(emphasis): add emphasis type 'category'. close #18694

molinator84 opened a new pull request, #18806:
URL: https://github.com/apache/echarts/pull/18806

   <!-- Please fill in the following information to help us review your PR more efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [ ] bug fixing
   - [x] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
   This PR adds a 'category' option to the emphasis that enables the user to emphasis when mouseover only the values of the series with the shared category. Specially usefull on stacked bars.
   
   
   ### Fixed issues
   
   - #18694
   
   ## Details
   
   ### Before: What was the problem?
   
   <!-- DESCRIBE THE BUG OR REQUIREMENT HERE. -->
   Mainly, in stacked bars, sometimes is useful to have the emphasis on the whole category, not on the series. Prior to this PR the only options are self and series.
   
   <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
   
   ![image](https://github.com/apache/echarts/assets/50467435/0162fbf2-ec46-4c40-8f43-1043d2eada49)
   
   
   ### After: How does it behave after the fixing?
   
   <!-- THE RESULT AFTER FIXING AND A SIMPLE EXPLANATION ABOUT HOW IT IS FIXED. -->
   Now there is a new option for emphasis called 'category' that allow to the user to highlight on stacked bars the whole category. It have also a direct relation with the label values showed, as it shows the values of each serie for this category only.
   
   <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
   ![image](https://github.com/apache/echarts/assets/50467435/a69f1465-c541-489f-bc3d-aee4cd7fe0bf)
   
   
   
   ## Document Info
   
   One of the following should be checked.
   
   - [ ] This PR doesn't relate to document changes
   - [x] The document should be updated later
   - [ ] The document changes have been made in apache/echarts-doc#xxx
   
   
   
   ## Misc
   
   ### ZRender Changes
   
   - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
   
   ### Related test cases or examples to use the new APIs
   
   test/emphasis-category.html to test emphasis: 'category'
   
   
   
   ## Others
   
   ### Merging options
   
   - [x ] Please squash the commits into a single one when merging.
   
   ### Other information
   


-- 
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] [echarts] echarts-bot[bot] commented on pull request #18806: feat(emphasis): add emphasis type 'category'. close #18694

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on PR #18806:
URL: https://github.com/apache/echarts/pull/18806#issuecomment-1607201506

   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/echarts/wiki/How-to-make-a-pull-request).
   
   Document changes are required in this PR. Please also make a PR to [apache/echarts-doc](https://github.com/apache/echarts-doc) for document changes and update the issue id in the PR description. When the doc PR is merged, the maintainers will remove the `PR: awaiting doc` label.


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