05-29-2013 02:41 PM
Hi,
I've scoured the internet before I had to resort to asking my question here. I hope someone can answer my question.
Using VBS, how can I create a legend of the channels used in the graph and label the axis in the graph? Thanks in advance!
Solved! Go to Solution.
05-29-2013 04:04 PM - edited 05-29-2013 04:29 PM
I've managed to figure out how to create the labels...
Call GraphObjOpen(D2AxisXObj(1)) D2AxisXTxt = "@@ChnName(CurrChnNo)@@ [@@ChnDim(CurrChnNo)@@]" ' Defines the x-label Call GraphObjClose(D2AxisXObj(1))
Now to figure out how to create the legend. If anyone can help me, that'd be great.
...And now I feel like a downright idiot.
After more scouring I managed to find what I need
Call GraphObjOpen("2D-Axis1") '------------------- Swith legend on ------------------------------- D2LEGDRAW =1 D2LEGTXTTYPE ="Free text" ' "ChannelName" or other keywords D2LEGTXTFREE ="My free legend" Call GraphObjClose("2D-Axis1") 'redraw Call Picupdate()
05-29-2013 04:11 PM - edited 05-29-2013 04:29 PM
Removed