alexcode / vue2vis

A Vuejs 2 adapter for Visjs
MIT License
217 stars 59 forks source link

How to create Streaming Data Graph #10

Closed erhansaydam closed 6 years ago

erhansaydam commented 6 years ago

Hi, I would like to generate streaming data graph as in the official samples: http://visjs.org/examples/graph2d/15_streaming_data.html (Static selected)

How can I create such a graph with vue2vis graph2d component. In the official sample, it uses a renderStep function where it invokes a getWindow function to proceed. But vue2vis graph2d component does not involve a getWindow method.

Could you provide help to build a streaming data example?

Thank you.

Best regards, Erhan Saydam

alexcode commented 6 years ago

I've never did a streaming graph this way but it should be doable. And yes, we did forget to add getWindow and setWindow. If you feel like adding them it could be nice, otherwise I'll try to do that asap.

erhansaydam commented 6 years ago

Yes, make sure.

There are already setWindow method ready. I have added getWindow method to graph2d component and committed.

Best regards.

alexcode commented 6 years ago

@erhansaydam, do not hesitate to send a pull request ;)