5 ms·
> In this case, it's almost ridiculous that live data (and examples of such) aren't front and center. The liveliness of the data doesn't have much to do with t
by bradhe 10y ago
> In this case, it's almost ridiculous that live data (and examples of such) aren't front and center.
The liveliness of the data doesn't have much to do with the library itself. The question you should ask yourself is "how do you update data within a chart?"
- SwellJoe 10y agoI have no idea what action you're suggesting I should take. Obviously I've asked myself that question, which is why I brought it up. Is this some sort of hacker koan? I'm pointing out that very few charting library authors seem to have any interest in providing a clear path for supporting live data (by that, I mean charts that update in realtime when new data arrives). It should theoretically be automatic in a library based on react; updating the data that backs the ViewModel should update the View. But, I don't see any examples of that or mention of that capability in a cursory read of the site, or how it is handled when data is updated (like is it smoothly animated, does it just hop to the new status, or does it not do anything at all, breaking the reactive pattern and making building it for react a pointless exercise?).
- ycombinatorMan 10y agohttp://jsfiddle.net/ancpedz4/1/ http://jsfiddle.net/ancpedz4/1/ Click the word clicker, you will see what happens.
- SwellJoe 10y agoSo, a re-draw. That's disappointing. Thanks for the example! That's really all I'm asking/wishing for here...if the library handles live data, show me how. If it doesn't handle it without a lot of trouble, or in ways that look clunky, I know it's not the right library for my projects. It's nice to be able to rule things out quickly.
- tptacek 10y agoThe redraw is only problematic because of the stupid animation, right? If you had done the same chart by hand in d3, you'd still be incurring redraws.
- SwellJoe 10y agoYeah, the animation restarting is awful. Ideally, it'd morph to the new values, or tick by on a timeline, depending on the type of data. The restarting animation is the worst action I can think of, aside from not updating, at all. I didn't see any configuration for that, but, it's probably possible to avoid it relatively trivially. There are a few charting libraries with explicitly covered live data support; I'm just surprised it's a complete afterthought for a library that uses React (which I've always thought of as being designed explicitly for providing a good abstraction for a "live" View and ViewModel).
- sebg 10y agoD3 - checkout the last "transition / animation" on https://bost.ocks.org/mike/path/ https://bost.ocks.org/mike/path/