angular-highcharts icon indicating copy to clipboard operation
angular-highcharts copied to clipboard

ERROR TypeError: Cannot read property 'normalize' of undefined

Open yash27 opened this issue 6 years ago • 9 comments

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.

yash27 avatar Apr 19 '18 09:04 yash27

@cebor waiting for some solution over this issue.

yash27 avatar Jun 27 '18 10:06 yash27

@yash27 can you please create a stackblitz (https://stackblitz.com/edit/angular-9nkrgd) to make this reproducible for me.

cebor avatar Jun 27 '18 13:06 cebor

@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.

yash27 avatar Jun 28 '18 05:06 yash27

I have the same issue, any clue on what cause this?

carte7000 avatar Jul 22 '18 21:07 carte7000

@carte7000 can you create a stackblitz over this issue?

yash27 avatar Jul 23 '18 04:07 yash27

@yash27 I will try to reproduce it on stackblitz by the end of the week. Thanks for reopening this issue.

carte7000 avatar Jul 23 '18 17:07 carte7000

Any update on this? I'm getting the same error.

domwoe avatar Oct 03 '18 08:10 domwoe

As i said, i need a stackblitz to make this reproducible for me.

cebor avatar Oct 04 '18 13:10 cebor

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,
    },

BenjaminGibbs avatar Jan 09 '19 19:01 BenjaminGibbs