简体   繁体   English

anychart - 创建带有饼图的地图图表

[英]anychart - Create a map chart with pie charts

Using anychart, Is it possible to create map chart and place on top of it pie charts (instead of bubbles)?使用 anychart,是否可以创建地图图表并在其上放置饼图(而不是气泡)?

For example, I need to show:例如,我需要显示:

France number of males - 1212 number of females - 2312 Italy number of males - 964 number of females - 981 So, I would like to see a map of the world and on top of France, I would like to see a pie (prefer the size to be relative to male+female in France) that shows red and green slices that represents the number of females/males ... and same on top of Italy.法国男性人数 - 1212 女性人数 - 2312 意大利男性人数 - 964 女性人数 - 981 所以,我想看一张世界地图,在法国之上,我想看一个馅饼(更喜欢大小相对于法国的男性+女性)显示红色和绿色切片,代表女性/男性的数量......在意大利的顶部也是如此。

Thx, Yohay谢谢,约海

Unfortunately, the current version of the library (v 8.9.0) doesn't support this possibility.不幸的是,库的当前版本 (v 8.9.0) 不支持这种可能性。 But we can suggest a few solutions.但我们可以提出一些解决方案。

Option 1. You can place the France map inside a donut chart and update the donut chart data by the click on the map bubbles.选项 1. 您可以将法国地图放置在圆环图内,并通过单击地图气泡来更新圆环图数据。 Like in the sample .就像在示例中一样

Option 2. You can place a pie chart simply next to the map.选项 2. 您可以在地图旁边放置一个饼图。

Option 3. You can show the pie chart in the custom HTML tooltip when the user hovers the map bubble.选项 3. 当用户将鼠标悬停在地图气泡上时,您可以在自定义 HTML 工具提示中显示饼图。 Like in the sample .就像在示例中一样

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM