Skip to content

[Feature] dataZoom component add an option to disable downsampling #20182

Open

Description

@zkycaesar

What problem does this feature solve?

I find that dataZoom always do a downsampling, but the result may not always accurate.

The container div of my chart is resizable. When I resize it, the dataZoom will change. See pictures below:

image
image
image

When the chart width grows, the dataZoom switch between two different patterns.

This could be confusing for my users. I assume this is caused by the downsampling algo. So I would like to have a option to toggle the downsampling.

What does the proposed API look like?

Add an option to toggle dataZoom downsampling.

Activity

  1. added
    en
    pending
    on Jul 22, 2024
  2. Ovilia commented on Jul 22, 2024

    @Ovilia
    Contributor

    Please try with different sampling methods and see which one can preserve the pattern best. Due to performance consideration, sampling can't be disabled for now.

  3. added and removed
    pending
    on Jul 22, 2024
  4. zkycaesar commented on Jul 22, 2024

    @zkycaesar
    Author

    Please try with different sampling methods and see which one can preserve the pattern best. Due to performance consideration, sampling can't be disabled for now.

    @Ovilia I don't see any sampling option in dataZoom. Are you saying that series and dataZoom are using the same samping method? But I don't want my series to be downsampled.

    Anyway, I plan to implement my own dataZoom by using graphic.

  5. Ovilia commented on Jul 22, 2024

    @Ovilia
    Contributor

    Sorry that I didn't see carefully. It seems that dataZoom only uses a fixed interval when deciding data to show. There may not be an easy way to apple the series's sampling method to the dataZoom.

  6. added this to the TBD milestone on Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions