score:1

Accepted answer

yAxis: { title: { text:Yaxis } },

score:1

yAxis: {
         title: {
                  text:Yaxis 
                 }
       },

The above code works for me. Make sure If RadioButtonList1.SelectedItem.Value = 1 Then this if condition is satisfied. I tried following code:

var Yaxis = 'default';
function draw(d) {

       var testarray = JSON.parse(a);
       var testarray1 = JSON.parse(a1);
       var testarray2 = JSON.parse(a2);
        if(d == 1)
        {
            Yaxis='Fruit Eaten..';

        }

        else  if(d == 2)
        {
           Yaxis='Fruit not  Eaten..';
        }
        else 
        {
            Yaxis='Your Default value here...';
        }


       }
}

Related Query

More Query from same tag