# Report Bar Chart Script to Hide/Show Bar Labels

**URL:** <https://forum.inductiveautomation.com/t/report-bar-chart-script-to-hide-show-bar-labels/58230>\
**Category:** Ignition\
**Tags:** scripting, ignition81, perspective\
**Created:** [April 8, 2022, 4:46pm UTC](https://forum.inductiveautomation.com/t/report-bar-chart-script-to-hide-show-bar-labels/58230 "2022-04-08T16:46:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blewis](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@blewis](https://forum.inductiveautomation.com/u/blewis)\
**Post date:** [April 8, 2022, 4:46pm UTC](https://forum.inductiveautomation.com/t/report-bar-chart-script-to-hide-show-bar-labels/58230/1 "2022-04-08T16:46:11Z")

</div>

I am wanting to enable/show or disable/hide the Bar Labels (under Properties/Label Options) based on if the number of rows of data inside the scripting of the bar chart.

For example if there are greater than 10 rows of data hide the bar labels and if less then show the bar labels. If there are more than 10 rows then the text from the bar labels overlap and you can’t read the label text.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 8, 2022, 4:49pm UTC](https://forum.inductiveautomation.com/t/report-bar-chart-script-to-hide-show-bar-labels/58230/2 "2022-04-08T16:49:48Z")

</div>

Can you tag your question as _Perspective_ or _Vision_?
