Cancel
Showing results for 
Search instead for 
Did you mean: 

Pie chart

Pioneer
Pioneer

Hello everyone,

 

I would like to make a pie chart from all the statworkingportions of tanks in plantsimulation. I first need to write the portions in a table after the simulation.

 

Do you know how to do this?

 

Thanks in advance!

 

Greetings,

 

Paul

 

 

 

5 REPLIES 5

Re: Pie chart

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
Hello Paul,

if you want display the working portion for each tank, you can use the display (type pie, max. value=1).

Regards,

Steffen
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Pie chart

Pioneer
Pioneer

Hello Steffen,

 

I'd like to put a pie for every tank in the HTML report. So for every tank there has to be a pie chart with working, waiting an blocked.

 

Paul

Re: Pie chart

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you can define it in each chart in the table input channels, write in the row index the name of the value, in the first column the value, you want to display. Set the chart to sample, Display: Pie, Data in column;

 

chart.png

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Pie chart

Siemens Phenom Siemens Phenom
Siemens Phenom

The easiest way would be to insert a Chart per Tank, and add all these Charts to the HTMLReport. See the left Frame of my example model.


If you do not want to insert all these Charts (especially if you often want to change the number of Tanks), you can call a Method from the HTMLReport that configures a common Chart object for each of the Tanks. See the left Frame of my example model (note: I used SingleProcs instead of Tanks). Instead of manually putting all the Tanks (SingleProcs) into the HTMLReport, you could write a Method that collects all Tanks.

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Pie chart

Pioneer
Pioneer

Thank you very much!

 

Do you maybe know if it is possible to add up cells in a table? (like you can do in Excel)

I want the blocking portion but there is no Singleproc.statblockingportion. So what I need to do add up the working and waiting portion and subtract this from 1. (see image)

 

Paul12345.PNG