05-25-2016 06:11 AM
Is there a way to plot pie chart using measurement studio in .Net?
			
    
	
		
		
		05-26-2016
	
		
		08:50 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		09-23-2025
	
		
		03:05 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		
		
			Content Cleaner
		
		
		
		
		
		
		
		
	
			
		
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.
https://www.ni.com/docs/en-US/bundle/373225e/resource/373225e.pdf
-Mikko
05-26-2016 11:33 AM
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
            {
            }