question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.0.0 Animations documentation

See original GitHub issue

Documentation Is:

  • Missing or needed
  • Confusing
  • Not Sure?

New animation engine

Reading the current documentation about new animation engine into v 3.0.0, I 'm a little confused about how the options object should be managed and some new concepts are not explained well. I’m writing here what I understood and what it’s not clear to me.

Animations modes

The animation mode should be a animation options with specific configuration. It’s not clear when the out of the box modes will be called (which which phase of chart drawing or resize). It’s also possible to create own modes. Any name convention in order do not override “properties” of the animation properties (for instance duration)? And if the modes are coming the way to configure animations, why to mix modes and properties in the animation options? Maybe properties should be collected into a default mode to be more consistent. In the default animation mode, visible options is mentioned. What is it? Why isn’t that mentioned into the list of animation options properties?

Collections

It’s not clear what it means to add or remove properties from animation standpoint. For instance, the default for number is ['x', 'y', 'borderWidth', 'radius', 'tension'] but how those properties are used to affect the animation? Furthermore there is from property but the from could be different from every single properties item (xcould have different range of borderWidth). Having a look to new samples, it’s not clear the y property definition here. Maybe could be explained into the doc.

Callbacks

Having a look to new samples, the animation object (whole configuration) can be provided by callback (here the sample), but this is completely missing from documentation.

Hint

I suggest to add more documentation how to configure the animation engine, adding pieces of code if needed in order to have a clear picture about all (or at least almost) cases.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
benmccanncommented, May 21, 2020

@kurkle just added a lot to the animation documentation, so I’m going to say this is fixed now

https://www.chartjs.org/docs/master/configuration/animations/

0reactions
stockiNailcommented, May 22, 2020

@benmccann I’m referring to sample loop.html where the animation options (whole object) if returned by a callback (as scriptable option).

options: {
	animation: (context) => {
		if (context.active) {
			return {
				radius: {
					duration: 400,
					loop: true
				}
			};
		}
		return Chart.defaults.animation;
	},

This sounds new feature, not available on 2.9.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

animation — Matplotlib 3.0.0 documentation
Animation ; Writer Classes; Helper Classes; Inheritance Diagrams ... The easiest way to make a live animation in matplotlib is to use one...
Read more >
Animation — OpenShot Video Editor 3.0.0 documentation
The powerful curve-based animation framework can handle most jobs with ease, and is flexible enough to create just about any animation. Key frames...
Read more >
Avatars 3.0 - VRChat Documentation
Animators and animations; Animator layers, layer weights, and blending; States and transitions; Animator parameters; State behaviors; Avatar masks.
Read more >
simple_animations 3.0.0-nullsafety.1 | Flutter Package - Pub.dev
Simple Animations is a powerful framework to create beautiful custom animations in no time. fully tested; well documented; enterprise-ready ...
Read more >
How to use ActionScript with Animate - Adobe Support
Getting started with ActionScript · Use the Actions panel to write scripts that are part of your Animate document (that is, scripts that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found