Combine two datasets

can you draw me on paper or paint or something what you/your boss actually wants?

because i think you and your boss are talking about a diffrent kind of offset. Or me idk

simple when i choose first tag . i am selecting time 4am to 5am. it will show data for that

if i select another tag i want to show data from 4.05am to 4.50 am

some difference between the first and second tag

So the offset is on the time?

yes correct. because time stamp column will be same for all tags so

dataSet1 = system.tag.queryTagHistory(paths=[‘Sine’], startDate=startTime1, endDate=endTime1, returnSize=1, aggregationMode=“Maximum”, returnFormat=‘Wide’)

dataSet2 = system.tag.queryTagHistory(paths=[‘Sine’], startDate=startTime2, endDate=endTime2, returnSize=1, aggregationMode=“Maximum”, returnFormat=‘Wide’)

Just change the times when you collect the dataset?

same thing i am doing. but when join dataset1 and dataset2 in to single dataset. i am getting this type of issue

yes collecting but i am to show them in single dataset not in different dataset

define “this type of issue”

like this

is the issue the blue line being so flat or the red line having holes?

holes in both red and bule see.
some space

which chart are you using? in vision or perspective?

in vision. normal chart

vision has a chart customiser.
I suppose you need
Dataset Properties Tab:

Renderer XY Line/Shape Render
Type Lines Only

you can look here i suppose you want something like the date axis chart example
https://docs.inductiveautomation.com/display/DOC81/Vision+-+Chart+Customizer

if that doesnt work you should probably make a new topic

Actually i am using this only XY Line/Shape Render
same type Line only

i suppose its having some trouble with the null’s that have been added in
you should make a new topic. Im not familiar enough with vision charts.

Ok thanks for the time

1 Like