Thanks you both for replies.
All data i want to plot comes from data points.
I am using 2.5.2., but I am going to switch to 2.6.0 if you are advising so.
About the chart - I would like to have a whole process in one place. My PLC is all about boiling a liquid in some stages which have defined time and temperature, which can be also changed during the process by a user.
User can define number of stages and also change it on-the-fly. Mainly, the data points I am using are: STAGEXTEMP (X for stage number, from 0 to 9), STAGEXTIME (X for stage number, from 0 to 9), NOOFSTAGES (number of stages, can have values from 1 to 9), ACTUALSTAGE (current stage, from 0 to 9), TEMP (current temperature in °C). The funny thing is that stage 9 is obligatory, so if you set NOOFSTAGES to e.g. 2, you get stage 0, stage 1 and stage 9.
The chart I need would plot a series of STAGEXTEMP for a time decared in STAGEXTIME (it counts down to 0 and makes ACTUALSTAGE go +1, then the next STAGEXTIME is counted down) only for STAGEXTEMP and TEMP, but still showing previous stages and temperatures in a different series so it can be differenciated.
I hope you get what I mean. I think it is not simple, as I find it as JavaScript beginner. I would be grateful if you could write me some code as you said, please.