热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

加载第三个谷歌图表时出现问题-Problemsloadingthethirdgooglechart

Iamtryingtoloadthreedifferentgooglechartsonpage,onegauge,onelineandonebarchart.Bu

I am trying to load three different google charts on page, one gauge, one line and one bar chart. But something fails when i try to implement the third chart. Sometimes the gauge chart and the line chart loads but not the bar chart, other times only the gauge and the bar chart loads. I cant get all three to load at the same time. Can i please get some help?

我试图在页面上加载三个不同的谷歌图表,一个仪表,一个线和一个条形图。但是当我尝试实现第三张图表时,某些事情就失败了。有时,仪表图和折线图加载但不加载条形图,有时只加载仪表和条形图。我不能让所有三个同时加载。我能帮忙吗?

Here is my code:

这是我的代码:




  
  
  
  
  

  



  

Logins in percentages

Logins last 30 days

Emails Received

1 个解决方案

#1


2  

I can't really answer why, but if you look at the documentation for loading libraries link, you see that they have updated how it's done. And it's quite differente from before.

我无法真正回答原因,但如果您查看加载库链接的文档,您会发现它们已经更新了它的完成方式。而且它与以前完全不同。




It looks like everything is still working in my applications, with the old loading style, but trying your scenario didn't work at all with the old style. Changeing it to the new one works.

看起来所有东西仍然在我的应用程序中工作,具有旧的加载样式,但尝试你的场景根本不适用于旧样式。将其更改为新的工作。

Jsfiddle

EDIT:

If anyone is interested I found out why my things are working. I'm working exclusively with Wrappers, and apparantly you should use google.load (the old way) and not the new google.charts.load.

如果有人有兴趣我发现了为什么我的东西工作。我只使用Wrappers,显然你应该使用google.load(旧的方式)而不是新的google.charts.load。

Source


推荐阅读
author-avatar
Berlinale
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有