Skip to content

Commit

Permalink
select data bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jjppof committed Aug 18, 2020
1 parent 4a1a9e0 commit ec3eaa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ChartJSEnhancements.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export default class ChartJSEnhancements {
let j = 0;
for (let i = 0; i < this.datasets.length; ++i) {
let dataset = this.datasets[i];
for (let index = 0; index < this.datasets.length; ++index) {
let datum = this.datasets[index];
for (let index = 0; index < dataset.data.length; ++index) {
let datum = dataset.data[index];
const is_inside = datum.x <= x_min_max_data.max && datum.x >= x_min_max_data.min &&
datum.y <= y_min_max_data[dataset.yAxisID].max && datum.y >= y_min_max_data[dataset.yAxisID].min;
datum.index = index;
Expand Down
Loading

0 comments on commit ec3eaa8

Please sign in to comment.