# Charts.js X Axis Labels

**URL:** <https://forum.bubble.io/t/charts-js-x-axis-labels/230819>\
**Category:** Need help\
**Created:** [November 1, 2022, 11:01pm UTC](https://forum.bubble.io/t/charts-js-x-axis-labels/230819 "2022-11-01T23:01:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drew5061](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@Drew5061](https://forum.bubble.io/u/Drew5061)\
**Post date:** [November 1, 2022, 11:01pm UTC](https://forum.bubble.io/t/charts-js-x-axis-labels/230819/1 "2022-11-01T23:01:18Z")

</div>

I have an API returning an array of numerical values that I want to display in Charts.js and I need to name the x axis values. The Y axis contains the values I’m returning and the x axis needs to be the items number within the list (first starting at 0, and going up by 1 until the return values in the array end.)

I can’t figure out how to label the x axis.

**Here’s a screenshot of what I have now.**  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/f/cf90518c1553c63c9e36e3d6ecf7a6745298a442.png)

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [November 3, 2022, 12:52pm UTC](https://forum.bubble.io/t/charts-js-x-axis-labels/230819/2 "2022-11-03T12:52:38Z")

</div>

Maybe @Thimo might help here 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [January 10, 2023, 11:01pm UTC](https://forum.bubble.io/t/charts-js-x-axis-labels/230819/3 "2023-01-10T23:01:36Z")

</div>

Closed on January 10, 2023, 11:01pm UTC

This topic was automatically closed after 69 days. New replies are no longer allowed.
