GithubHelp home page GithubHelp logo

Comments (4)

maxklenk avatar maxklenk commented on September 28, 2024

Thank you for create an issue for your problem, this helps a lot.

I was not able to reproduce your problem, can you please adopt this plnkr to show me when it fails.

https://plnkr.co/edit/BT1CFkMAXFTjo5Jzh1LK?p=preview

from angular-chart.

random-one avatar random-one commented on September 28, 2024

@maxklenk I managed to reproduce it but including one more dependency - ui-router. This is actually my real use case, but I never thought this could break the charts...
Please see my plunk here: https://plnkr.co/KOMKGekcJNkQVOIblFum
It's forked from yours. Switch quickly between the two states(to reproduce it easier) with the buttons on each state until you see the this.config is null message in the developer console and the chart will not appear until app is reloaded.

from angular-chart.

maxklenk avatar maxklenk commented on September 28, 2024

puh, I see. Interesting bug, we should check if destruction of the chart is not finished and is responsible for this strange behavior. If you find a solution please tell me.

from angular-chart.

random-one avatar random-one commented on September 28, 2024

Like I told you I traced it to the applyZoom in the ChartService.prototype.stateCallback function. And when I don't call it it does not happen which is strange to me too.
My "solution"(and I am not proud of it, but I need the charts to always appear) is a monkey-patched chartService that uses the code of applyZoom before you removed the check.

Maybe this stateCallback needs to me smarter?

from angular-chart.

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.