将dc.js与node.js结合使用 [英] Using dc.js with node.js

查看:89
本文介绍了将dc.js与node.js结合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将dc.js与node.js一起使用,如果可以,怎么办?我想提供一个示例,但是很难看清如何开始,并且似乎没有可用的在线示例。

解决方案当文档存储为mongo时,我已经使用nodejs和dc实现了完整的应用程序。 nodejs服务器用于从mongo db获取数据并将其用作api。然后,Dc.js使用此数据来绘制图表。



我将写一篇有关它的博客文章,并在几天后发布。同时,如果您还有其他疑问,请告诉我。



已更新:
这是博客文章的链接如果您觉得有用,请共享。
https://anmolkoul.wordpress.com/2015/06/05/interactive-data-visualization-using-d3-js-dc-js-nodejs-and-mongodb/


Is it possible to use dc.js with node.js, and if so how? I would like to provide an example, but it's hard to see how to start on this, and no working examples seem to be available online.

解决方案

In short, yes. I have implemented a full fledged app using nodejs and dc while the document store was mongo. The nodejs server is used for fetching the data from mongo db and serving it as api. Dc.js then uses this data for rendering charts.

I will write a blog post about it and post it in a couple of days. In the meantime do let me know if you have any more queries.

Updated: Here is the link to the blog post.Do share if you find it useful. https://anmolkoul.wordpress.com/2015/06/05/interactive-data-visualization-using-d3-js-dc-js-nodejs-and-mongodb/

这篇关于将dc.js与node.js结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆