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

[GitHub] [echarts] helgasoft commented on issue #18569: [Bug] x轴为time类型的bar图指定x轴的min值时首个tick并没有位于x轴的最左侧(没有和y轴对齐)

helgasoft commented on issue #18569:
URL: https://github.com/apache/echarts/issues/18569#issuecomment-1523882283

   remove _xAxis.min_ and the first tick will be aligned with yAxis.
   Keep in mind that _barWidth_ will take space(time) on the xAxis and may look confusing if too big. The most accurate value for a single event like a measurement is ```barWidth:1```, but it is too thin and hard to see. So there is a tradeoff, up to you to find the right balance.
   [Demo Code](https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWsCeBBAHhAzgFywDaa6y5Fs0AhgLYCmxA5IMryglHayDAhCwDRUKdJgBlgAY1qQYrehAAm8gDaN-g9MMYBxWiGIAmAKwDq6MBhDNYLAG60lAV1UnTc6MQDMx9bHq0cxAAs3qaw_gQiENBWSLD4ABbAAO7EYABOTrAAvi7U4fgAKhDiANbEsQnJqRmM2bkU-SK0AEaMSuVxiSmw6Zk5PvggShBgkdEdld0AZvb4tVmCC-gAui44uATEZNSooeaWrJBMaqGDw2AAcg70rWme-i4A9I_Ubqz6AAz6HgC0H4E_IywD4fQggsEfE6ufzvL6_D6GQEANmBoPBIKh1GezWADmg8loaQwOj0sBmSjm9XQzyiYEYaTs7VgHiRILZVLCeHwYxinSqPRqdR8-SKpQmXWqfQ5jRabXF_N68w5ZxGPPl01mSp8zxVYCwaUYtHVksYfDCBtoAGVzCpyuJgEpgHdrABiABibrZHyRSJYWSWFADq3IAHM0gotrEVFMwMQAJwfM1gUAGROwcMh-Kx2AARjT8UYEEz2bzH2ywfQc3DjCIpEEu1MmlYnExFH2VhYzUJrfQXbSAHUFGB4sQc4EOUpZUyKhKyZqzSBgPgRlB3NZkyAWELQoxoPb5LyAtYmLR8A4DQARKSMIrHM0YViMpz8HrAB2QUk_HPZRbkCuwAkwFPRhs22CgG2ofBcTScQrDA0JYhPM9L2vW8O0-b4_gBIEPgADghCEXyfKwPAAdgAOkMbdQmQXxDWQxgrzpNDYUwhFASovMCIxM1iM8OMf1CZZfxWFAsgAbiAA)


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