Dan Vanderkam
Dan Vanderkam
_From [[email protected]](https://code.google.com/u/115150956357277230783/) on March 22, 2012 14:48:03_ As a workaround, you could always do the XHR yourself and pass the (non-error) result to dygraphs. **Status:** Accepted
_From [[email protected]](https://code.google.com/u/101081750997452193114/) on December 04, 2012 04:20:25_ **Labels:** Component-Data
Another way to do this might be to make the dygraph object `then`able: ```js g = new Dygraph(div, 'path/to/non-existent.csv'); g.then(() => console.log('success!')) .catch(e => console.error(e)); ```
Does the "synchronize" demo show what you're looking for? There's a "selection" toggle. http://dygraphs.com/tests/synchronize.html
_From [[email protected]](https://code.google.com/u/115719069660207256565/) on August 24, 2012 01:42:17_ This is really an enhancement request, but I forgot set that value, if it is even possible for me to do that.
_From [danvdk](https://code.google.com/u/danvdk/) on August 25, 2012 13:32:32_ I'm going to interpret this as "select closest point instead of closest x-value". This is a reasonable request. There's already a Dygraph.prototype.findClosestPoint method,...
_From [[email protected]](https://code.google.com/u/115719069660207256565/) on August 26, 2012 05:50:53_ @danvdk thanks for looking into this. Just to be totally clear, what I am really interested in, is to always show the value...
_From [[email protected]](https://code.google.com/u/117368089440832704394/) on July 17, 2013 13:49:34_ I would need the other option. Not selecting the closest point from each series (while still highlighting all series at the same time),...
I'd imagined something like: ``` javascript { selectMode: 'closest-x' } ``` vs. ``` javascript { selectMode: 'euclidean' } ```
Alternatively, you could imagine making this a callback and having named functions for presets: ``` javascript { selectMode: Dygraph.findClosestByX } ``` ``` javascript { selectMode: Dygraph.findClosestByEuclidean } ``` I'd be...