用于在本地计算机中绘制数据的 Google Chart API
前言:
我是一名系统程序员(刚刚开始作为软件工程师的职业生涯),所以不太擅长@网络脚本语言,尽管我刚刚开始学习它们。
问题概要:
我想编写一个应用程序来跟踪我正在做的事情并记录它,以便我分析我的时间花费模式,并可以帮助我随时进行分析。
问题描述:
我的计划是编写一个应用程序,该应用程序位于后台并跟踪桌面上的活动窗口(每秒)并将此数据存储在 SQLite 数据库中。但为了更具吸引力(因为我想与其他人分享这个应用程序),我希望有一个功能,用户可以分析他感兴趣的任何时期之间记录的数据。为此,我希望用户能够使用记录的数据生成图表和图形。
为此,我考虑使用浏览器作为 UI 并使用 Google Visualization API 来进行绘图工作。那么,是否可以使用 Google Visualization API 来绘制本地数据?如果是这样,请指导我如何继续...(如前所述,我是一名系统程序员,具体来说是 C 程序员,刚刚开始在空闲时间学习 Web 脚本)
做出这些决定的原因:< /strong>
(1) 记录我正在做的事情的应用程序将使用 C/C++ 语言 - 因为我是系统程序员,并且对它们感到非常满意。并且可以轻松快速地完成它。
(2) SQLite - 非常小,可以轻松嵌入到我的应用程序中,并且是开源的。我认为许多 Web 脚本语言(例如 PHP、Python)都有访问 SQLite DB 的接口。
(3) UI 浏览器 - 希望用户能够轻松使用浏览器,并且我不会在 UI 方面做太多事情。由于主 UI 将是浏览器,而 Google Visualization API 将进行绘图。我可能要做的就是写几行脚本(我在最后一点吗???)
对我的设计决策发表评论,以及任何教我如何做到这一点的教程(或指针)将受到高度赞赏。 ..
谢谢
MicroKernel :)
PS: 想法受到 Nathan Bauch 的回复启发到 https://stackoverflow.com/questions/161590/how-do-you-track -your-time
@Nathan Bauch,非常感谢你提出了这样一个绝妙的主意。 \米/
Preface:
I am a system programmer (who has just started his career as a S/W Engineer), so not very good @ web scripting languages, though I have just started learning them.
Problem Synopsis:
I want to write an app that keeps track of what I am doing and records it allowing me to analyse my time spending pattern and could help me analyse whenever I want.
Problem Description:
My plan is to write an app that sits in the background and keeps track of active window on my desktop (every second) and stores this data in a SQLite database. But to be more appealing (As I want to share this app with others), I want to have a feature where the user can analyse data recorded between any period of his interest. For this I want the user to be able to generate charts and graphs using the recorded data.
For this I thought of using browser for UI and Google Visualization APIs for plotting work. So, is it possible to use Google Visualization APIs to plot local data? if so, plz guide me on how to continue... (As told before, I am a system programmer, C programmer to be specific, who has just started learning web scripting in free time)
Reasons for these decisions:
(1) App that records what I am doing will be in C/C++ - B'coz I am system programmer and am very comfortable with them. And can get it done easily and quickly.
(2) SQLite - Very small and can easily be embedded in my app, and is Open Source. And I think many web scripting langs like PHP, python have interfaces to access SQLite DB.
(3) Browser for UI - Hope it will be easy for user to use browser, and I will not have much to do regarding UI. As main UI will be browser and Google Visualization APIs will do plotting. All I might have to do is write few lines of script (Am I right here on the last point???)
Comment on my design decision and any tutorials(or pointers) which teaches me on how to do this will be highly appreciated...
Thank You
MicroKernel :)
PS: Idea inspired by Nathan Baulch's reply to https://stackoverflow.com/questions/161590/how-do-you-track-your-time
@Nathan Baulch, Thank you so much for such a brilliant idea. \m/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会将浏览器嵌入到应用程序中(您想用 C# 编写)
并使用 jquery 绘制图表。您可以在这里找到更多信息:http://www.flotcharts.org/
I would embed browser to app (you want to write in C#)
and use jquery plotting as chart. You will find more info here: http://www.flotcharts.org/