Generate chart data

Hello,
I'm looking for assistance in refining my formula so that I can generate the necessary data for creating a chart.
Target state: The graph should ultimately roughly look like below:
Data required: I need 3 types of data points. I created a function on Xano solving 1 and 2 but I’m still stuck with 3
1) The number of years to reach an objective ✅ (done)
2) The value at the end (e.g. year 2017= 1 million) ✅ (done)
3) The value at the end of each year ❌ : I’m stuck here
To do this I tried to create an array to stock the data for each user’s graph basically. So I created an array, a counter and conditioned the formula with the value in the counter in a while loop. For some reason, this does not work.
Can somebody help me understand what I’m doing wrong? Thanks
Best Answer
-
@Mr Unfreeze I hardly understand anything about your problem. You mention "value", "formula", "while loop", "counter", "data for each user graph"… but I don't see anything in the screenshots.
Answers
-
Hi Arturo !
Some screenshots did not copy properly but the error is now solved. I did not create my array properly and my instructions for this array were wrong… now all good :).Thank you
Categories
- All Categories
- 46 📣 Announcements
- 47 🦾 Releases
- 36 👋 Welcome
- 924 🤷 Help! I'm a Noob
- 113 📱 No-Code Front-Ends
- 597 🌐 Working with APIs
- 418 🔢 Transforming data
- 120 🔌 Connect Xano to ...
- 46 🧑💻 Find an Expert
- 320 ❓Other questions
- 32 🔐 Security
- 22 ✂️ Snippets
- 19 🏆 Showcase
- 7 🗣️ Xano Chatter
- 60 📺 Video Tutorials
- 166 🙏 Request a feature
- 219 🐞 Report a Bug
- 19 🚀 Templates & Extensions
- 6 💬 Feedback