LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pie Chart?

Hi everyone!
 
Is it possible to do a pie chart with the DSC module? If yes, how to do this. If no, is there any way to do a chart similar like a pie chart?
 
 
Thank you very much,
Stephanie
0 Kudos
Message 1 of 18
(9,180 Views)

As far as I know, The DSC module does not provide any data analysis and display devices other than the trend graphs.

What you can do is use the picture control to draw your chart. Try placing a radar or polar plot on your front panel (should be inside the Graph>>Controls palette) and you should get some VIs on your diagram which will show you how to work with the picture control.


___________________
Try to take over the world!
0 Kudos
Message 2 of 18
(9,169 Views)
Thank you tst for your answer.
 
I don't know how a polar plot works and i don't know what to do with the code in the diagram bloc.
 
Is there any example of this?
 
Thanx again
Stephanie
 
0 Kudos
Message 3 of 18
(9,161 Views)
G Toolbox (http://www.geocities.com/gzou999/index.html) supports 3D Pie Chart.
George Zou
Message 4 of 18
(9,160 Views)
HEY !!

That's cool ! You have nice VIs zou !

Well done and thanks for sharing your work Smiley Wink !

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 5 of 18
(9,152 Views)

@Peachy wrote:
 
I don't know how a polar plot works and i don't know what to do with the code in the diagram bloc.
 
Is there any example of this?

I don't know of any example for this, but there are some examples for how to use the picture control in the example finder (Help>>Find Examples).

You should be able to do this by using the Draw Arc VI several times to create a circle (or maybe even an ellipse, for the 3D look) with several filled areas. Such code is not terribly complicated, but will take some time to write, so I will leave the exercise to you. You could potentially rip the code from the radar plot VI which creates the labels and the legend.


___________________
Try to take over the world!
Message 6 of 18
(9,130 Views)
Thanx to everyone who helps me, but it's kinda too hard for me to do this!
So I change my mind and I'm gonna use a bar graph instead a pie graph.
 
Thanx again, you're all awesome!! Smiley Very Happy
 
Stephanie
0 Kudos
Message 7 of 18
(9,130 Views)

One other suggestion...if you have Microsoft Excel and/or Word and the Report Generation Toolkit, there are some MSGraph examples that ship with the toolkit that generate pie graphs:

[LabVIEW]\examples\office\MSGraph Examples.llb\Pie Graph (Excel).vi
[LabVIEW]\examples\office\MSGraph Examples.llb\Pie Graph (Word).vi

-D

0 Kudos
Message 8 of 18
(9,118 Views)

Peachy wrote:
So I change my mind and I'm gonna use a bar graph instead a pie graph.

If you ever have to go back to a pie chart, there is an old LabVIEW example here. Not as nice as g toolbox ... or MS Graph, but it's there.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 9 of 18
(9,116 Views)
If you have Microsoft office installed on the computer, you can use activex chart objects from excel inside a vi. If you don't have office, you can download office web components and get the activex controls.
0 Kudos
Message 10 of 18
(9,104 Views)