# Declare variable ui\_chart\_x\_series\_x globally

**URL:** <http://forum.squareline.io/t/declare-variable-ui-chart-x-series-x-globally/1059>\
**Category:** Feature requests\
**Created:** [March 26, 2023, 9:30pm UTC](http://forum.squareline.io/t/declare-variable-ui-chart-x-series-x-globally/1059 "2023-03-26T21:30:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kisvegabor](http://forum.squareline.io/user_avatar/forum.squareline.io/kisvegabor/32/537_2.png) [@kisvegabor](http://forum.squareline.io/u/kisvegabor)\
**Post date:** [March 31, 2023, 6:43am UTC](http://forum.squareline.io/t/declare-variable-ui-chart-x-series-x-globally/1059/2 "2023-03-31T06:43:01Z")

</div>

Thank you for pointing it out. We will fix it in the next version.

Until that you can iterate through the series with [lv\_chart\_get\_series\_next](https://docs.lvgl.io/8.3/widgets/extra/chart.html#_CPPv424lv_chart_get_series_nextPK8lv_obj_tPK17lv_chart_series_t).

---

_[View the full topic](http://forum.squareline.io/t/declare-variable-ui-chart-x-series-x-globally/1059)._
