apache / apache/echarts

Start/End tick label are incorrect for the Bar chart.

Open
#15,671 10 comments 0 reactions 0 assignees View on GitHub
bug en topic: axis-time topic: bar
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### 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".

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.