I have used line chart. Here is the link of line chart http://jsfiddle.net/highcharts/qyntd1xa/ I have stuck in pass dynamically data in line chart. How to pass dynamically data in line chart. i am new in angular js here is my controller function code-
$scope.updatedays = function(){
$scope.data = $scope.getdata();
console.log($scope.data);
Highcharts.chart('cont2', {
xAxis: {
categories: ['MON 12', 'TUE 13', 'WED 14', 'THU 15', 'FRI 16', 'SAT 17', 'SUN 18']
},
series: [{
data: [1.5, 5.5, 3.0, 2.5, 4.5, 3, 2]
}]
});
}
I tryed pass dynamically data but i getting error in Highcharts.