apache / apache/echarts

[Bug] X-Axis behaves differently in two grids with same candlestick-data

Open
#21,725 2 comments 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

6.1.0

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=candlestick-touch&code=7VW7bttAEOz9FdcEbuzD7d3xHgpSpDSQL4jhgpBoi7AsCiKdyAj875ldUpQYy0ZSBCliFdJqObM7-7hjs-nqZq0-qR9nSu0-7-p2pq5hKnHwp17M1PlDWa8vd-cXg6972lTwfitXj9XovNvWi6v1otrNlOl9z_3PJFJbzZv14g9i0RAL3zcXZ_h-OqXyZJSD9Kc3VCq1adqa2wD0tr5bdiP4oYZvhD2UIHkz_i-h40u9Rt69CqXaZfN9prrtY7VHKdWsv1bbZqZuy1VbDd6hNb906PUqhradrGPo0D-vA-Ppdb2-Qvx0VLWqbjs8IPNhdIls-OyRr2s27Dk4ltWA8iPqjU37ayn3FbfVtq5OH5tl3XbNtp6Xq0sY8_vLDf5U7RhWDtzViQMmO354cBj7sCHzcr1YVW1Xz-_HR4uyK_cq-HNtLpSjqJ0nB8tGbSmm3md8COxL2vsQpYyBRD00WuthOatztEyyQRcmic9rlykckyy7SYfsMltO-0LoiB8pckiQoiF3TGJRgEKUSAnamSQW6IaEBAs6jkkS1epUkEAjMvV00tnbyFbWbqqu6JFFimIVOpjMipHIBBp1TjhDTNQhxZN2SSzK2kQvPrAtTcRJetIFiRD0LjrpPNjeSme8NonyMYdDwW0LEk7QgbJYDmwrjc3axjhJJLEyAIKEkYK4CpRuOKK3usi-mAyW1wFY76J0PuqUpd-wDMDMgo44mVE_BvRbVgia6NBkI2SvfaBpIhZtvC68JDJJB-8gymYI9cQzIMODnWYSLM_OCR-pisRYYzWY_JTQWjyesFg2ED54Vgo-kRMfYbZGWAaR7FShxMUks2CBQKvZVWDz5GAglffT4crCEQYYMqcii15Ir1FgDk7KCtpQSBMWdwvRKPV8XrmhAThifcTCpekRlKgBS86_mA4z0NAgJWLl880AHlhy-_3OxXNpT1w9L97Ih8vnxVvn_fp5v37er5___vo5oI9voJuz548_AQ&enc=deflate

### Steps to Reproduce

1. Create a chart with two grids.
2. In both grids draw a candlestick chart (use same data), use same configuration for the axis

### Current Behavior

The two charts differ even though, the configuration is the same.
The x-axis label ticks are misaligned, one is starting earlier than the other, making an alignment of grids impossible.

### Expected Behavior

3. Expected Behavior: Having two times the exact sime chart.

### Environment

```markdown
- OS: macOS Tahoe
- Browser: 153.0.3 (aarch64)
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Research direction

Open the linked candlestick-touch minimal reproduction and compare x-axis tick generation and placement between the two grids using the same candlestick data and axis configuration. Done means both grids render identical, aligned x-axis label ticks without one starting earlier than the other.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.