非英文字符在谷歌图表标签? [英] non-english chars in google charts label?

查看:144
本文介绍了非英文字符在谷歌图表标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

非英文字符可在Google图表中使用标签/传奇

Does non-english characters work in google charts labels/legends ?

这个作品,图例很好:

var chart_url = 'http://chart.apis.google.com/chart?' + 'cht=bvs' + ...some other stuff... + '&chdl=Lowest price|Average price';

这不起作用,图例根本不显示:

This doesn't work, the legends don't show at all:

var chart_url = 'http://chart.apis.google.com/chart?' + 'cht=bvs' + ...some other stuff... + '&chdl=L' + unescape("%E4") + 'gsta pris|Genomsnittligt pris';

任何想法?提前感谢!

/ toby

编辑-----------

这些作品都不适用:

'& chdl =Lägstapris | Genomsnittligt pris'

'&chdl=Lägsta pris|Genomsnittligt pris'

'& chdl = L& auml; gsta pris | Genomsnittligt pris'(没有后面的空格)

'&chdl=L& auml;gsta pris|Genomsnittligt pris' (without the space after &)

'& chdl = L%E4gsta pris | Genomsnittligt pris'

'&chdl=L%E4gsta pris|Genomsnittligt pris'

%E4 ==äurlencoded。

%E4 == ä urlencoded.

推荐答案

我的猜测是,但您必须对其进行urlencoding( see urlencode())。

My guess is that most letters will work, but you have to do the equivalent of urlencoding them (see urlencode()).

这篇关于非英文字符在谷歌图表标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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