用 Java 创建数据可视化/分析仪表板
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14931394/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Creating a data visualization/analytics dashboard in Java
提问by LittleLebowski
I'm developing a website where I need to show a dashboard with data from the backend. The data visualization look and feel needs to be like Google Analytics dashboard.
我正在开发一个网站,我需要在其中显示一个带有后端数据的仪表板。数据可视化的外观和感觉需要像 Google Analytics 仪表板。
I'm wondering if there's any free API/library/project that lets me do it. Also the project is in Java (SpringMVC).
我想知道是否有任何免费的 API/库/项目可以让我这样做。该项目也在 Java (SpringMVC) 中。
Any guidance /help is appreciated. Thanks a lot.
任何指导/帮助表示赞赏。非常感谢。
回答by Fafhrd
Given Google analytics layout, I would suggest you to use Twitter bootstrap because :
鉴于 Google 分析布局,我建议您使用 Twitter 引导程序,因为:
- you will be at ease for managing grid layout given the mechanics of twitter bootstrap
- you can have a UI quick fastly with the default css (and then customize css depending on the need),
- you will have a portable CSS for responsive design (I suspect that in the case of such a monitoring tool, when your users will be statisfy with a classic desktop browser version, they'll call for a tablet or smartphone versions that you would already have :-))
- 鉴于 twitter bootstrap 的机制,您将轻松管理网格布局
- 您可以使用默认 css 快速获得 UI(然后根据需要自定义 css),
- 您将拥有用于响应式设计的便携式 CSS(我怀疑在这种监控工具的情况下,当您的用户对经典桌面浏览器版本感到满意时,他们会要求您已经拥有的平板电脑或智能手机版本:-))
Twitter bootstrap : http://twitter.github.com/bootstrap/
Twitter 引导程序:http: //twitter.github.com/bootstrap/
As for the data visualization, I strongly encourage you to go for d3.js (http://d3js.org/), because you can generate a wide and clean variety of graphs (see examples: https://github.com/mbostock/d3/wiki/Gallery).
至于数据可视化,我强烈建议你使用 d3.js ( http://d3js.org/),因为你可以生成各种各样的图表(参见示例:https: //github.com/ mbostock/d3/wiki/画廊)。
You can start by looking at SpringMVC and bootstrap examples provided at : https://github.com/priyatam/springmvc-twitterbootstrap-showcase
您可以先查看以下提供的 SpringMVC 和引导程序示例:https: //github.com/priyatam/springmvc-twitterbootstrap-showcase