angularjs - Duration property for multiChart in NVD3-Angular does not work -


i try change duration property multichart not work. example

{   chart: {     type: 'multichart',     duration: 500,     ...   } } 

http://plnkr.co/edit/ohzdwmq4zxear9v98ito?p=preview

angular-nvd3 wrapper nvd3, can provide nvd3 provides. looking @ nvd3 documentation, seems there no duration option multicharts.

http://nvd3-community.github.io/nvd3/examples/documentation.html#multichart

update: multichart composed of 6 subcharts (lines1, lines2, bars1, bars2, stack1, , stack2). each of charts has own duration options.

so lines1, lines2, bars1, bars2, stack1, , stack2 can set duration. can behavior want.

{   chart: {     type: 'multichart',     ...     bars1: {       duration: 2000     },     bars2: {       duration: 2000     },     ...   } } 

http://plnkr.co/edit/23fztmoex46pzdaw5xii?p=preview

i think there 2 bugs here.

  1. nvd3's multichart model should have master duration option sets subcharts durations
  2. until that's fixed, angular-nvd3's multichart example should set duration option of subcharts

Comments