question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data decimation doesn't work.

See original GitHub issue

Hi there. Please help, how to make decimation work? I have 500+ points. Decimation works only if I pass redraw prop (or by toggling enabled off and then on in react devtools).

decimation: {
  enabled: true,
  algorithm: 'lttb',
  samples: 12,
  threshold: 12,
},

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
mateogianoliocommented, Aug 27, 2021

The dataset object must be mutable. The plugin stores the original data as dataset._data and then defines a new data property on the dataset.

Because of how react works with immutable props, I believe this is where it fails. If someone has a working example of decimation with this package, do tell 😃

1reaction
dangreencommented, Oct 26, 2021

@hydrognomik @mateogianolio Hi. Would you please try the latest version of react-chartjs-2?

Read more comments on GitHub >

github_iconTop Results From Across the Web

chart.js v3 - data decimation not working with zoom plugin
In chart.js v3 data decimation doesn't work when zooming in via the zoom plugin. Initially at 100%, data decimation works, but if I...
Read more >
Data Decimation not working · Issue #1383 - GitHub
Did anybody get this to work? I am having the same problem. My data gets rendered but decimation is not applied.
Read more >
Can't Decimate Models in ZBrush - Polycount
I'm trying to decimate my models, but every time I hit "Pre-Process Current" in Decimation Master, it doesn't do a damn thing.
Read more >
Data Decimation - Chart.js
Data Decimation. The decimation plugin can be used with line charts to automatically decimate data at the start of the chart lifecycle.
Read more >
Decimation - dspGuru
Yes. Decimation involves throwing away samples, so you can only decimate by integer factors; you cannot decimate by fractional factors. (However, you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found