|
pir chart |
|
[Original mermaid js pie chart documentation](https://mermaid-js.github.io/mermaid/#/pie)
|
|
\ No newline at end of file |
|
|
|
|
|
>A pie chart (or a circle chart) is a circular statistical graphic, which is divided into slices to illustrate numerical proportion. In a pie chart, the arc length of each slice (and consequently its central angle and area), is proportional to the quantity it represents. While it is named for its resemblance to a pie which has been sliced, there are variations on the way it can be presented. The earliest known pie chart is generally credited to William Playfair's Statistical Breviary of 1801 -Wikipedia
|
|
|
|
|
|
|
|
To create a pie chart use `Create` method of `PieChart` class
|
|
|
|
```c#
|
|
|
|
var pie = PieChart.Create("Goods", showData: true);
|
|
|
|
```
|
|
|
|
|
|
|
|
## Adding values
|
|
|
|
To add value simply call `Add` method
|
|
|
|
```c#
|
|
|
|
pie.Add("Some", 44); // int
|
|
|
|
pie.Add("Someq", 44.0); // double
|
|
|
|
pie.Add("Somes", 44m); // decimal
|
|
|
|
pie.Add("Somse", 44f); // float
|
|
|
|
```
|
|
|
|
|
|
|
|
## Generating syntax
|
|
|
|
```c#
|
|
|
|
string markdownSyntax = pie.Render();
|
|
|
|
``` |
|
|
|
\ No newline at end of file |