angular-highcharts
angular-highcharts copied to clipboard
ERROR TypeError: Cannot read property 'normalize' of undefined
I have 2 components in my applications in which one is having ohlc stock chart and another one is having column chart (highchart). Now whenever I route from the column chart component into ohlc chart component, console shows me this issue.
core.js:1350 ERROR TypeError: Cannot read property 'normalize' of undefined
at HTMLDocument.scroller.mouseMoveHandler (stock.src.js:4069)
at ZoneDelegate.invokeTask (zone.js:425)
at Object.onInvokeTask (core.js:4621)
at ZoneDelegate.invokeTask (zone.js:424)
at Zone.runTask (zone.js:192)
at ZoneTask.invokeTask [as invoke] (zone.js:499)
at invokeTask (zone.js:1540)
at HTMLDocument.globalZoneAwareCallback (zone.js:1566)
I observed that it is happening only when I am using ohlc stock chart in that component, it is working fine when i'm using normal highchart.
@cebor waiting for some solution over this issue.
@yash27 can you please create a stackblitz (https://stackblitz.com/edit/angular-9nkrgd) to make this reproducible for me.
@cebor I don't have much idea about stackblitz that how to work with routing module here. Routing I have used in my application that is working. There I have 2-3 components, in every component one chart is there. In two components, column charts are there and in one component ohlc stock chart is there. Now whenever I route from a component where I have column chart to a component where I have another column chart. There I am not getting any problem but I am getting an error that is 'normalize' of undefined when I am routing to the component where I have OHLC stock chart.
I have the same issue, any clue on what cause this?
@carte7000 can you create a stackblitz over this issue?
@yash27 I will try to reproduce it on stackblitz by the end of the week. Thanks for reopening this issue.
Any update on this? I'm getting the same error.
As i said, i need a stackblitz to make this reproducible for me.
So this error hit me today too. I found the cause to be switching the following value in the chartOptions
scrollbar: {
enabled: false,
},
to
scrollbar: {
enabled: true,
},