Data Binding: Switching between Solo components with server values
Hello!
I’d like to ask a few questions about how to achieve the setup below.
If you have any ideas or suggestions, it would really help me a lot!
Thank you so much in advance!✨
▼What I want to do
I want to build a dynamic progress visualization in Rive using Data Binding,based on a number from the server (e.g. 3.3, 4.5, etc).
・The integer part represents the number of filled items (🟥).
・The decimal part represents the partial progress of the next one (pink square).
・The next empty slot (N+1) should show a “plus” (🟢) icon.
▼What I have built so far
I created 5 Solo states — each state represents a visual stage (empty, progress, full, etc.).
→ Each one can be switched using Data Binding.
In one of the Solos (in_progress), I added a progress bar that scales using Data Binding.
The bar reflects the decimal part (e.g., 0.3 → 30%).
▼What I want to achieve next
I’d like to combine those Solos into one system that:Switches state based on the integer part of the number.
Updates the partial progress inside one of the states (for the decimal part).
Optionally adds an extra “plus” (🟢) when all are filled.
So when I get data like 3.3, 4.5, or 5.0 from the server,the visual updates automatically as shown below 👇
▼What I’m not sure about
I’m trying to figure out how to structure this with Data Binding only (without State Machines).
Is it possible to:
Dynamically combine multiple Solo-based instances using one ViewModel?
Or do I need to drive each Solo’s visibility separately (e.g., via opacity or scale)?