Skip to content

Commit 1d66eba

Browse files
author
bvenn
committed
add sunburst chart documentation
1 parent 2bbb35a commit 1d66eba

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

docs/2_5_pie-doughnut-charts.fsx

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ let labels = ["Residential"; "Non-Residential"; "Utility"]
2727

2828
(**
2929
30-
A pie or a doughnut chart can be created using the `Chart.Pie` and `Chart.Doughnut` functions.
31-
When creating pie or doughnut charts, it is usually desirable to provide both labels and
32-
values.
30+
A pie, doughnut, or sunburst chart can be created using the `Chart.Pie`, `Chart.Doughnut`, and `Chart.Sunburst` functions.
31+
When creating pie charts, it is usually desirable to provide both labels and values.
3332
3433
*)
3534

@@ -60,4 +59,21 @@ doughnut1
6059

6160
(***hide***)
6261
doughnut1 |> GenericChart.toChartHTML
63-
(***include-it-raw***)
62+
(***include-it-raw***)
63+
64+
let sunburst1 =
65+
Chart.Sunburst(
66+
["A";"B";"C";"D";"E"],
67+
["";"";"B";"B";""],
68+
Values=[5.;0.;3.;2.;3.],
69+
Text=["At";"Bt";"Ct";"Dt";"Et"]
70+
)
71+
72+
(*** condition: ipynb ***)
73+
#if IPYNB
74+
sunburst1
75+
#endif // IPYNB
76+
77+
(***hide***)
78+
sunburst1 |> GenericChart.toChartHTML
79+
(***include-it-raw***)

0 commit comments

Comments
 (0)