# Chart Polling Issue

**URL:** <https://forum.inductiveautomation.com/t/chart-polling-issue/28764>\
**Category:** Ignition Early Access\
**Created:** [October 3, 2019, 2:52am UTC](https://forum.inductiveautomation.com/t/chart-polling-issue/28764 "2019-10-03T02:52:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam1](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sam1](https://forum.inductiveautomation.com/u/sam1)\
**Post date:** [October 3, 2019, 2:52am UTC](https://forum.inductiveautomation.com/t/chart-polling-issue/28764/1 "2019-10-03T02:52:04Z")

</div>

Hi All,

I’m attempting to configure a time series chart to display tag history data which needs to poll the database at a rate of 5s. However, the chart data wont refresh unless I navigate from and back to the view.

Things I’ve tried:

- XY chart and time series chart
- 8.0.5 nightly and 8.0.4
- Polling rates between 1-60s
- Realtime and historical time range configurations

Any suggestions are greatly appreciated - thanks

---

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [October 4, 2019, 8:36pm UTC](https://forum.inductiveautomation.com/t/chart-polling-issue/28764/2 "2019-10-04T20:36:56Z")

</div>

I’m using the new Time Series Chart with no issues. I gave up on the xy chart because of some issues I had seen. I don’t know if this is the most efficient way to do it but it works.  
I’m currently using 8.0.5 nightly (b2019092602)

Bind series data to an expression  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/e494b06db55c72d3716b0b6e6c28a3ce086fa46a.png)

To make it update every second make the expression now(1000) then add a transform script to get the historical data.

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

Here’s the script I use

```auto
    #Get 30minutes of historical data
	DataHtag = system.tag.queryTagHistory(paths=["[default]/path/to/HistoricalTag"], aggregationMode="SimpleAverage", returnFormat='Wide', columnNames=["t_stamp","RealData"],rangeMinutes=30)
	CompiledData = []
	
	headers=["time","Data Value"]
	#loop through all data and append time,
	#to a new array

	for row in range(DataHtag.rowCount):
            #I removed some code
            #I loop through data and add some additional info (upper and lower bounds) to array before plotting
			CompiledData.append([DataHtag.getValueAt(row,0),DataHtag.getValueAt(row,1)])
		
	ds = system.dataset.toDataSet(headers,CompiledData)#convert array to dataset, with headers
	
	return ds

```
