[ Feature Request ] Pie chart

0 votes
asked Jan 28, 2018 in Wanted features by EdOfTheMountain

I wanted to make a pie chart script that counts lines of code.

  • Android Native Code.:  3712 (   8 % )
  • iOS Native Code.....:  3124 (   6 % )
  • Common Code.........: 38879 (  85 % )
  • Total...............: 45715 ( 100 % )

2 Answers

0 votes
answered Jan 30, 2018 by mgrol (3,150 points)
Hi,

I don't see how a pie chart fits into one of the official UML diagrams. What use case do you have in mind?

BR,

Michael
0 votes
answered Feb 6, 2018 by Anthony-Gaudino (5,720 points)
edited Feb 6, 2018 by Anthony-Gaudino

It's currently not possible with PlantUML, but you may use Google charts or other web service to add charts:

Example:

@startuml
start
:foo;
note left
You can use images
<img:https://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World>
end note
stop
@enduml

 Graphviz has the wedged style that can be applied to nodes, and look like a pie chart, so maybe this could be used to draw a pie chart.

...