Mikhus / canvas-gauges

HTML5 Canvas Gauge. Tiny implementation of highly configurable gauge using pure JavaScript and HTML5 canvas. No dependencies. Suitable for IoT devices because of minimum code base.
http://canvas-gauges.com/
MIT License
1.57k stars 396 forks source link

browser compatibility - safari and IE #140

Open Alpha0x opened 7 years ago

Alpha0x commented 7 years ago

I saw on the project home page (https://canvas-gauges.com/) that Canvas Gauges should be compatible with safari 5+ and IE 9+. But I try examples of gauges (https://github.com/Mikhus/canvas-gauges/blob/master/examples/exact-ticks-bar.html ... for example) on safari 5.1.7 and IE 11.13 but when they are a box value on the gauge it's not working, the gauge isn't animate and the value box is not shown.

The error on safari is : TypeError: 'undefined' is not a function (evaluating '"9".repeat') -- gauge.min.js:26

I'm not sure the problem is the value box but lot of examples don't work on safari 5.1.7 and IE 11.13.

So, is it normal ? The development isn't finish for these web browsers ?

Thank you

ombm-studios-team commented 7 years ago

I'm getting the same error, has anyone found any workarounds? I've tried everything.

Mikhus commented 7 years ago

Sounds like a critical bug here. BTW I'm offline until second part of September 2017, so if anyone can propose PR with solution here I'll be very appreciate. Anyway will be merge it only 3 weeks after today. If none it will be fixed approx 3 weeks minimum...

ombm-studios-team commented 7 years ago

https://github.com/Mikhus/canvas-gauges/issues/135 is the answer @Alpha0x