javascript - D3 Multiline Chart with transition -
i’m working on pure d3 implementation of multiline chart transitions. works quite little exception. using transitions line drawn path seems quite difficult. found solutions using clipping paths , on , combined warning, these solutions quite performance consuming.
is there easier solution of showing progress in multiline chart real point point drawing (at least in users perception).
you can inspect current code under http://bl.ocks.org/m99coder/136db7134df6fdc3e3cf
with kind regards marco
update 2015-07-14 14:14:00 cet
i refactored parts of code: http://bl.ocks.org/m99coder/8a9fab35b8f47ab8844c. unfortunately couldn’t work smooth given tutorial link (http://bost.ocks.org/mike/path/). advices? maybe it’s related defined range, avoids values outside of „viewport“.
update 2015-07-14 14:57:00 cet
getting closer not perfect yet: http://bl.ocks.org/m99coder/136db7134df6fdc3e3cf/a53f06a0334bada96e1f892c886c5b68fe3c0a05. looks path hopping right after smooth transition left.
update 2015-07-14 17:37:00 cet
harmonizing durations of updates , transitions didn’t solved too. it’s hopping left: http://bl.ocks.org/m99coder/8a9fab35b8f47ab8844c/cd25a9d33839f52974780b1c142922cbbf8f64f4
i managed work expected. timing issue. data modified before transition done. new approach uses callback informed when transition on , shifts data afterwards.
http://bl.ocks.org/m99coder/54d6e0130064c699e6e4/06149dd1ab22cebf5b307bab3ec90079e356bce9
Comments
Post a Comment