Hi 
Very new to angular 
Trying to set the XAxis in  a chart defined in jade to a value based on a 
function return type .For once it change ,but for the next selection 
changes are not happening 

main.jade=div(class="container well", style="width:75%;")
    div(class="col-md-12 column",align="center")|Mean Time To Resolve(MTTR)
        nvd3-discrete-bar-chart(data="barChartsData",showXAxis="true", 
showYAxis="true", showValues="true", showLegend="true", height="400",
        
margin="{left:90,top:20,bottom:90,right:20}",yAxisLabel="Hours",yAxisLabelRotate="90",
*xAxisLabel="{{setxaxislabel()}}"*,xAxisOrient="bottom",
        color="colorFunction()",ng-if="barChartsData")


controller.js
 $scope.setxaxislabel = function(){
                 return type;
            
    }

How can we acheive this .Any other way to do this 

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to