PricingBlog

Mapping API data from component not working. Some do, others give null.

  • awwwwwake-1226572515166388324

    awwwwwake

    1 year ago

    Hey, I was following the tutorial from you guys about "How to build a bar chart"and it seems that I'm able to make it work for some data, but the rest of the elements are not working.

    Works on the component page but not when adding it to the main page.

    Attached there are:
    - the attributes mapping on the page
    - the data values added under attributes.
    - the image from the output.

    It does it correctly with the day of the week and date, but after those 2, the rest are null.
    1226572515338485770-Screenshot_2024-04-07_at_19.37.53.jpg
    1226572515887939795-Screenshot_2024-04-07_at_19.40.36.jpg
    1226572515648999454-Screenshot_2024-04-07_at_19.38.58.jpg
    1
  • awwwwwake-1226746124388532285

    awwwwwake

    1 year ago

    Mapping API data from component not working. Some do, others give null.
  • max.kayr-1226749457526296638

    Max

    1 year ago

    Can you share the edior link to the branch? Then I could take a look
  • awwwwwake-1226753197205360680

    awwwwwake

    1 year ago

    Somehow i was able to make it work using this setup only. Followed instructions from the video "How to use GraphQL in toddle", but even in that video, the way the attributes are mapped is from "item". In my list of options, item was not available but worked with the actual api element.

    Any insights on why the previous way was not working?

    Thanks!
    1226753197037850754-Screenshot_2024-04-08_at_7.38.18.jpg
    1226753196765085747-Screenshot_2024-04-08_at_7.36.46.jpg
  • awwwwwake-1226787653253464074

    awwwwwake

    1 year ago

    shared the link on a dm
  • max.kayr-1226803405721309245

    Max

    1 year ago

    Just responded 🙂