Real time line graph with nvd3.js

前端 未结 1 869
慢半拍i
慢半拍i 2020-12-13 13:22

I am trying to create a real time graph using nvd3.js which would be updated periodically and with the impression that the data is processed in real time.

For now I

1条回答
  •  醉梦人生
    2020-12-13 13:46

    You probably want to look at: D3 Real-Time streamgraph (Graph Data Visualization),

    especially the link of the answer: http://bost.ocks.org/mike/path/

    In general, I see two ways to deal with the vertical transition problem:

    • oversampling having some linear interpolation between the real point, and the smaller the interval between points, the more "horizontal" the vertical transition will look (but the drawback is that you get a lot of "false" points, that may be inacceptable depending on the use of the chart)
    • extend the chart by adding at the end, and translate the chart on the left, making sure the still available left part is not shown until you remove it (clipping it or doing any other trick), that's best, and the solution mentioned above does that

    0 讨论(0)
提交回复
热议问题