Framer X Animation
Animation Studio Frame OrderOur official pages:https://www.facebook.com/frameorderhttps://www.facebook.com/cartoonboxanimationhttps://www.instagram.com/carto. Frame rates for animation.60 frames per second, 30 frames per second and 15 frames per second. I thought I would take advantage of YouTubes 60FPS option. #framer #framerbeta #uidesignToday we start new tutorial series for framer beta web version which is little complex for starters and best if you know coding.
In most of my previous articles, I’ve often been stretching the importance of visualizing the results obtained by a technical analysis. Ideally, your charts should be able to summarize in a glimpse what you have been working on for days. Plus, those charts have to do so in a way which is clear and comprehensible to your audience.
- Now, along with data and layout, frames is added to the keys that figure allows. Your frames key points to a list of figures, each of which will be cycled through upon instantiation of the plot.
- Animations in Framer X are a bit hidden at first because they require jumping into some code. Let's do exactly that to build a simple menu animation!Check ou.
Hence, it is important to link your findings to a way to present them efficiently and easily. In this article I’m going to show some interactive tools on Plotly which are very powerful yet easy to implement. For this purpose, I’m going to use the embedded dataset ‘gapminder’ and show you some features you can collect through a visual interpretation.
Framer X Animation Tutorial
So let’s first download our dataset and necessary libraries:
This data is derived from gapminder.org and you can directly import them via Plotly libraries.
So let’s start building our animated charts.
Since we are provided with panel (or longitudinal) data, we are able to observe the variables of each unit (country) across time. Hence, a natural purpose for an animation would be using time-progressing sliders and buttons. This approach will be achieved using the arguments ‘animation_frame’ and ‘animation_group’ within an ordinary plotly chart.
The first plot I want to build displays the evolution across time of life expectancy in different countries, with the support of a map:
As you can see, there is a clear upwards pattern in all over the world, even though certain countries (like those in Africa) are systematically exhibiting a lower life expectancy than others (like those in the USA).
Another interesting information to be retrieved is the relationship between gdp and life expectancy, especially the evolution of that relationship across time. A nice way to visualize it is through a scatter plot. Plus, we can also add a further dimension of our analysis, which is the size of the population, so that the larger the bubble, the larger the population.
Nice, now we can add a further argument in our charts, which is the ‘facet_color’. It basically split our chart into sub-charts according to the variable inserted (in our case, ‘continent’). So, if we want to visualize the above scatter plot for each continent, instead of having them all in one chart (which might be a bit messy), we can proceed as follows:
With the same approach, we can check the joint probability distribution of GDP and life Expectancy using a contour plot, alongside a histogram, across time:
Similar statistical information can be collected with a heatmap:
Finally, we can build a bar chart showing the evolution of population within each continent (with the labels of countries) across time:
Those are just a few of the potentialities of plotly animations, yet they are extremely powerful to deliver relevant information. If you want to learn more about animations, I recommend the reading of the official documentation here.
Plus, I’m attaching some of my previous articles on Plotly and data visualization in general.
Hoping you enjoyed the reading!
Framer X Delay Animation
Further readings: