在 Rails 中构建分析仪表板
我正在寻找构建一个 Rails 应用程序来对我公司收集的数据进行内部报告(制作图表或一般数据可视化、创建报告、显示统计分析等)。
什么对构建这个有帮助?例如,我应该熟悉的任何 Rails/Javascript 库,或者我应该查看的任何开源分析应用程序或现有仪表板工具?
I'm looking to build a Rails app to do internal reporting (make charts or general data visualizations, create reports, show statistical analyses, etc.) on data my company collects.
What would be helpful in building this? For example, any Rails/Javascript libraries I should be familiar with, or any open source analytics apps or existing dashboard tools I should look at?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Google Visualization API 是在应用程序中获取图表的简单方法。您还可以查看 Protovis 以及可能的 InfoVis 工具包。
Google Visualization API is an easy way to get charts in your application. You could also have a look at Protovis and possibly InfoVis Toolkit.
事实上,我现在正在做几乎完全相同的事情,所以我知道你正在经历什么。对于 ruby on Rails,有一种叫做 Garb 的宝石。到目前为止,它对我来说效果很好。示例:
这是一个简单/快速/肮脏的示例,但它有效;您可以在此处获取有关指标和维度的信息:
http: //code.google.com/apis/analytics/docs/gdata/gdataReferenceDimensionsMetrics.html
和 Garb 信息位于此处:
http://www.viget.com/extend/introducing-garb-access-the-google-analytics-data -export-api-with-ruby/
我知道报告确实令人沮丧,所以祝您好运!
I'm actually doing almost the exact same thing right now, so I know what you are going through. For ruby on rails, there's a gem out there called Garb. So far it has worked pretty well for me. Example:
This is a simple/quick/dirty example, but it works; you can get the information you need about the metrics and dimensions here:
http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDimensionsMetrics.html
and Garb information here:
http://www.viget.com/extend/introducing-garb-access-the-google-analytics-data-export-api-with-ruby/
I know that reporting is really frustrating, so I wish you the best of luck!
如果您有大量数据,请不要忘记创建数据摘要。例如,计算一天的所有页面浏览量并将它们存储在“日”表左右。否则你的应用程序将变得非常反应迟钝。不要忘记 Ruby 1.8 在统计和数学方面很糟糕(慢)
Don 't forget to create summaries of your data if you have lots of data. For example calculate all pageviews for a single day and store them in a Day table or so. Otherwise your app will become very unresponsive. Dont forget that Ruby 1.8 sucks for stats and math (slow)