Git Product home page Git Product logo

Comments (2)

diogobernardino avatar diogobernardino commented on August 15, 2024

Hi,
At the moment you can achieve that by using reset() and reinserting the datasets you want afterwards, but though I understand that's an inefficient way of doing it. So yes, this is something I've been thinking about, provide a method to allow a dataset to toggle between visible and non-visible, but I would like to offer this option with animation support (enter and exit animation).

I will keep it in mind, thanks for the tip.

from williamchart.

diogobernardino avatar diogobernardino commented on August 15, 2024

I decided to take a different approach than just provide a way to remove a set. I've implemented (dev branch) a way to update dataset values (with animation support).
You can remove a dataset by simply giving the value 0 to all entries. In case of LineChartView you may need to tweak a bit in order not to display a line if draw coordinates are out of the inner chart limits. I've tried it myself so let me know if you need help with that.

from williamchart.

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.