简体   繁体   English

如何在Javascript中更新实时图形

[英]How to update Real-time graph in Javascript

Is there a Library that generate the effect of this page? 是否有一个图书馆可以产生此页面的效果?

http://www.nytimes.com/interactive/2014/upshot/buy-rent-calculator.html?_r=2&abt=0002&abg=0 http://www.nytimes.com/interactive/2014/upshot/buy-rent-calculator.html?_r=2&abt=0002&abg=0

I assume (and I hope) that's JS but I dont know if it was made from scratch or if they are using any library in particular. 我假设(并且我希望)是JS,但我不知道它是从头开始制作的,还是他们特别在使用任何库。

I wish that when people enter an amount or moves the bar, the graph is updated. 我希望当人们输入金额或移动条形时,图形会更新。

Do I have to recreate the graph each time the bar moves? 栏每次移动都必须重新创建图形吗?

Hope you can help me 希望你能帮我

Data Driven Documents (D3) is what the page in question is using. 数据驱动的文档(D3)是所使用的页面。

Knockout.JS is also a useful library for updating of elements in response to user input. Knockout.JS还是一个有用的库,用于响应用户输入来更新元素。

These are both javascript libraries. 这些都是javascript库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM