# Report chart legend labels that start with a number

**URL:** <https://forum.inductiveautomation.com/t/report-chart-legend-labels-that-start-with-a-number/91416>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [June 5, 2024, 3:25pm UTC](https://forum.inductiveautomation.com/t/report-chart-legend-labels-that-start-with-a-number/91416 "2024-06-05T15:25:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Deardorff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_deardorff/32/63815_2.png) [@Ryan\_Deardorff](https://forum.inductiveautomation.com/u/Ryan_Deardorff)\
**Post date:** [June 5, 2024, 3:25pm UTC](https://forum.inductiveautomation.com/t/report-chart-legend-labels-that-start-with-a-number/91416/1 "2024-06-05T15:25:25Z")

</div>

I'm generating a bar chart and I want legend labels that start with a number ("1st Shift" etc.), but they don't work, I think because XML element names aren't allowed to start with a number:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/8/b8a525f00b00e28d6adf518d867c666d40d800fb.png)

Is there a way around that?

---

<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:** [June 5, 2024, 3:41pm UTC](https://forum.inductiveautomation.com/t/report-chart-legend-labels-that-start-with-a-number/91416/2 "2024-06-05T15:41:06Z")

</div>

Easy way:

- 1st Shift → Shift 1
- 2nd Shift → Shift 2  
etc.

More interesting options:  
I don't know if HTML entities would work as leading characters on the legend labels. I suspect not because they start with an `&`.

| Name | HTML Entity |
| --- | --- |
| non-breaking space | `&nbsp;` |
| figure space | `&numsp;` |
| punctuation space | `&puncsp;` |
| thin space | `&thinsp;` |
| hair space | `&hairsp;` |

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 5, 2024, 6:58pm UTC](https://forum.inductiveautomation.com/t/report-chart-legend-labels-that-start-with-a-number/91416/3 "2024-06-05T18:58:19Z")

</div>

More complicated, but giving you ultimate control, would be to use the configureChart extension function hook to set up exactly what you want.
