Skip to main content
A
9mo ago

Support for CSV import?

Hi all,

I'm pretty new to using RIVE and I'm wondering if there is a way to pull data from a CSV file to control layer attributes in an animation.

I'm interested in creating interactive charts and it would be amazing to, for example, create a bar chart based on values in a CSV, and have them animate when clicked.

Is this possible in RIVE, or could it be a future feature?

Any suggestions are appreciated!

Cheers,

AK

2 replies
A
m
m
9mo ago

Hi, there's no way to do it inside rive, but you can achieve the effect with runtime. Using JS you can read values and sent them to rive as a variables.
I did so in my pollution forecast: https://motionful.studio/wroclaw_pm10/
It fetches data from API and uses to change values and draw graph (it appears on pm10 hover).

A
(edited) 9mo ago

Thanks for this info motion_gr! I haven't worked with pulling data from APIs but I'll definitely look into it!
I appreciate your help :)