# Pie Chart label format

**URL:** <https://forum.inductiveautomation.com/t/pie-chart-label-format/50789>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [September 9, 2021, 6:53pm UTC](https://forum.inductiveautomation.com/t/pie-chart-label-format/50789 "2021-09-09T18:53:41Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 14, 2021, 3:54pm UTC](https://forum.inductiveautomation.com/t/pie-chart-label-format/50789/5 "2021-09-14T15:54:52Z")

</div>

Even if I use code from this post:

> [@Convert seconds to HH MM SS](https://forum.inductiveautomation.com/t/convert-seconds-to-hh-mm-ss/8739/18):
>
> If your talking doing the same thing but through a script it is identical but using script functions. You would need to do a system.tag.read(tag path).value to get your seconds and store it in a variable but then you would insert your variable into the script. Then it depends where the script is to how to put it in the label. time = system.date.format(system.date.addSeconds(system.date.midnight(system.date.now()),insert your seconds val here),"HH:mm:ss")

```auto
m,s = divmod(defaultValues[2], 60)
h,m = divmod(m, 60)
time = '{hr:02d}:{mn:02d}:{sc:02d}'.format(hr=h,mn=m,sc=s)

```

It goes bonkers. The interesting thing is I can't interact with anything on the window, but I can the project browser. I can edit the component in the browser, by disabling the extension. But, even after disabling, the window is still "locked' up. I have to restart the designer. I guess I will give IA a call.

---

_[View the full topic](https://forum.inductiveautomation.com/t/pie-chart-label-format/50789)._
