# Status Chart in reports or in a email

**URL:** <https://forum.inductiveautomation.com/t/status-chart-in-reports-or-in-a-email/27322>\
**Category:** Ignition\
**Created:** [August 9, 2019, 7:35pm UTC](https://forum.inductiveautomation.com/t/status-chart-in-reports-or-in-a-email/27322 "2019-08-09T19:35:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![marianjel\_11](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@marianjel\_11](https://forum.inductiveautomation.com/u/marianjel_11)\
**Post date:** [August 9, 2019, 7:35pm UTC](https://forum.inductiveautomation.com/t/status-chart-in-reports-or-in-a-email/27322/1 "2019-08-09T19:35:58Z")

</div>

Hello Good morning, I am being asked for a report for a project in my work where we see the dead times of a machine so the status chart was perfectly accommodated, the problem is that they want it in the daily report I send and I don’t know how to add it since it is not an option in the design of reports, or I would like to know what option the report has to do something similar

 ![Sin%20t%C3%ADtulo](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/09723523effe25186a56080887e08d4e7aceb0f9.jpeg)

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [August 10, 2019, 9:26am UTC](https://forum.inductiveautomation.com/t/status-chart-in-reports-or-in-a-email/27322/2 "2019-08-10T09:26:16Z")

</div>

If you don’t need official support, there is a [free module on Github](https://github.com/chi-Ignition/report-components/releases) that adds a status chart for reports.

 ![StatusChart](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a548cd95a7f8e7137859cb1184b59c91c115e20a.png)

---

<div class="post-metadata">

**Author:** ![marianjel\_11](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@marianjel\_11](https://forum.inductiveautomation.com/u/marianjel_11)\
**Post date:** [August 16, 2019, 7:46pm UTC](https://forum.inductiveautomation.com/t/status-chart-in-reports-or-in-a-email/27322/3 "2019-08-16T19:46:55Z")

</div>

Hi, thanks, it doesn’t work, because I’m using a 7.9 version of ignition  
Do you know a version an earlier version?

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [August 16, 2019, 8:36pm UTC](https://forum.inductiveautomation.com/t/status-chart-in-reports-or-in-a-email/27322/4 "2019-08-16T20:36:54Z")

</div>

> [@marianjel\_11](#):
>
> Do you know a version an earlier version?

Yes: [reporting-components-1.9.0.modl](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f1e48b1c16adf5fa0572367774f6374ad0025a76.modl) (44.5 KB)

---

<div class="post-metadata">

**Author:** ![marianjel\_11](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@marianjel\_11](https://forum.inductiveautomation.com/u/marianjel_11)\
**Post date:** [August 20, 2019, 5:27pm UTC](https://forum.inductiveautomation.com/t/status-chart-in-reports-or-in-a-email/27322/5 "2019-08-20T17:27:33Z")

</div>

Hello, sorry for the inconvenience, could you tell me a little description of how the component is used or how it works, I don’t know how to structure the data to be displayed, or do you have any documentation? Thank you very much in advance

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [August 20, 2019, 6:49pm UTC](https://forum.inductiveautomation.com/t/status-chart-in-reports-or-in-a-email/27322/6 "2019-08-20T18:49:34Z")

</div>

The configuration is not very different from the vision component. The sample report is created from a simple script datasource:

```auto
	headers = ['id', 'color', 'description']
	rows = []
	rows.append(['Event 1','#FF0000','Event 1'])
	rows.append(['Event 2','#00FF00','Event 2'])
	rows.append(['Event 3','#0000FF','Event 3'])
	data['events']=system.dataset.toDataSet(headers, rows)
	
	date = system.date.getDate(2019,7,1)
	system.date.addHours
	headers = ['series', 'event', 'start']
	rows = []
	rows.append(['Line 1','Event 1', date])
	rows.append(['Line 1','Event 2', system.date.addHours(date,3)])
	rows.append(['Line 1','Event 3', system.date.addHours(date,4)])
	rows.append(['Line 1','Event 1', system.date.addHours(date,9)])
	rows.append(['Line 1','Event 3', system.date.addHours(date,12)])
	rows.append(['Line 2','Event 2', date])
	rows.append(['Line 2','Event 3',system.date.addHours(date,1)])
	rows.append(['Line 2','Event 2',system.date.addHours(date,7)])
	rows.append(['Line 2','Event 3',system.date.addHours(date,12)])
	data['status']=system.dataset.toDataSet(headers, rows)

```

The report configuration looks loke this:

 ![StatusChartConfig](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0f41b57aa18014739f09cb0587224f2432d75cba.png)

You may also want to adjust the `Start date` and `End date` properties. There are tooltips for the configuration properties that give some usage hints.

When you use the status chart in a table with grouped data, you can leave the Data Key empty to use the detail level detail rows as events.

---

<div class="post-metadata">

**Author:** ![Mason.Younger](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@Mason.Younger](https://forum.inductiveautomation.com/u/Mason.Younger)\
**Post date:** [May 29, 2020, 2:20pm UTC](https://forum.inductiveautomation.com/t/status-chart-in-reports-or-in-a-email/27322/7 "2020-05-29T14:20:01Z")

</div>

@chi

I’m trying to get the status chart to work in my report, but can not get the info to display.  
Any ideas?  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a3bbeec261fbfda20560c945d51798d571a3d8a6.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0de29ac683f05c93a2e54b47ec8e377549265621.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5be9f4eed8baa122fc2df5a1836e504a3262cb69.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8046019927404fbd63a16d8baa8aaba7bdc54445.png)

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [May 30, 2020, 7:32am UTC](https://forum.inductiveautomation.com/t/status-chart-in-reports-or-in-a-email/27322/8 "2020-05-30T07:32:27Z")

</div>

There should be a warning message in the console, tha tells you that there is no color mapping for the states.  
Either add a color column to your dataset or create a seperate dataset with at state to color mapping.
