使用 Google Visualization API 将条形图叠加到折线图之上
你好
有谁知道是否可以使用 Google Visualization API (在 Java 程序中)来绘制由叠加在折线图之上的条形图组成的图表。您可能会问为什么有人想要这样做?好吧,我想绘制一些日内交易信号。我目前正在使用 JFreechart 来绘制交易信号,但它没有很好的记录,这意味着您当你尝试做任何偏离常规的事情时,你只能靠自己。
提前致谢
PS:抱歉,如果我的网站对您来说速度很慢,但这是因为它托管在 Amazon EC2 微型实例,获取 每当出现流量高峰(请参阅 Google 抓取页面)时都会受到严格限制。单击图表将加载的链接时请耐心等待...最终 10 秒
Hello
Does anyone know if it's possible to use the Google Visualisation API (in a Java program) to plot a graph consisting of a bar chart overlayed on top of a Line chart. Why would anyone want to do this you might ask? Well, I have some day trading signals I would like to plot. I'm currently using JFreechart to plot trading signals but it's not very well documented which kinda means you're on your own when you try to do anything that strays from the beaten path.
Thanks in advance
PS: Sorry if my site is slow for you but this is due to the fact that it's hosted on an Amazon EC2 Micro Instance which gets severely throttled whenever traffic spikes (read Google crawls the pages) occur. Please be patient when you click on the link the chart will load.... eventually 10 seconds
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
谷歌图像图表工具可以做到这一点,但它将是一个静态图表(没有交互式数据点)。
试试这个:
这里:
http://code.google.com/apis/chart/image/docs /chart_playground.html
有很多文档,您应该能够以任何语言生成所需的 URL。
更新:
我错了;看起来 组合图表 最近已添加到 js API 。这能满足您的需要吗?
Google image chart tools can do this, but it will be a static chart (no interactive data points).
Try this:
here:
http://code.google.com/apis/chart/image/docs/chart_playground.html
There are a bunch of docs, and you should be able to generate the required URL in any language.
UPDATE:
I was incorrect; looks like Combo Chart was recently added to the js API. Does this do what you need?