krispo / ng2-nvd3

Angular2 component for nvd3
http://krispo.github.io/ng2-nvd3/
MIT License
328 stars 104 forks source link

Add focus to the list of options #136

Closed PlugaruT closed 5 years ago

PlugaruT commented 6 years ago

When trying to create a lineWithFocusChart with focus option to handle dispatched events by the focus an error occurs.

ERROR TypeError: selection.each is not a function
    at Function.chart [as focus] (nv.d3.js:4723)
    at NvD3Component.updateWithOptions (ng2-nvd3.component.js:110)
    at NvD3Component.initChart (ng2-nvd3.component.js:29)
    at NvD3Component.ngOnChanges (ng2-nvd3.component.js:11)
    at checkAndUpdateDirectiveInline (core.js:12348)
    at checkAndUpdateNodeInline (core.js:13876)
    at checkAndUpdateNode (core.js:13819)
    at debugCheckAndUpdateNode (core.js:14712)
    at debugCheckDirectivesFn (core.js:14653)
    at Object.eval [as updateDirectives] (StockSalesComponent.html:2)
PlugaruT commented 6 years ago

@krispo if you could just help me to make this build run, I can't really understand why Cannot start Chrome :/

PlugaruT commented 6 years ago

@krispo, can you have a look, please?