TradingPal / react-native-highcharts

📈 Add Highcharts charts to react-native app for IOS and Android
https://github.com/TradingPal/react-native-highcharts
256 stars 158 forks source link

Tooltip not visible #36

Closed anupkale1984 closed 6 years ago

anupkale1984 commented 7 years ago

When i see on simulator, i am able to see tooltip as expected on cursor click. But when with same build on device i touch , pint gets highlighted but does not show any tooltip.

jslok commented 6 years ago

+1

ismjt commented 6 years ago

i get the same problem of Tooltip, it does not work with android release app! and here is my tooltip node config:

tooltip: { formatter() { return <span><b>${this.series.name}</b><br/> ${Highcharts.numberFormat(this.y, 2)} mg/L</span>; } }

how can i fix it?

ecsreejith commented 6 years ago

Instead of using "Highcharts.numberFormat" method, use JS toString() method to convert the number or date into string. It will work

jslok commented 6 years ago

@ecsreejith thanks, that works!

ismjt commented 6 years ago

@ecsreejith thanks a lot!

milosh86 commented 4 years ago

It also works if you reference it from window object, i.e. window.Highcharts.numberFormat() or window.Highcharts.dateFormat()