echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] Custom series skipping first data point

Open dovydasrudys opened this issue 3 years ago • 1 comments

Version

5.3.2

Link to Minimal Reproduction

https://tinyurl.com/22hb8uzv

Steps to Reproduce

  1. Create a chart with custom series type.
  2. Have dataset with 3 columns in it being datetime, datetime, string
  3. Make custom series use 0th and 1st columns for X axis and 2nd column for Y axis defining that in series.encode.x and series.encode.y respectively.
  4. series.renderItem should draw a bar for each datapoint starting form first datetime and ending at the second datetime.

Current Behavior

The first data point in dataset is skipped.

Expected Behavior

All data points in dataset should be rendered.

Environment

- OS: Windows 10
- Browser: Microsoft Edge Version 101.0.1210.32
- Framework: -

Any additional comments?

I have found a workaround which fixes the issue, but I'm not sure why there's an issue in the first place. Please check line no. 11 and uncomment it to see the bug fixed.

dovydasrudys avatar May 10 '22 09:05 dovydasrudys

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] avatar May 09 '24 21:05 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar May 17 '24 21:05 github-actions[bot]