Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best way to add legend to a NI 2D graph?

I am drawing multiplots. Is there any method to add legend which describes each plot?

If there is any example code, it will be great help for me.

Thank you very much.
0 Kudos
Message 1 of 2
(2,896 Views)
If you're using CNiGraph (or CWGraph), there is no direct support for this. Probably the easiest workaround would be to add Picture (Picture in the dialog editor controls palette) static controls to your dialog for the bitmaps and then add static controls next to them for the labels.

If you're using the .NET WaveformGraph or ScatterGraph, there is a .NET Legend control that will let you add legend items for any plots or cursors that you would like to display in the legend.

- Elton
Message 2 of 2
(2,895 Views)