Hello Ria,
Thank you for your inputs.. I am not facing issue with updating the SPC with new data, Yes I initialize object once and later perform Update(true).
Basically, it works fine as long as the Query returns some data but sometimes for some inputs Query may not return the output in which case the Chart shows as No Data which is good but then in my immediate next run when I supply inputs to query which now returns some data but at this point the SPC loses all the settings that was done in display template.
For example:
Run 1: Inputs to Query is say Order = 1111 and it has data so my SPC generates good
Run 2: Input to Query is say Order = 2222 and it has no data so SPC says No Data
Run 3: Input to Query is say Order = 1111 again so it has data so SPC generates but this time it loses all its Display template properties ( as shown in my 3rd screenshot)
Lastly another issue I am facing is, setDisplayTemplate doesn't seem to work either..
Regards,
Adarsh