-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line Chart Tooltip Error on IE11 #384
Comments
Same problem |
To fix this need to add polyfill for MouseEvent |
Adding the polyfill fixes the error in the console and allows tooltips to be shown for me. This doesn't seem to completely fix everything, as hovering over a specific data point shows the tooltip for the data point directly to the left. Is there any solution for this? |
Did someone find any solution for the last problem with showing tooltip for the data point directly to the left? |
Hey @KovalDenys, I found a solution in this thread. It has to do with how they are getting the x position in the TooltipArea functions. What worked for me, instead of messing around with the ngx-charts files, is to overwrite the mouseMove function in the constructor of the component with will eventually have the ngx charts.
|
Hi @AnnaGranovsky @joseph-schenck
Could you please help if i am missing anything here. Any help is much appreciated. |
Hi @gaurav848! As for the first error you can just add check Still, as @joseph-schenck mentioned, it is not completely solving the problem. |
Thanks @AnnaGranovsky for responding so quickly.
but still as you mentioned it did not change anything in terms of console errors on the ngx line charts when mousehover/mouseevents on the line chart on IE. Please do let me know if i used your suggestion incorrectly or you find any other solution to this problem. |
@gaurav848 I also encountered this error on the line chart, and the polyfill you posted worked to resolve the problem. If you're still getting errors, I wonder about other polyfills you're importing... we've already pulled in quite a stack of them to get other charts working correctly in IE. We were already pulling in these:
|
I'm submitting a ... (check one with "x")
Current behavior
Using IE11, on mouse over the chart tooltips are not shown and fires the following error to the console:
ERROR TypeError: Object doesn't support this action
"ERROR"
{
[functions]: ,
proto: { },
description: "Object doesn't support this action",
message: "Object doesn't support this action",
name: "TypeError",
number: -2146827843,
stack: "TypeError: Object doesn't support this action
at t.prototype.showTooltip (http://192.168.10.109:4200/vendor.ed59e703e9e868c49dcb.bundle.js:973:169880)
at Anonymous function (Function code:190:9)
at _ (http://192.168.10.109:4200/vendor.ed59e703e9e868c49dcb.bundle.js:309:1441)
at handleEvent (http://192.168.10.109:4200/vendor.ed59e703e9e868c49dcb.bundle.js:309:7854)
at Kt (http://192.168.10.109:4200/vendor.ed59e703e9e868c49dcb.bundle.js:260:1591)
at Anonymous function (http://192.168.10.109:4200/vendor.ed59e703e9e868c49dcb.bundle.js:267:2356)
at Anonymous function (http://192.168.10.109:4200/vendor.ed59e703e9e868c49dcb.bundle.js:715:759)
at t.prototype.invokeTask (http://192.168.10.109:4200/polyfills.ecb620347e80f19f9b11.bundle.js:36:7895)
at onInvokeTask (http://192.168.10.109:4200/vendor.ed59e703e9e868c49dcb.bundle.js:365:7989)
at t.prototype.invokeTask (http://192.168.10.109:4200/polyfills.ecb620347e80f19f9b11.bundle.js:36:7895)",
Symbol(immutablehash)_i.yt190o4ktkj: undefined,
Symbol(observable)_h.yt190o4ktkj: undefined,
Symbol(react.element)_j.yt190o4ktkj: undefined,
Symbol(rxSubscriber)_g.yt190o4ktkj: undefined
}
Expected behavior
show tooltips
Reproduction of the problem
I'm able to show bar and line charts in all the major browsers but on IE11 have a problem with line charts. The tooltips works well on bar charts but stop working with line charts firing the above error.
The text was updated successfully, but these errors were encountered: