Skip to content

Commit

Permalink
Using existing function for cleaning decimated data
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-DF committed Apr 12, 2021
1 parent 1efe370 commit 0f94e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/plugin.decimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export default {
let {start, count} = getStartAndCountOfVisiblePointsSimplified(meta, data);
if (count <= 4 * availableWidth) {
// No decimation is required until we are above this threshold
dataset._decimated = data.slice(start, start + count);
cleanDecimatedData(chart);
return;
}

Expand Down

0 comments on commit 0f94e81

Please sign in to comment.