Git Product home page Git Product logo

Comments (16)

sebastianbochan avatar sebastianbochan commented on June 11, 2024 1

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.

sebastianbochan avatar sebastianbochan commented on June 11, 2024 1

@mustapha-khan

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.

mustapha-khan avatar mustapha-khan commented on June 11, 2024

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.

sebastianbochan avatar sebastianbochan commented on June 11, 2024

Will test it this week, before release a new version (compatible with 8.0.4)

from highcharts-react-native.

dinhtrumdieu avatar dinhtrumdieu commented on June 11, 2024

Same Issue . when i use alert(time_entry) not working

from highcharts-react-native.

mustapha-khan avatar mustapha-khan commented on June 11, 2024

same here
not working @sebastianbochan

from highcharts-react-native.

sebastianbochan avatar sebastianbochan commented on June 11, 2024

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.

mustapha-khan avatar mustapha-khan commented on June 11, 2024

Do you refer to the external variable or static text?

using static text

from highcharts-react-native.

sebastianbochan avatar sebastianbochan commented on June 11, 2024

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.

mustapha-khan avatar mustapha-khan commented on June 11, 2024

Can you provide any timeline for beta version ? @sebastianbochan

from highcharts-react-native.

sebastianbochan avatar sebastianbochan commented on June 11, 2024

If all test will pass, the beta version will be available on monday (27.07).

from highcharts-react-native.

sebastianbochan avatar sebastianbochan commented on June 11, 2024

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.

sebastianbochan avatar sebastianbochan commented on June 11, 2024

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.

hanayashiki avatar hanayashiki commented on June 11, 2024

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.

Denyllon avatar Denyllon commented on June 11, 2024

@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.

mike-zarandona avatar mike-zarandona commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.