You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Ovilia (via GitHub)" <gi...@apache.org> on 2023/03/03 09:52:07 UTC

[GitHub] [echarts] Ovilia opened a new pull request, #18327: fix(bar): barMinHeight not working for stacked bars

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

   <!-- Please fill in the following information to help us review your PR more efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
   
   #16338 seems to bring a bug that the first series's `barMinHeight` is not stacked with the second series, so that the base of  the second series is `barMinHeight`.
   
   ### Fixed issues
   
   #16565
   
   ## Details
   
   ### Before: What was the problem?
   
   If there are three series with all data as 0 and `barMinHeight` as 15, the three series are at the same position.
   
   <img width="663" alt="image" src="https://user-images.githubusercontent.com/779050/222688613-6cbf9fee-9341-45e6-a92f-6d611ac039c8.png">
   
   
   
   ### After: How does it behave after the fixing?
   
   They should be stack on each other, which is the behavior before #16338.
   
   <img width="676" alt="image" src="https://user-images.githubusercontent.com/779050/222688735-3b35ad6c-9efc-48b0-8586-6de5dae5f45d.png">
   
   ## Document Info
   
   One of the following should be checked.
   
   - [x] This PR doesn't relate to document changes
   - [ ] 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
   
   N.A.
   
   
   
   ## Others
   
   ### Merging options
   
   - [ ] 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 #18327: fix(bar): barMinHeight not working for stacked bars

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

   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).
   
   The pull request is marked to be `PR: author is committer` because you are a committer of this project.


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


Re: [PR] fix(bar): barMinHeight not working for stacked bars [echarts]

Posted by "chenxingshuang (via GitHub)" <gi...@apache.org>.
chenxingshuang commented on PR #18327:
URL: https://github.com/apache/echarts/pull/18327#issuecomment-2104391628

   would  you tell me when the fixed code  will be published


-- 
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] Arhimondear commented on pull request #18327: fix(bar): barMinHeight not working for stacked bars

Posted by "Arhimondear (via GitHub)" <gi...@apache.org>.
Arhimondear commented on PR #18327:
URL: https://github.com/apache/echarts/pull/18327#issuecomment-1494162152

   > Hello! Is there any news about this fix?
   
   @Ovilia help, plz :)


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


Re: [PR] fix(bar): barMinHeight not working for stacked bars [echarts]

Posted by "chenxingshuang (via GitHub)" <gi...@apache.org>.
chenxingshuang commented on PR #18327:
URL: https://github.com/apache/echarts/pull/18327#issuecomment-2242541965

   > This PR is closed due to the fact that by supporting minHeight for stacked bars, it brings a misunderstanding of the total height.
   
   > config minHeight is still not working
   ```
   option = {
     tooltip: {
       trigger: 'axis',
       axisPointer: {
         // Use axis to trigger tooltip
         type: 'shadow' // 'shadow' as default; can also be 'line' or 'shadow'
       }
     },
     legend: {},
     grid: {
       left: '3%',
       right: '4%',
       bottom: '3%',
       containLabel: true
     },
     xAxis: {
       type: 'value'
     },
     yAxis: {
       type: 'category',
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     series: [
       {
         name: 'Direct',
         type: 'bar',
         stack: 'total',
         label: {
           show: true
         },
         emphasis: {
           focus: 'series'
         },
         minHeight: 560,
         data: [0, 302, 301, 334, 390, 330, 320]
       },
       {
         name: 'Mail Ad',
         type: 'bar',
         stack: 'total',
         label: {
           show: true
         },
         emphasis: {
           focus: 'series'
         },
         data: [120, 132, 101, 134, 90, 230, 210]
       },
       {
         name: 'Affiliate Ad',
         type: 'bar',
         stack: 'total',
         label: {
           show: true
         },
         emphasis: {
           focus: 'series'
         },
         data: [220, 182, 191, 234, 290, 330, 310]
       },
       {
         name: 'Video Ad',
         type: 'bar',
         stack: 'total',
         label: {
           show: true
         },
         emphasis: {
           focus: 'series'
         },
         data: [150, 212, 201, 154, 190, 330, 410]
       },
       {
         name: 'Search Engine',
         type: 'bar',
         stack: 'total',
         label: {
           show: true
         },
         emphasis: {
           focus: 'series'
         },
         data: [820, 832, 901, 934, 1290, 1330, 1320]
       }
     ]
   };
   ```


-- 
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] Arhimondear commented on pull request #18327: fix(bar): barMinHeight not working for stacked bars

Posted by "Arhimondear (via GitHub)" <gi...@apache.org>.
Arhimondear commented on PR #18327:
URL: https://github.com/apache/echarts/pull/18327#issuecomment-1491438503

   Hello! Is there any news about this fix?


-- 
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] Ovilia commented on pull request #18327: fix(bar): barMinHeight not working for stacked bars

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on PR #18327:
URL: https://github.com/apache/echarts/pull/18327#issuecomment-1499858538

   @Arhimondear This problem remains to be fixed because it is complicated. You may use 5.2.x if you are urgent.


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