Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

PlotXY Axis Time Offset

I am graphing time based data on a PlotXY graph from a Database which works great.  The problem I am having is that the data in the database is in GMT and the user can change the time zone.  I can make the time adjustment everywhere else on the webpage that this is used on except on the graphs.  Can someone help me with this?
0 Kudos
Message 1 of 3
(3,155 Views)
Hi jharwood,

Can you provide more information about your x-axis time data?  If you are using the function, myXYGraph.PlotXY(dataX, dataY);, you could add (or subtract) a constant to all data in the dataX array to change to the GMT time zone.  How to add a constant and the value of that constant would be dependant of the time data you are passing to the x-axis.

Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 2 of 3
(3,140 Views)
I was able to figure out the solution to my problem.  What I did was I made the date conversion in the SQL Query by doing a dateadd function.
0 Kudos
Message 3 of 3
(3,133 Views)