GithubHelp home page GithubHelp logo

Comments (6)

maxklenk avatar maxklenk commented on August 18, 2024

You are right. I commented the lines out because of performance issues with big datasets. I have different ideas to solve that problem:

  1. We could tell the watcher only to check small datasets and to be disabled for big ones.
  2. We can remove the option and as I did already for big datasets set some flag in the options to update the chart.

What would you prefer?

from angular-chart.

awk avatar awk commented on August 18, 2024

From the perspective of the digest cycle I don't think the size of the dataset matters as much as the rate of change - does it ?

It feels more angular to have the graph update automatically with perhaps an option to disable that behaviour and a way to then trigger a manual update if you need it ?

My own dataset is pretty small - less than 100 points - so I'd prefer the automatic updates :-)

from angular-chart.

maxklenk avatar maxklenk commented on August 18, 2024

OK, I will add the automatic watcher for small datasets in the next release.

The problem with big datasets is that angular has to check all attributes in each $digest cycle for changes to be able to notify when something changed. (see $watch)

from angular-chart.

awk avatar awk commented on August 18, 2024

Yep - I think that will work fine for me. Any idea when this might make a 0.2.4 release ?

from angular-chart.

maxklenk avatar maxklenk commented on August 18, 2024

Now, please check it out and report any problems.

from angular-chart.

awk avatar awk commented on August 18, 2024

Works great! Thanks for the quick fix and update!

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.