nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -


good morning

i using angularjs-nvd3-directives, great, having difficulties when setting color of multi bar chart (http://cmaurer.github.io/angularjs-nvd3-directives/multi.bar.chart.html).

the show legend works well:

<div ng-controller="examplectrl">     <nvd3-multi-bar-chart         data="exampledata"         id="showlegendexample"         width="550"         height="300"         showxaxis="true"         showyaxis="true"         xaxistickformat="xaxistickformatfunction()"         showlegend="true">             <svg></svg>     </nvd3-multi-bar-chart> </div>   

but when add option in conjunction color="colorfunction()" where,

var colorarray = ['#ff0000', '#0000ff', '#ffff00', '#00ffff']; $scope.colorfunction = function() {     return function(d, i) {         return colorarray[i];     }; } 

the color of chart objects updates, not legend. limitation of angularjs-nvd3-directives, can either set color or have legend , not both, or missing something?


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -