简体   繁体   English

哪个是最适合测量报告 Web 应用程序的 javascript 小部件库?

[英]which is the most suitable javascript widget libraries for a measurement reporting web application?

I am starting a new web application for reporting measurements to engineers.我正在启动一个新的 Web 应用程序,用于向工程师报告测量结果。 The main components I need are:我需要的主要组件是:

  • grids网格
  • charts图表
  • maps地图

I have investigated the following javascript solutions:我调查了以下 javascript 解决方案:

  • ext js分机js
  • dojo道场
  • jquery查询

Dojo seems to be a good all-in-one solution but I am wondering why it is not widely used? Dojo 似乎是一个很好的一体化解决方案,但我想知道为什么它没有被广泛使用? Which widget libraries are suggested for each one of these components(grids. maps, charts) ?为这些组件(网格、地图、图表)中的每一个都推荐了哪些小部件库?

It typically depends on the nature of your application - is it intranet/enterprise or consumer?这通常取决于您的应用程序的性质 - 是内部网/企业还是消费者? High traffic, global websites have a different set of requirements compared to enterprise/intranet based apps, specially from a performance and footprint angle.与基于企业/内联网的应用程序相比,高流量的全球网站有一组不同的要求,特别是从性能和占用空间的角度来看。

Assuming yours is an enterprise/non-consumer-market app, both extjs and Dojo will do well given that you want datagrids and charts THey are similar in their approach to widgets (separation of data and view, encapsulation, widget classes, inheritance etc).假设您的应用程序是企业/非消费者市场应用程序,鉴于您需要数据网格和图表,extjs 和 Dojo 都会做得很好,它们在处理小部件的方法上是相似的(数据和视图的分离、封装、小部件类、继承等) . I suggest looking at the dojo nightly tests and extjs demos to ensure the library you choose has the features you need.我建议查看 dojo nightly 测试和 extjs 演示,以确保您选择的库具有您需要的功能。 Dojo nightly and demos: http://archive.dojotoolkit.org/nightly/dojotoolkit/ extjs: http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/ Dojo nightly 和演示: http : //archive.dojotoolkit.org/nightly/dojotoolkit/ extjs: http ://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/

extjs is commercially licensed (so it is somewhat more polished) whereas Dojo is full open-source driven by community effort. extjs 是商业许可的(所以它更精致),而 Dojo 是完全开源的,由社区努力驱动。 Dojo is actively being evolved though and dojo 1.7 has some nice enhancements like AMD While there is lot of documentation for Dojo, you should be ready to look at multiple places to get answers - dojocampus, docs, nightly tests, widget source code, and of course, stackoverflow :-) - I have found it fun to learn the whole system and also contribute back to the community, the good thing is the widget system is extensible with many extension points, so you can override and customize what you want. Dojo 正在积极发展,Dojo 1.7 有一些不错的增强功能,例如 AMD 虽然 Dojo 有很多文档,但您应该准备好查看多个地方以获得答案 - dojocampus、文档、夜间测试、小部件源代码和当然,stackoverflow :-) - 我发现学习整个系统并回馈社区很有趣,好消息是小部件系统可以通过许多扩展点进行扩展,因此您可以覆盖和自定义您想要的内容。

We use Dojo extensively in many departments in my large enterprise company and it has proved to be a good overall solution.我们在我的大型企业公司的许多部门广泛使用 Dojo,事实证明它是一个很好的整体解决方案。 Dojo is also backed and supported by IBM. Dojo 也得到 IBM 的支持和支持。 Also, Sitepen offers commercial support for Dojo and has key dojo committers on its team.此外,Sitepen 为 Dojo 提供商业支持,并在其团队中拥有重要的 Dojo 提交者。

JQuery is great for doing DOM manipulations, transitions etc and is lightweight and fast. JQuery 非常适合做 DOM 操作、转换等,并且轻量级和快速。 Jquery UI offers widgets and there are lot of plugins available - but you will need to figure out the licensing model as plugins are typically separately licensed and also be willing to thoroughly test and modify them/create new plugins/widgets to ensure they fit your need. Jquery UI 提供小部件,并且有很多可用的插件 - 但是您需要弄清楚许可模型,因为插件通常是单独许可的,并且还愿意彻底测试和修改它们/创建新的插件/小部件以确保它们适合您的需要.

http://square.github.com/crossfilter/ http://square.github.com/crossfilter/

Maybe this one?也许是这个? It just went open source some weeks ago.它几周前才开源。

Another free JavaScript libraries you could use :您可以使用的另一个免费JavaScript库:

Paper.js Paper.js

Raphael.js拉斐尔.js

Both of them should provide enough functionnalities for your needs.它们都应该为您的需求提供足够的功能。

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

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