Hello!
In Ignition Perspective I´m using a XY chart with 2 different database binding...same value from 2 different years.
The results after using same yAxis range looks like:
What I would like now is to overlap the pink and the blue charts
The script transform I´m using for the binding of both dataSources jython is:
code_filter = self.getSibling("TextField_3").props.text
resultsDS = value
filtered_list = []
if resultsDS is not None:
row_count = resultsDS.getRowCount()
for row in range(row_count):
codigo = resultsDS.getValueAt(row, "CODIGO")
if codigo == code_filter:
week_start = resultsDS.getValueAt(row, "WEEK_START")
pue = resultsDS.getValueAt(row, "AVG_KWIT") # Weekly PUE value
filtered_list.append({
"t_stamp": week_start, # Week start timestamp
"process_temp": pue # Map PUE to process_temp
})
return filtered_list
WEEK_START is the date of begining of the week (values are calculated weekly)
Is there a way I can overlap both graphs?