Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
At first, a YEAR radio button is selected, after that when mouse hover to a particular STATE , then based on that YEAR:: Data pop up according to the mouse hover on STATE and then generate a PIE chart on that data pop up.

here i s the one iam working on::

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

The value should be taken only from the mouse hover state. but i am having some difficulty, Any help would be appreciated.
CSS
   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"
  }
];
Posted
Updated 7-Mar-15 18:23pm
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900