Google Charts:仅显示某个国家/地区
我正在为新客户的帐户深入研究 Google Charts,并且想知道是否可以使用 Map API 仅显示某个国家/地区。 我已经设法设置了选定的区域,但我似乎找不到排除邻国的方法。 将不胜感激有关此主题的任何帮助或指导。
我所指的示例 - http://raphaeljs.com/australia.html (Don'但是不想使用这个库。)
I'm digging into Google Charts on the account of a new client, and was wondering if it's possible to show only a certain country using the Map API.
I've managed to set up selected regions but I can't seem to find a way to exclude neighboring countries.
Would appreciate any help or direction on this subject.
Example of what I'm referring to - http://raphaeljs.com/australia.html (Don't want to use this library however.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 Google Charts API 可以仅显示某个国家/地区。
方法是在选项变量中设置区域,并在绘制地图时使用选项变量。
查看 API 文档中提供的示例:http:// /code.google.com/apis/chart/interactive/docs/gallery/geomap.html#markersexample
It is possible to display only a certain country using the Google Charts API.
The way to do it is to set the region in the options variable and use the options variable when you draw the map.
Check out the example provided in the API documentation: http://code.google.com/apis/chart/interactive/docs/gallery/geomap.html#markersexample
我已经在我的网络应用程序中尝试了谷歌图表代码。但这对我不起作用。
Peckage
['Map']
正在运行使用
['Geomap']
包我的页面上没有显示任何内容。并使用包
['map']
,我只显示 1 个国家/地区图表。有什么我想念的吗?I have tried the google chart code with my web application. but this is not working for me.
Peckage
['Map']
is workingUsing
['Geomap']
package nothing is showing on my page.and using package
['map']
, i cat display only 1 country chart. Is there anything which i am missing.