Commit bb097be7 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix find closest data point - #154

parent f10e6c7a
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment