Skip to content

Decimation docs missing requirement #10514

@MaxboDev

Description

@MaxboDev

Documentation Is:

  • Missing or needed?
  • Confusing
  • Not sure?

Please Explain in Detail...

After experimentation I found that decimation only works if the number of points on the chart is 4+ times the pixel width of the chart. You can see it here: https://codesandbox.io/s/react-17-forked-gt7qvw?file=/src/App.js. Resize the preview area and you'll see decimation kick in at widths below 500px.

This requirement isn't documented in list here: https://www.chartjs.org/docs/latest/configuration/decimation.html#requirements

I'm also not sure why this is a requirement. It makes sense for min-max decimation but when using lttb it doesn't seem necessary.

Your Proposal for Changes

It seems like this requirement should be documented here. Will create a PR for it.

Example

https://codesandbox.io/s/react-17-forked-gt7qvw?file=/src/App.js

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions