question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Line Chart Tooltip Error on IE11

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

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.

  • ngx-charts version: 5.1.2
  • Angular version: 4.0.0
  • Browser: [IE11 ]

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

2reactions
gaurav848commented, Mar 29, 2018

Thanks @AnnaGranovsky for responding so quickly. I tried your suggestion and now my code looks like below:

if (!MouseEvent || typeof MouseEvent !== 'function') {
  (function (window) {
    try {
      //new MouseEvent('test');
      return false; // No need to polyfill
    } catch (e) {
      // Need to polyfill - fall through
    }

    // Polyfills DOM4 MouseEvent

    var MouseEvent = function (eventType, params) {
      params = params || { bubbles: false, cancelable: false };
      var mouseEvent = document.createEvent('MouseEvent');
      mouseEvent.initMouseEvent(eventType, params.bubbles, params.cancelable, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);

      return mouseEvent;
    }

    MouseEvent.prototype = Event.prototype;
    window['MouseEvent'] = MouseEvent;
  })(window);
}

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. again Thanks so much and your response is much appreciated!!!

1reaction
AnnaGranovskycommented, Sep 26, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

HighChart Lİne Chart is not showing tool tip on IE11
My institution that I work updated the IE version. After updated the version Line Chart is not showing Tool Tip. Here is my...
Read more >
Google Charts error with IE11 emulator for IE8 - Stack Overflow
This copies the SVG from the previously drawn charts, but the event handlers to the charts are lost, thus the tooltips won't spawn....
Read more >
Chart generates in Chrome, Errors in IE11 - Telerik Forums
Hi, The error is likely triggered due to the specific data set used for the chart. Can you please check that the Time...
Read more >
[Solved]-chart.js show no charts in IE11-Chart.js
Coding example for the question chart.js show no charts in IE11-Chart.js. ... show label in tooltip but not in x axis for chartjs...
Read more >
IE 11 and tool tips - Javascript - DHTMLX Forum
Tooltips is are not working in IE11. A js error is thrown somewhere around the isIE() check. scheduler.templates.tooltip_text = function(start, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found