Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Visualize gaps in charts without needing to explicitly specify nulls in the data #20289

Open
jwwlai opened this issue Aug 23, 2024 · 4 comments
Labels
en This issue is in English new-feature

Comments

@jwwlai
Copy link

jwwlai commented Aug 23, 2024

What problem does this feature solve?

Be able to visualize gaps in charts without needing to specify nulls in the data, especially in Timeseries type charts and the interval can be given.

What does the proposed API look like?

It would be similar to Highcharts's gap feature given the "gapSize" and "gapUnit" option

https://api.highcharts.com/highstock/plotOptions.series.gapSize

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Aug 23, 2024
@helgasoft
Copy link

By "Timeseries type charts" I assume you mean candlestick.
Using candlestick with xAxis.type category requires indeed having nulls for missing data,
But using it with xAxis.type time, does not need nulls - Demo
image

@Ovilia
Copy link
Contributor

Ovilia commented Aug 26, 2024

This feature is called broken-axis and is expected to be introduced in ECharts 6.0, which is expected to be released earlier next year. Please follow #19459 .

@Ovilia Ovilia removed the pending We are not sure about whether this is a bug/new feature. label Aug 26, 2024
@jwwlai
Copy link
Author

jwwlai commented Aug 26, 2024

By "Timeseries type charts" I assume you mean candlestick. Using candlestick with xAxis.type category requires indeed having nulls for missing data, But using it with xAxis.type time, does not need nulls - Demo image

Thanks for your reply. I would need it for just the basic chart types like "line" and "bar", not "candlestick" unfortunately. By "timeseries", I mean that the x-axis data would just be timestamps. And the other critical part of this feature request, is to not be required to specify the nulls in the data arrays.

@Ovilia
Copy link
Contributor

Ovilia commented Aug 27, 2024

The broken-axis will support line / bar series, as long as candlestick. It supports numberic axis like value, time, and log. Category axis is not supported.

You don't need to add null in data, but you do need to define the range of the break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature
Projects
None yet
Development

No branches or pull requests

3 participants