简体   繁体   English

使用Node.js作为图表的数据源

[英]Use Node.js as data source for highcharts

I am newbie with nodejs, now i want to use node js as data source (before this i am using ajax to request new data, but it's not good as node js) for my line chart which make by highcharts. 我是nodejs的新手,现在我想将节点js用作数据源(在此之前,我正在使用ajax请求新数据,但它不如节点js更好)是由highcharts制作的折线图。 Anyone please help me to point me to right direction, i don't know where to go that can help me to do this. 任何人都可以帮助我为我指明正确的方向,我不知道该去哪里可以帮助我做到这一点。

I think You've mixed some things together. 我认为您已经把一些东西混在一起了。 Ajax is for sending HTTP requests from client side to server, but NodeJS is server side technology which can generate data for your charts (like PHP, ruby etc.). Ajax用于将HTTP请求从客户端发送到服务器,但是NodeJS是服务器端技术,可以为您的图表生成数据(如PHP,ruby等)。 It depends on your needs, but ajax is the simplest way to retrieve the data from server. 这取决于您的需求,但是ajax是从服务器检索数据的最简单方法。 Another option is to choose alternative technology like Socket.io. 另一个选择是选择替代技术,例如Socket.io。

As for start I suggest you to take a look at these links: 首先,我建议您看一下以下链接:

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

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