javascript - Angular js how to highlight first point on line graph/chart -


a name filter (text box) should present filter cities based on input value , should displayed on graph, not able find way out.

var temp = [{"name":"bangalore","temprature":25},{"name":"chennai","temprature":45},{"name":"mumbai","temprature":40},{"name":"goa","temprature":35},{"name":"madurai","temprature":38}];  var label= []; var value= []; var value1 = [];  var array =  eval( temp ); for( var = 0; < array.length; i++ ) {         label.push(array[i].name);         value.push(array[i].temprature); }  value1.push(value);  var myapp = angular.module('myapp',['chart.js']); myapp.controller('mycontroller',function($http,$scope){         $scope.labels = label;       $scope.data = value1;       $scope.idselectedvote = 1; 

i have requirement of highlighting first node in plotted graph, not able find wayout in angular js chart.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -