Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a key for a graph and how to define the x-axis as a time axis?

hello

i have two questions:

1. is there a possibility to automatically create a key for a CNiGraph?

2. what possibilities do i have to get time instead of samples on the x-axis? atm the only way i see is to set the parameter 'xInc' in the plot or chart function...

thx

markus

Message Edited by Markus Gnannt on 06-27-2005 08:15 AM

0 Kudos
Message 1 of 4
(3,801 Views)
"1. is there a possibility to automatically create a key for a CNiGraph?"

What do you mean by a key for the graph?

"2. what possibilities do i have to get time instead of samples on the x-axis? atm the only way i see is to set the parameter 'xInc' in the plot or chart function..."

There are two factors that you need to consider - the conversion factor of the data and the format of the label. For information about the data conversion factor, see the last paragraph of the CNiAxis documentation. For information about the format of the label, see the CNiAxis::FormatString documentation. You can see some default date/time format strings by clicking the Format tab of the graph's property pages, and selecting Time or Date in the built-in format styles list.

- Elton
0 Kudos
Message 2 of 4
(3,791 Views)
thanx for your reply, elton. i think i figured the problem with time axis out now.

by a key i mean a legend, cutline or whatever the correct term is in english.
(the explanation of the different plots besides the graph.)

markus
0 Kudos
Message 3 of 4
(3,782 Views)
This KB can help you get started on creating a legend using the graph.
Bilal Durrani
NI
0 Kudos
Message 4 of 4
(3,776 Views)