Skip to content

Commit dd0aed2

Browse files
committed
Update docs:
- Sankey - Candlestick - Parralel Categories - Stacked Area
1 parent e44f1cd commit dd0aed2

File tree

3 files changed

+39
-5
lines changed

3 files changed

+39
-5
lines changed

FSharp.Plotly.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "content", "content", "{8E6D
4747
docsrc\content\index.fsx = docsrc\content\index.fsx
4848
docsrc\content\line-scatter-plots.fsx = docsrc\content\line-scatter-plots.fsx
4949
docsrc\content\multiple-charts.fsx = docsrc\content\multiple-charts.fsx
50+
docsrc\content\parallel-categories.fsx = docsrc\content\parallel-categories.fsx
5051
docsrc\content\parallel-coords.fsx = docsrc\content\parallel-coords.fsx
5152
docsrc\content\pie-daughnut-charts.fsx = docsrc\content\pie-daughnut-charts.fsx
5253
docsrc\content\plotly-wpf.fsx = docsrc\content\plotly-wpf.fsx
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
(*** hide ***)
2+
#r "netstandard"
3+
#r @"../../lib/Formatting/FSharp.Plotly.dll"
4+
open FSharp.Plotly
5+
6+
(**
7+
# FSharp.Plotly: Parallel Categories Plot
8+
9+
*Summary:* This example shows how to create parallel categories plot in F#.
10+
11+
The parallel categories diagram (also known as parallel sets or alluvial diagram) is a visualization of multi-dimensional categorical data sets. Each variable in the data set is represented by a column of rectangles, where each rectangle corresponds to a discrete value taken on by that variable. The relative heights of the rectangles reflect the relative frequency of occurrence of the corresponding value.
12+
13+
Combinations of category rectangles across dimensions are connected by ribbons, where the height of the ribbon corresponds to the relative frequency of occurrence of the combination of categories in the data set.
14+
*)
15+
16+
17+
let dims' =
18+
[
19+
Dimensions.init(["Cat1";"Cat1";"Cat1";"Cat1";"Cat2";"Cat2";"Cat3"],Label="A")
20+
Dimensions.init([0;1;0;1;0;0;0],Label="B",TickText=["YES","NO"])
21+
]
22+
23+
let parcats =
24+
Chart.ParallelCategories(dims=dims',Color=[0.;1.;0.;1.;0.;0.;0.],Colorscale = StyleParam.Colorscale.Blackbody)
25+
26+
27+
(***do-not-eval***)
28+
parcats |> Chart.Show
29+
30+
(*** include-value:parcats ***)

docsrc/tools/templates/template.cshtml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
<a href="@Root/getting-started.html">Getting started</a>
4747
@if (Properties.Dictionary.ContainsKey("page-source") && Properties["page-source"].ToString().EndsWith("getting-started.fsx"))
4848
{
49-
<ul class="nav nav-list">
50-
@*<li><a href="@Root/getting-started.html#Using-functional-F#-scripting-style">F# scripting style</a></li>*@
51-
<li><a href="@Root/getting-started.html#Using-dynamic-object-style">Dynamic object style</a></li>
52-
</ul>
53-
}
49+
<ul class="nav nav-list">
50+
@*<li><a href="@Root/getting-started.html#Using-functional-F#-scripting-style">F# scripting style</a></li>*@
51+
<li><a href="@Root/getting-started.html#Using-dynamic-object-style">Dynamic object style</a></li>
52+
</ul>
53+
}
5454
</li>
5555
@*<li><a href="@Root/getting-started.html">Getting started</a></li>*@
5656
<li class="nav-header">Plotly Charts</li>
@@ -65,10 +65,13 @@
6565
<li><a href="@Root/2d-histograms.html">2D Histograms</a></li>
6666
<li><a href="@Root/line-scatter-plots.html">Line and Scatter Plots</a></li>
6767
<li><a href="@Root/parallel-coords.html">Parallel coords Plots</a></li>
68+
<li><a href="@Root/parallel-categories.html">Parallel Categories Plots</a></li>
6869
<li><a href="@Root/pie-daughnut-charts.html">Pie and Doughnut Charts</a></li>
6970
<li><a href="@Root/polar-charts.html">Polar Charts</a></li>
7071
<li><a href="@Root/windrose-charts.html">Windrose Charts</a></li>
7172
<li><a href="@Root/range-plots.html">Range Plots</a></li>
73+
<li><a href="@Root/candlestick.html">Candlestick Charts</a></li>
74+
<li><a href="@Root/sankey.html">Sankey Diagrams</a></li>
7275
<li><a href="@Root/splom.html">Splom Plots</a></li>
7376
<li class="nav-header">Map Charts</li>
7477
<li><a href="@Root/choropleth-map.html">Choropleth</a></li>

0 commit comments

Comments
 (0)