Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Pie chart in measurement studio

Is there a way to plot pie chart using measurement studio in .Net?

0 Kudos
Message 1 of 3
(3,592 Views)

Hi falopsy,

 

Thanks for posting on the forum. My name is Mikko and I work at National Instruments as an Applications Engineer.

 

To my knowledge, no you cannot plot a pie chart with Measurement Studio at the moment. 

 

In Measurement Studio Getting Started Guide, page 39: "Windows Controls" you can find a list of Measurement Studio user interface controls encapsulated in the the Windows Forms .NET class library.

 

http://www.ni.com/pdf/manuals/373225d.pdf 

 

-Mikko

0 Kudos
Message 2 of 3
(3,577 Views)

Hi,

 

You can use the chart object that's installed with Visual Studio.

 

Curt

 

int[] pieData = new int[10];

            try
            {

                this.chart1.Series[0].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Pie;
 
                for (int i = 0; i < 10; i++)
                    pieData[i] = i;
                this.chart1.Series[0].Points.DataBindY(pieData);  
                 
            }
            catch
            {

            }
0 Kudos
Message 3 of 3
(3,571 Views)