Coder Social home page Coder Social logo

Disable Animation about livecharts2 HOT 3 CLOSED

beto-rodriguez avatar beto-rodriguez commented on September 28, 2024
Disable Animation

from livecharts2.

Comments (3)

beto-rodriguez avatar beto-rodriguez commented on September 28, 2024 2

OK, I am building docs right know and will make an article to animations, you are getting it wrong @vadimffe, v2 has smoother animations, and it has a much better performance.

I will build an article about animations, and will keep this issue open to let you know when it is ready, but in general here are some points you are getting wrong.

You can disable animations in v2, all the charts have the AnimationsSpeed and EasingFunction properties, play with them and you will achieve your goal, for example I can disable anumations settings the EasingFunction property to null.

<lvc:CartesianChart Series="{Binding Series}"
                                AnimationsSpeed="0:0:5"
                                EasingFunction="{x:Null}">        
</lvc:CartesianChart>

V2 now introduces many new animations, and you can create your own, but you can make the chart bounce or follow any easing curve:

image

@jaeaton changing the animations speed could work in your case, but I think that the library should expose a property called maybe "UpdaterThrottler" where we can let the chart know a TimeSpan at what rate it should update the UI, this property exists and it is 10ms now, we should just expose it so everyone can avoid this "sync" errors.

from livecharts2.

vadimffe avatar vadimffe commented on September 28, 2024

I have not tested version 2, but in first version it does not look nice when you have refresh rate of 2 seconds and charts are "flying towards user" all the time. I think animation should appear once you open an application for the first time, but not while passing data to chart. For example I would prefer Pie chart to just smoothly resize sections, instead of blinking (read it as animation) constantly. Good example is how Excel charts are working, smoothly resizing sections on values change.
In version 1 if you set animation to disabled charts are "blinking" anyway with DisableAnimations="True".
At least this should be configurable.

1735D63B-5308-434E-8AF0-2973B68B5547

from livecharts2.

beto-rodriguez avatar beto-rodriguez commented on September 28, 2024

I am closing this for now, you can now have more information at:

https://github.com/beto-rodriguez/LiveCharts2/blob/master/docs/1.overview/1.9.animations.md

The article will be easier to read when the new site is published

from livecharts2.

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.