开发者

Choosing a plotting library for web/browser application

I am looking for a plotting/graphing library (mostly to do lin开发者_运维技巧e plots) for my application. I have been looking at JavaScript APIs (like Google's) but I found them to be slowing down things at client side (I am plotting a quite large number of points). I also found that with client-side libraries, the performance was quite varied depending on the user's computer. With moving to a server-side library I would cut down on this variance, and would have more control over data flow (my data is in a MySQL database).

I have then looked at some PHP-based plotting libraries, but a lot of them seem to be "forgotten" (no new version for years). I have been eying pChart, but it has not had an update in almost two years.

First, what would you recommend: server-side or client-side approach?

Second, what library would you recommend. Paid libraries are definitely an option, as I don't mind paying for quality software that would cut down on my development time.

Thanks,


You can use the following libraries, all are client side:

  • Flot
  • Flotr
  • Flotr2
  • Highcharts, Creative Commons License for personal or non-profit projects
  • D3js, BSD License
  • Google chart tools, using the Google online API
  • Chart.js, MIT License
  • Gnuplot, "gnuplot licence"


Personally I use the server-side jpGraph for most of my charting work, and fusionCharts (commercial) for flash-based client-side charting, although I'm looking at openFlashCharts at the moment


You could take a look at JPGraph (serverside) or AMCharts (flash, clientside)


Which is recommended depends on what you want to do with the data. If you're looking to manipulate it on the client, then client side graphing is usually better.

What don't you like about the google charting stuff? (Besides the slowness)


I have used some JavaScript plotting libraries and right now, I am the fondest of flot. My use case is mainly line charts on the order of thousands of points, and flot seems to handle it fine. The main driver for a client-side plotting library is the interactivity it gives you. I've also used jqPlot, but I find flot more performant with large datasets.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜