简体   繁体   English

散点图上的饼图

[英]Pie Chart on a Scatter Plot

https://www.dropbox.com/s/mcmzn0t0hz4s2x7/pieChartScatterPlot.png https://www.dropbox.com/s/mcmzn0t0hz4s2x7/pieChartScatterPlot.png

Hi. 你好 Please have a look at the above link. 请查看上面的链接。 Its a scatter plot basically. 它基本上是一个散点图。 But, these are not just the dots. 但是,这些不仅仅是点。 Instead of dots, we have pie charts(drill down). 代替圆点,我们有饼图(向下钻取)。 ie, the dots are further divided into another category thus forming a pie chart. 即,将点进一步划分为另一类,从而形成饼图。 Please tell me if this type of chart can be created using any javascript library. 请告诉我是否可以使用任何JavaScript库创建此类图表。 If yes, then how? 如果是,那怎么办? Please be specific. 请具体说明。 Thanks in advance. 提前致谢。

I'd suggest you find any graphing library that can support both scatter and pie charts, and allows for custom event handlers (d3 is good for this) http://d3js.org/ . 我建议您找到可以同时支持散点图和饼图并允许自定义事件处理程序的图形库http://d3js.org/ Then show just the scatter graph, on click of a node popover the relevant pie chart 然后仅显示散点图,单击节点时会弹出相关的饼图

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

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