You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/09/03 09:57:30 UTC

[GitHub] [echarts] shishiranshuman opened a new issue #15671: Start/End tick label are incorrect for the Bar chart.

shishiranshuman opened a new issue #15671:
URL: https://github.com/apache/echarts/issues/15671


   ### Version
   5.1.2
   
   ### Reproduction link
   [https://codesandbox.io/s/bar-chart-tick-label-eqzh7?file=/src/barChartData.js](https://codesandbox.io/s/bar-chart-tick-label-eqzh7?file=/src/barChartData.js)
   
   ### Steps to reproduce
   Created a time series graph with line and bar visualization. With the line chart, the xAxis tick labels are correct, as in as per the max/min and the data provided. But for the bar chart, the start/end labels are not correct. 
   
   In the sandbox link provided, try changing the series.tyle to "line", you'll see the correct time label in the chart.
   
   ![image](https://user-images.githubusercontent.com/20037600/131987307-4bf408fe-db32-4e1d-96be-97835237a35d.png)
   ![image](https://user-images.githubusercontent.com/20037600/131987342-6c118615-3575-477c-b22c-35e13a6af4d0.png)
   
   
   ### What is expected?
   The min/max axis label should be the same for the bar and the line chart with the same data and options.
   
   ### What is actually happening?
   The min/max labels are not correct when the type is "bar".
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


-- 
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] pissang edited a comment on issue #15671: Start/End tick label are incorrect for the Bar chart.

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #15671:
URL: https://github.com/apache/echarts/issues/15671#issuecomment-916515779


   Seems it's by design. We add an extra margin for the bar chart on the time axis so it won't exceed the axis.
   
   Related issues:
   #6728 #4862
   
   Related code:
   https://github.com/apache/echarts/blob/master/src/coord/axisHelper.ts#L81
   
   But I suppose it should be configurable


-- 
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] plainheart edited a comment on issue #15671: Start/End tick label are incorrect for the Bar chart.

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #15671:
URL: https://github.com/apache/echarts/issues/15671#issuecomment-912451268


   Thanks. It should be a bug. @Ovilia Please help look into this.


-- 
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] pissang edited a comment on issue #15671: Start/End tick label are incorrect for the Bar chart.

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #15671:
URL: https://github.com/apache/echarts/issues/15671#issuecomment-916515779


   Seems it's by design. We add an extra margin for the bar chart on the time axis so it won't exceed the axis.
   
   Related issues:
   #6728 #4862
   
   Related code:
   https://github.com/apache/echarts/blob/master/src/coord/axisHelper.ts#L81
   
   But I suppose it should be configurable. Or a better solution in the feature is to keep the min/max tick not change. Only add an extra margin on the axis line.


-- 
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] shishiranshuman commented on issue #15671: Start/End tick label are incorrect for the Bar chart.

Posted by GitBox <gi...@apache.org>.
shishiranshuman commented on issue #15671:
URL: https://github.com/apache/echarts/issues/15671#issuecomment-912444196


   I tried with 5.2.0 as well. The issue seems to be still present. https://codesandbox.io/s/bar-chart-tick-label-v5-2-0-slsgo?file=/src/barChartData.js:41261-41264


-- 
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 issue #15671: Start/End tick label are incorrect for the Bar chart.

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15671:
URL: https://github.com/apache/echarts/issues/15671#issuecomment-912415939


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe to our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


-- 
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] shishiranshuman commented on issue #15671: Start/End tick label are incorrect for the Bar chart.

Posted by GitBox <gi...@apache.org>.
shishiranshuman commented on issue #15671:
URL: https://github.com/apache/echarts/issues/15671#issuecomment-918017630


   @pissang Yeah. A configurable option would be helpful.
   Is there a way around this atm?


-- 
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] shishiranshuman commented on issue #15671: Start/End tick label are incorrect for the Bar chart.

Posted by GitBox <gi...@apache.org>.
shishiranshuman commented on issue #15671:
URL: https://github.com/apache/echarts/issues/15671#issuecomment-912514787


   @plainheart Thanks. In the meantime, is there a way we could handle this via any other property?  any suggestions


-- 
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] plainheart commented on issue #15671: Start/End tick label are incorrect for the Bar chart.

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #15671:
URL: https://github.com/apache/echarts/issues/15671#issuecomment-912442209


   5.2.0 has fixed this bug. Please upgrade and check it again.


-- 
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] pissang commented on issue #15671: Start/End tick label are incorrect for the Bar chart.

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #15671:
URL: https://github.com/apache/echarts/issues/15671#issuecomment-918746789


   @shishiranshuman I'm afraid the only way is change the bar series to line series. Or changing time axis to category axis


-- 
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] pissang commented on issue #15671: Start/End tick label are incorrect for the Bar chart.

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #15671:
URL: https://github.com/apache/echarts/issues/15671#issuecomment-916515779


   Seems it's by design. We add an extra margin for the bar chart on time axis so it won't exceed the axis.
   
   Related issues:
   #6728 #4862
   
   Related code:
   https://github.com/apache/echarts/blob/master/src/coord/axisHelper.ts#L81


-- 
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] plainheart commented on issue #15671: Start/End tick label are incorrect for the Bar chart.

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #15671:
URL: https://github.com/apache/echarts/issues/15671#issuecomment-912451268


   Thanks. It should be a bug.


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