GwtMaterialDesign / gwt-material-amcharts4

Amcharts Version 4 for GMD
https://gwtmaterialdesign.github.io/gmd-amcharts4-demo/
Apache License 2.0
3 stars 4 forks source link

toAxisPosition should return double value? #11

Closed dileepbapat closed 4 years ago

dileepbapat commented 4 years ago

https://github.com/GwtMaterialDesign/gwt-material-amcharts4/blob/09caa9879861a91c23fdefdaa4fd5f68940f649d/src/main/java/gwt/material/design/amcharts/client/axis/Axis.java#L141

kevzlou7979 commented 4 years ago

Can you link the amcharts official documentation regarding this. Thanks

dileepbapat commented 4 years ago

https://www.amcharts.com/docs/v4/reference/axis/#toAxisPosition_method

kevzlou7979 commented 4 years ago

Oh i was thinking if the axis position can be 0.5 as the range itself is from 0 - 1

kevzlou7979 commented 4 years ago

Try reading this https://www.amcharts.com/docs/v4/tutorials/tracking-cursors-position-via-api/#Accounting_for_zoom

kevzlou7979 commented 4 years ago

I tried to test there own demo and it turns out that the axis position is double. image