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] handling binning/grouping of bar time series #16177

Closed
th1under opened this issue Dec 6, 2021 · 1 comment
Closed

[Feature] handling binning/grouping of bar time series #16177

th1under opened this issue Dec 6, 2021 · 1 comment
Labels
duplicate en This issue is in English new-feature

Comments

@th1under
Copy link

th1under commented Dec 6, 2021

What problem does this feature solve?

In the current version of Echarts, when xAxis type is "time" and series type is bar, time series data is not grouped together. The expected behaviour is to group the adjacent data when the binning change so that we can always see bars that have a reasonable width and do the further analysis on them.
Suppose we have 6 timeseries data on 03/07/1998, 04/07/1998, 05/07/1998 06/07/1998, 18/08/1998, 18/09/1999. In the current version (5.2.0), when we zoom-out, the width of the bars will be so small that they're undifferentiatable and even they tend to be displayed as only one bar.
Animation4

Codesandbox link is provided below:
https://codesandbox.io/s/echarts-zoomin-timeseries-sktvb?file=/src/App.js

What does the proposed API look like?

When we have some adjacent time series data bars and when we zoom-out, series data can be grouped so that they create a bigger bar which consists of these adjacent bars.
An example is provided below from FusionTime:

Animation5

Here is the codesandbox of the example provided:
https://codesandbox.io/s/fusion-charts-forked-8iv04?file=/src/chart.js

@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. waiting-for: community labels Dec 6, 2021
@Ovilia
Copy link
Contributor

Ovilia commented Dec 7, 2021

Please follow #16099.

@Ovilia Ovilia closed this as completed Dec 7, 2021
@plainheart plainheart removed waiting-for: community pending We are not sure about whether this is a bug/new feature. labels Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate en This issue is in English new-feature
Projects
None yet
Development

No branches or pull requests

3 participants