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)
When trying to create a
lineWithFocusChart
withfocus
option to handle dispatched events by the focus an error occurs.