Labels String From Asp.net Does Not Distributed In The Highchart
I try to make a pie highchart with data from Asp.Net and  when i run the program the labels are  not distributed individually,i use the same method  for data array and i didn't hav
Solution 1:
It is happening because you are assigning the entire array as a point name instead of a certain element of the array. (name: array, instead of a name: array[index])
Live demo:https://jsfiddle.net/BlackLabel/yLfq207n/
load() {
      dataLabels=['Name1','Name2','Name3','Name4']
      
        const chart = this;
        chart.series[0].points.forEach((point, index) => point.update({
          name:dataLabels[index]
        }), false);
                
                chart.redraw();
      }
Post a Comment for "Labels String From Asp.net Does Not Distributed In The Highchart"