You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "waijune118 (via GitHub)" <gi...@apache.org> on 2024/12/02 09:08:48 UTC
Re: [I] [Bug] Bar width is too wide and span accross other dates in x-axis when series has limited data points [echarts]
waijune118 commented on issue #20552:
URL: https://github.com/apache/echarts/issues/20552#issuecomment-2510960139
Hi Helgasoft, the bar chart is intended to display 2 series on a single point of time (e.g. 12:00 a.m. every day). The problems of the chart are the bar width is inappropriate and the x-axis does not show the defined timeframe (from "2024-11-21" to "2024-11-28").
For your information, I have tried to set the barWidth to "_x%_" in order to achieve the "_Appropriate width_" in this case. However, if the barWidth is set to "3%", when the chart is set with shorter period (e.g. from "2024-11-21" to "2024-11-25") , the bars will be too slim. (https://tinyurl.com/3wwjrak7)
On the other hand, when the chart is set with larger period (e.g. from "2024-11-21" to "2024-12-31"), the bars will span accross other dates too. In this URL (https://tinyurl.com/5c3tmer5), the data on "2024-11-22" still spans to "2024-11-21" and "2024-11-23".
Moreover, when the chart has no missing data, the barWidth with "3%" will be too slim. (https://tinyurl.com/ycyjd9uu)
The bar width should be _adaptive_ and the x-axis period should always show the defined min and max value.
--
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