Skip to content

Commit e637bb9

Browse files
committed
2 parents 3dafb25 + dc5bef1 commit e637bb9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

docs/content/box-plots.fsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
#r "../../bin/FSharp.Plotly.dll"
44

55
(**
6-
# FSharp.Plotly: Pie and Doughnut Charts
6+
# FSharp.Plotly: BoxPlot Charts
77
8-
*Summary:* This example shows how to create pie and doughnut charts in F#.
8+
*Summary:* This example shows how to create boxplot charts in F#.
9+
10+
A boxplot chart can be created using the `Chart.BoxPlot` function.
911
10-
A pie or a doughnut chart can be created using the `Chart.Pie` and `Chart.Doughnut` functions.
11-
When creating pie or doughnut charts, it is usually desirable to provide both labels and
12-
values.
1312
*)
1413

1514
open FSharp.Plotly
1615

17-
let values = [19; 26; 55;]
18-
let labels = ["Residential"; "Non-Residential"; "Utility"]
16+
let y = [2.; 1.5; 5.; 1.5; 3.; 2.5; 2.5; 1.5; 3.5; 1.]
17+
let x = ["bin1";"bin2";"bin1";"bin2";"bin1";"bin2";"bin1";"bin1";"bin2";"bin1"]
1918

20-
(*** define-output:pie1 ***)
21-
Chart.Pie(values,labels)
22-
(*** include-it:pie1 ***)
19+
(*** define-output:box1 ***)
20+
Chart.BoxPlot(x,y,Jitter=0.3,Boxpoints=StyleOption.Boxpoints.Outliers)
21+
|> Chart.Show
22+
(*** include-it:box1 ***)

docs/content/heatmaps.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let colnames = ["Tp0";"Tp30";"Tp60";"Tp160"]
2727
let colorscaleValue =
2828
//StyleOption.ColorScale.Electric
2929
StyleOption.ColorScale.Custom [(0.0,"#3D9970");(1.0,"#001f3f")]
30-
30+
// Generating the Heatmap
3131
(*** define-output:heat1 ***)
3232
Chart.HeatMap(matrix,colnames,rownames,Colorscale=colorscaleValue,Showscale=true)
3333
|> Chart.withSize(700.,500.)

0 commit comments

Comments
 (0)