在从鼠标悬停到地图的STATE获取DATA时,需要有关饼图转换的帮助

时间:2015-03-08 07:48:17

标签: javascript jquery d3.js

我需要一些关于D3js关于连接数据的帮助。

这是我正在研究的那个::

http://jsfiddle.net/2emnt8m3/16/

该值应仅从鼠标悬停以生成PIE图表的状态中获取。但我在接受数据时面临一些困难 从鼠标悬停,任何帮助将不胜感激。

dataSet = [
  {
    "label": "Assault on women ",
    "value": 64131,
    "color": "#1ee675"
  },
  {
    "label": "Dowry Deaths",
    "value": 57618,
    "color": "#44b9ae"
  },
  {
    "label": "Cruelty",
    "value": 18812,
    "color": "#7b37c0"
  },

  {
    "label": "Dowry Prohibition Act",
    "value": 114384,
    "color": "#bca349"
  },
  {
    "label": "Immoral Traffic (P) Act",
    "value": 67706,
    "color": "#8b6834"
  },
  {
    "label": "Importation of Girls",
    "value": 36344,
    "color": "#cc9fb0"
  },

  {
    "label": "Kidnapping and Abduction",
    "value": 36344,
    "color": "#cc9fb0"
  },
  {
    "label": "Total Crimes against Women",
    "value": 36344,
    "color": "#cc9fb0"
  },

  {
    "label": "INSULT TO MODEST",
    "value": 32170,
    "color": "#7c9058"
  }
];

以下是我看过的一个例子: http://simonbjohnson.github.io/Ebola_Dashboard/

Map Hover Line chart Generate

0 个答案:

没有答案