# How to increase production minute by minute?

**URL:** <https://forum.inductiveautomation.com/t/how-to-increase-production-minute-by-minute/35195>\
**Category:** Ignition\
**Created:** [May 31, 2020, 4:46pm UTC](https://forum.inductiveautomation.com/t/how-to-increase-production-minute-by-minute/35195 "2020-05-31T16:46:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipe2010silva](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@felipe2010silva](https://forum.inductiveautomation.com/u/felipe2010silva)\
**Post date:** [May 31, 2020, 4:46pm UTC](https://forum.inductiveautomation.com/t/how-to-increase-production-minute-by-minute/35195/1 "2020-05-31T16:46:48Z")

</div>

Good afternoon, I am a beginner at Ignition and I would like to know if it is possible to create a graph increasing the actual production and the ideal production minute by minute. I work in an aluminum packaging factory and the production is around 1500 cans per minute and the ideal production is around 1600. I would like to create a graph increasing minute by minute both the ideal production and the actual production. I know it is possible to do this using the MES Analysis Controller component, as in the following example. but i would like to do it using any other resource, but i exhausted my attempts.  
Exemple used on MES Analysis Controller:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/11921e7485f8d8ae657fc0a5f7ddb134be8bbe7b.png)

This is the scripting used on MES Analysis Controller Component:

```auto
dataset = event.source.ignitionDataset
production = 0
target = 0
newDataSet = []
headers = ["Time", "Ideal Production", "Actual Production"]
for row in range(dataset.rowCount):
	date = dataset.getValueAt(row, 0)
	target = target + event.source.LineRate
	production = production + dataset.getValueAt(row, 1)
	newRow = [date, target, production]
	newDataSet.append(newRow)
event.source.LiveAnalysisData = system.dataset.toDataSet(headers, newDataSet)

```

I would like to know if it is possible to obtain this same chart using a different way of doing this.

Thank you Very Much

---

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [May 31, 2020, 7:06pm UTC](https://forum.inductiveautomation.com/t/how-to-increase-production-minute-by-minute/35195/2 "2020-05-31T19:06:35Z")

</div>

You can as well plot the production tag value as a trend using the chart component. Ideal target value can perhaps be a computed value or a predefined array.
