krispo / angular-nvd3

AngularJS directive for NVD3 reusable charting library (based on D3). Easily customize your charts via JSON API.
http://krispo.github.io/angular-nvd3
MIT License
1.29k stars 377 forks source link

PieChart maxKeyLength not working #713

Closed WaitWut closed 7 years ago

WaitWut commented 7 years ago

maxKeyLength for the pieChart legend simply has no effect

On here it appears to work fine: http://krispo.github.io/angular-nvd3/#/pieChart

However if you click the Plunkr link and add maxKeyLength it does not work: Plunkr link from demo: http://plnkr.co/edit/vtKWU0?p=preview My fork with maxKeyLength: http://plnkr.co/edit/QFIEg0?p=preview

Please tell me I'm missing something completely obvious here because I've been messing with this for days and it just won't work

WaitWut commented 7 years ago

Well after digging through what version were being used in the demo version 1.8.3 of NVD3 was being used, but in the Plunker it was version 1.8.1, updating NVD3 to 1.8.3+ solved this issue