谷歌可视化不能与本地文件一起使用 [英] Google visualization not working with local file

查看:113
本文介绍了谷歌可视化不能与本地文件一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用树图,但规模已经变黑了。 (相关问题: Google TreeMap填充值设置为_ABSTRACT_RENDERER_ID_1 )。在阅读后,我能够跟踪谷歌生成的代码的问题。它看起来像定义正确声明,但然后他们的网址看起来可能不适用于本地文件。也许因为我正在使用本地文件,请参阅下面的内容: url(file:/// D:/ ...)

I'm working with a treemap, but the scale is coming out black. (related question: Google TreeMap fill value set to _ABSTRACT_RENDERER_ID_1). After reading that I was able to track down the problem to the code that google generates. It looks like the definitions are being declared correctly, but then the url to them looks like maybe doesn't work with local files. Perhaps because I'm working with a local file, see below: url(file:///D:/... )

<defs>
<linearGradient gradientUnits="userSpaceOnUse" ...  id="_ABSTRACT_RENDERER_ID_2">
...
<linearGradient gradientUnits="userSpaceOnUse" ... id="_ABSTRACT_RENDERER_ID_3">
...
</defs>

...

<rect fill="url(file:///D:/.../Original.html#_ABSTRACT_RENDERER_ID_2)" ... ></rect>
<rect fill="url(file:///D:/.../Original.html#_ABSTRACT_RENDERER_ID_3)" ... ></rect></g>

我通过用 ...替换不相关的位来简化代码... 。我希望不会让任何人感到困惑。

I've simplified the code by replacing irrelevant bits with .... I hope that doesn't confuse anyone.

由于没有从服务器运行,这是一个问题吗?(编辑:我设置了IIS在我的机器上,它已被证实,缩放比例正确)

Is this a problem due to not running from a server? (edit: I set up IIS on my machine. It's confirmed, the scale renders correctly)

从我看到的在线示例中,不需要指定文件。

From what I have seen from online examples is that there is no need to specify the file.

<rect fill="url(#_ABSTRACT_RENDERER_ID_2)" ... ></rect>
<rect fill="url(#_ABSTRACT_RENDERER_ID_3)" ... ></rect></g>

是否有可能从我的本地文件系统获得此工作?

Is it possible to get this working from my local file system?

推荐答案

路径中不允许使用圆括号和单引号。即, '

Parentheses and single quotes are not permitted in the path. I.e, ( ) and '.

其他可接受的路径字符不会导致渲染树形图比例的问题: {}``& - ,. [] ^%$#@ @! ; (那些在那里是引号)

The other acceptable path characters do not cause a problem for rendering the treemap scale: {}`` &-,.[]^%$#@!; (Those are back quotes in there)

这篇关于谷歌可视化不能与本地文件一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆