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

[GitHub] [echarts] ygs5933798 opened a new issue, #18793: [Bug] Bar chart item overlap grid

ygs5933798 opened a new issue, #18793:
URL: https://github.com/apache/echarts/issues/18793

   ### Version
   
   latest
   
   ### Link to Minimal Reproduction
   
   https://codepen.io/Sam-Yang-the-selector/pen/MWzbmYE
   
   ### Steps to Reproduce
   
   
   My case is bar chart with xAxis type is value, and the min value of xAxis is a value, option like image below
   
   ![image](https://github.com/apache/echarts/assets/127940020/c8445849-0ed5-4d8d-aee8-0ae3119699fe)
   
   
   ### Current Behavior
   
   chart item overlap
   
   ### Expected Behavior
   
   the first bar item need to display half width of it, because left part is overflow grid.
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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.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: [I] [Bug] Bar chart item overlap grid [echarts]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on issue #18793:
URL: https://github.com/apache/echarts/issues/18793#issuecomment-1854541550

   I found out that you can use [scale](https://echarts.apache.org/en/option.html#xAxis.scale) to achieve this [behavior](https://echarts.apache.org/examples/en/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AG4CGANgK5W0A0J6eAxixpkATu27oAvuNjkc-IqlJlKQhi3ZcSUknirCIVQrADaPYkvQATRmEZFjARgBMABk6xXb2A4CsXgBxeAOxezqEAzC4AutJKFNR0AEaMwppKEiRRKBIA3EA).


-- 
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: [I] [Bug] Bar chart item overlap grid [echarts]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on issue #18793:
URL: https://github.com/apache/echarts/issues/18793#issuecomment-1854048129

   @Ovilia Look how this is handled differently when comparing `category` and `value` even though both set `min` and `max`.
   
   Type `category` with `min` and `max` defined:
   
   <img width="1782" alt="Screenshot 2023-12-13 at 11 41 03" src="https://github.com/apache/echarts/assets/70410625/7da12001-0289-4a47-8204-6ec03550aaa7">
   
   Type `value` with `min` and `max` defined:
   
   <img width="1783" alt="Screenshot 2023-12-13 at 11 43 31" src="https://github.com/apache/echarts/assets/70410625/6ec81fd4-a3c1-44f6-a614-c2800022d061">


-- 
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] ygs5933798 commented on issue #18793: [Bug] Bar chart item overlap grid

Posted by "ygs5933798 (via GitHub)" <gi...@apache.org>.
ygs5933798 commented on issue #18793:
URL: https://github.com/apache/echarts/issues/18793#issuecomment-1607058146

   > This is the expected result since you set min: 110.
   
   Thanks for reply
   
   Yes, the min data is 110, but do we have any way to hide the part of bar which overlap grid? 


-- 
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: [I] [Bug] Bar chart item overlap grid [echarts]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on issue #18793:
URL: https://github.com/apache/echarts/issues/18793#issuecomment-1854034292

   @Ovilia I agree with @ygs5933798 that this does not look good. We had [user reports](https://github.com/apache/superset/issues/26254) in Superset about the same problem. @ygs5933798 manually set 110 but this also happens when using `dataMin` and `dataMax` which are automatically calculated. Can we try to come up with an improved display? Maybe moving the ticks at both ends to accommodate the bars?


-- 
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 issue #18793: [Bug] Bar chart item overlap grid

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18793:
URL: https://github.com/apache/echarts/issues/18793#issuecomment-1605900809

   This is the expected result since you set min: 110.


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