FVANCOP / ChartNew.js

MIT License
420 stars 142 forks source link

IE11 Doughnut data in the middle calculation error #435

Closed AK1979 closed 8 years ago

AK1979 commented 8 years ago

Hi,

In IE11 when i set :

x1=2 y1=2 textAlign: "center textBaseLine: "middle" position: "realtive"

The value in IE 11 is on the right side of the donut.

Do i need to calculate the middle and set x1,x2 each time the screen resizes ?

In chrome the calculation works fine....

Thanks, Arie.

FVANCOP commented 8 years ago

Sorry, but I cannot reproduce the problem; Can you test if you have the problem with Samples\original_sample.html

If you do not have the problem with the sample, it is probably something in your code that causes the problem. If you do not find the solution, can you send the code to my email address ?

Regards, François

AK1979 commented 8 years ago

Hi,

The problem is not with the chart new but in the CANVAS element in IE11.

I get the same error as described here :

http://stackoverflow.com/questions/31685899/textalign-property-in-html5-canvas-not-working-properly-in-ie-11

The text is on the right of the doughnut and doesn't get aligned.

any ideas ?

Thanks, Arie.

AK1979 commented 8 years ago

Do i need to adjust the x1 y1 parameters ?

if there is alignement so what does this parameters purpose ?

AK1979 commented 8 years ago

Hi

Found this microsoft NOTE ==> https://support.microsoft.com/en-us/kb/3161707

Will keep you updated.

If there any work arounds please let me know ...

AK1979 commented 8 years ago

The problem was with IE11.

for now i've changed the canvas dir to LTR and it works fine.

thanks :)