Browse Source

Fix find closest data point - #154

pull/183/head
Masayuki Tanaka 11 years ago
parent
commit
bb097be738
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

@ -1787,10 +1787,10 @@
// Get candidates that has same min and max index
candidates = [];
if (values[min].x) {
if (values[min].x || values[min].x === 0) {
candidates = candidates.concat(findSameXOfValues(values, min));
}
if (values[max].x) {
if (values[max].x || values[max].x === 0) {
candidates = candidates.concat(findSameXOfValues(values, max));
}

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save