Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
events: {
        drilldown: function (e) {
         if (!e.seriesOptions) {
var Fruitsname= e.point.name;
//var Fruitsname='Fruits';
   drilldowns = {
Fruitname:{
//  'Fruits': {


              name: 'Fruits',
              data: [
              ['Apples', 5],
              ['Oranges', 7],
              ['Bananas', 2]
                ]
              },
           }
        }
      }
  }


I got click event on drill down using e.point.name, but string name under drill down is taking as in double quotation but it required string in single quote .
I tried using alert and console.log but it is showing without quotes,In breakpoints it showing in double quotes.I have commented line 'Fruits' it works as static value.

Any suggestion or help will be appreciated
thanks in advance..
Posted

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