Comments (16)
No extra module is needed.
Where you would like to have result of console.log? Replace with alert() to have call action in app.
from highcharts-react-native.
I tested console.log in expo app and it does not work, I agree. But when I use alert or action on an axis, it works without any problems. I prepared you a simple test below (result is add the line on xAxis).
Options:
chartOptions: {
chart: {
events: {
load: function () {
alert('triggered);
this.xAxis[0].addPlotLine({
value: 2,
color: 'red',
width: 2,
id: 'plot-line-1'
});
}
}
},
}
Let me know if it worked or no.
from highcharts-react-native.
No extra module is needed.
Where you would like to have result of console.log? Replace with alert() to have call action in app.
the result should be printed on powershell window on which react native app is running . . .
further the alert does not work either
from highcharts-react-native.
Will test it this week, before release a new version (compatible with 8.0.4)
from highcharts-react-native.
Same Issue . when i use alert(time_entry) not working
from highcharts-react-native.
same here
not working @sebastianbochan
from highcharts-react-native.
Same Issue . when i use alert(time_entry) not working
Probably the variable is undefined.
Alert does not work when you refer to undefined variable.
Could you test with static text?
same here
not working @sebastianbochan
Do you refer to the external variable or static text?
from highcharts-react-native.
Do you refer to the external variable or static text?
using static text
from highcharts-react-native.
At this moment we're rebuilding the wrapper, but will test it in our beta-version and will let you know.
from highcharts-react-native.
Can you provide any timeline for beta version ? @sebastianbochan
from highcharts-react-native.
If all test will pass, the beta version will be available on monday (27.07).
from highcharts-react-native.
We just finished testing the wrapper and released the beta version which is available here https://github.com/highcharts/highcharts-react-native/tree/beta-3
Any feedback will be really helpful.
Please keep in mind, that all packages should be in the latest versions of them. Number of versions are declared also in the package.json
file.
@mustapha-khan please attach your code, because I tested it and still not able to reproduce the issue.
from highcharts-react-native.
The new 3.0 version is released.
Im closing this ticket. If you will encounter any problems, please create a new ticket. In this case we will avoid confusing and keep the newest version on track.
from highcharts-react-native.
Hi, I want to report a strange problem on the triggering on load
I couldn't trigger this event at first. However, when I don't use any of the variable outside the scope of the callback, it works:
load: function () {
alert(`triggered`); // Successfully triggered
}
When I add an variable i
outside the function, and reference it in the callback function, it does not work:
const i = 123;
load: function () {
alert(`triggered ${i}`); // Not triggered
}
I wonder the cause might be calling the callback from the webview?
from highcharts-react-native.
@hanayashiki I think the Webview is the general reason here. Maybe the variable references are sanitized or something. Unfortunately hard to guess.
from highcharts-react-native.
I was able to make a small modification here in HighchartsReactNative.js in order to get the onLoad
callback working properly:
style={this.props.webviewStyles}
onLoad={this.props.onLoad}
/>
I added onLoad={this.props.onLoad}
to the main <WebView />
. Once you've made that small modification you can pass an onLoad
prop to <HighchartsReactNative onLoad={() => console.log('chart loaded')} />
and it will fire as expected.
from highcharts-react-native.
Related Issues (20)
- showing rangeSelector options HOT 1
- Chart is not rendering in Android with hermes enable in react native. HOT 1
- Unable to update series data. HOT 3
- HighChart- When I use useUTC: false then x axis data are not showing properly HOT 6
- onLoad callback function prop HOT 1
- Chart does not render on Samsung Galaxy S20 Ultimate LTE (Android 11)
- App is crashing when chart goes out of screen doing scroll. HOT 6
- ios - non-expo - Failed to fetch script or layout - hcsript count not be read HOT 7
- Boost Module Usage
- On IOS I can only render series with 110670 data points HOT 2
- How do I define custom gauges? HOT 4
- Customize chart loader HOT 3
- App is crashing when chart goes out of screen doing scroll in Android 10. HOT 5
- Library is being used and our app is live HOT 8
- Chart is not rendering after generating apk file and installed on mobile HOT 12
- Can it rotate 3d scatter chart? HOT 1
- Is there anyway to use this library in a project which is initialized by Expo & using Typescript template? HOT 5
- `plotOptions.series.point.events` (event) param doesn't work in production
- The styledMode tru gives only black and dark mode not working HOT 2
- Not able to access the variable inside the formatter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from highcharts-react-native.