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

can't find tooltip #21

Open leileizhu opened 7 years ago

leileizhu commented 7 years ago

on the debug version,when i touch the point of line,it show tooltip, but on the release version,it can't show the tooltip when i touch the point of line, did i forgot something to add ?or what i should watch out,Do I need purchase any license for using it ?

donaldmorton commented 7 years ago

@leileizhu No, you don't need to purchase any license for unlocking any highcharts feature see #20 for more info on this. this has to be something else, can you provide some code maybe your config json

leileizhu commented 7 years ago

@donaldmorton[Object,, Object, Object, Object, Object, Object, Object, Object, Object, Object…] the Object construct is {name:"Val0" sid:"00011013" unit:"Kpa" updatime:"2017-04-14 00:01" value:"189.1"}, i follow the example to write the code......,after i have package the project, it can't show the tooltip....

jonrh commented 7 years ago

@leileizhu Could you please tell us what version you are using? Your description seems similar to issue #4 that affected older versions of this library. Tooltips worked in debug/simulator mode but not in release modes. The issue was that functions in the Highcharts configuration object were not being translated correctly. This should no longer be the case in the latest version.

leileizhu commented 7 years ago

@jonrh 1.0.1

jonrh commented 7 years ago

@leileizhu Thanks! In that case we might have a legitimate new bug. Could you please create a repository with code that replicates/demonstrate the behaviour that you have? Something similar to this. A lot of us are running react-native-highcharts already in production with no problems so it's important we try to figure out what is going wrong because chances are it's happening to other people too, so thanks for letting us know!

ecsreejith commented 6 years ago

The tooltip issue in real devices is with the functions Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x),Highcharts.numberFormat(this.y, 2).

Instead of using the Highcharts functions to converts number and date to string, use the javascript function toString(). It will work in real device also