BarChartRaceAnimation
barChartRace(X) draws the animation of the bar chart for each rows of X. X can be numeric array, table, or timetable.
h1 = barChartRace(X) returns a handle (h1) to the figure with bar chart.
[h1,h2] = barChartRace(X) returns a handle (h2) to the figure with the data description in addition to h1.
[ __ ] = barChartRace(X, Name, Value) to use some Name-Value Pair Arguments.
There are also some sample scripts that will generate a bar chart race plot. These can be a good example to work through the basic ideas behind the bar chart race animation with the graphics object of MATLAB. These scripts can work with the earlier version of MATLAB.
- barChartRace_UniColor.m: Single color version
- barChartRace_multiColor_oneBar.m: Multi-color version with one bar object.
- barChartRace_multiColor_multiBar.m: Multi0color version with multi-bar objects (for users with R2017a or earlier.)
Note: The implementation of a function barChartRace is similar to that of barChartRace_multiColor_oneBar.m but many additional options.
Cite As
michio (2025). BarChartRaceAnimation (https://github.com/minoue-xx/BarChartRaceAnimation/releases/tag/1.0.2), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
doc_arguments
example/OldAgeDependency_G20
example/RegionalPopulationJapan
function
function/private
scripts
doc
doc_arguments
example/OldAgeDependency_G20
example/RegionalPopulationJapan
Version | Published | Release Notes | |
---|---|---|---|
1.0.2.0 | See release notes for this release on GitHub: https://github.com/minoue-xx/BarChartRaceAnimation/releases/tag/1.0.2 |
||
1.0.1.0 | See release notes for this release on GitHub: https://github.com/minoue-xx/BarChartRaceAnimation/releases/tag/1.0.1 |
||
1.0.0 |