Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart plays animations when first mounted #732

Closed
mwskwong opened this issue Oct 28, 2019 · 32 comments
Closed

Chart plays animations when first mounted #732

mwskwong opened this issue Oct 28, 2019 · 32 comments
Labels

Comments

@mwskwong
Copy link

mwskwong commented Oct 28, 2019

Describe the solution you'd like
Charts will play an animation (e.g. fade in) when first mounted. Similar to how recharts (sorry for mentioned another similar library here) behave. Currently, only a limited amount of charts (e.g. Network. Yet, most of them are uncommon) support that.

@Jakkc
Copy link

Jakkc commented Jan 17, 2020

Second this! Would be such a great feature to have.

@alexiastandish
Copy link

Is there an option for this yet?

@vhbert
Copy link

vhbert commented Aug 19, 2020

Has there been any progress on this feature?
Would really like to see this as well.

@stale
Copy link

stale bot commented Nov 17, 2020

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Nov 17, 2020
@priyatham-aps
Copy link

bump

@stale stale bot removed the stale label Nov 20, 2020
@shrimpynuts
Copy link

bump!

@TetianaMulenko
Copy link

would love this to be a thing ❤️

@stale
Copy link

stale bot commented Apr 4, 2021

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Apr 4, 2021
@chrislicodes
Copy link

bump

@stale stale bot removed the stale label Apr 6, 2021
@danielfamiyeh
Copy link

bump

2 similar comments
@marjan2k
Copy link

bump

@tpulido
Copy link

tpulido commented Jun 7, 2021

bump

@SirBernardPhilip
Copy link

Is there any hacky way to do this for the time being?

@chrislicodes
Copy link

Is there any hacky way to do this for the time being?

This worked for me:

const BarChart = ({ data }) => {
    // Workaround for initial animation
    const [chartData, setChartData] = useState([]);
    useEffect(() => {
      let animation = setTimeout(() => setChartData(data), 1);
  
      return () => {
        clearTimeout(animation);
      };
    }, [data]);
  
    return (/* Something */);
}

@sentilesdal
Copy link

bump!

@stale
Copy link

stale bot commented Oct 1, 2021

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Oct 1, 2021
@stale
Copy link

stale bot commented Oct 8, 2021

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

@stale stale bot closed this as completed Oct 8, 2021
@mfenej
Copy link

mfenej commented Nov 12, 2021

bump!

@kamilkur
Copy link

kamilkur commented Mar 2, 2022

Bump! My business relies on this feature :)

@Gerald12344
Copy link

Is there any plan for this to be worked on or added?

@hernan-sinapsis
Copy link

This would be awesome

@donniean
Copy link

bump!

@ayofef
Copy link

ayofef commented Jun 18, 2022

Bump!

@raahulthakur
Copy link

Bump

@michelbf
Copy link

This would be awesome

@van-for-days
Copy link

bumparoo

@jeanhdev
Copy link

bump

1 similar comment
@anudas-pexa
Copy link

bump

@somidi85
Copy link

Bump

@rodrigofsouto
Copy link

bump!!

@gitjeet
Copy link

gitjeet commented Feb 26, 2024

bump!!!!!

@GabsxBatata
Copy link

bump!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests