Skip to content

Commit 28e7466

Browse files
committed
finish docs rework
1 parent 64c1130 commit 28e7466

19 files changed

+24101
-68
lines changed

Plotly.NET.sln

-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ EndProject
123123
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "03_3D-charts", "03_3D-charts", "{A731D91F-56BB-4A68-8AB2-857E3BC28E2F}"
124124
ProjectSection(SolutionItems) = preProject
125125
docs\3D-charts\3d-cone-charts.fsx = docs\3D-charts\3d-cone-charts.fsx
126-
docs\3D-charts\3d-isosurface-plots .fsx = docs\3D-charts\3d-isosurface-plots .fsx
127126
docs\3D-charts\3d-mesh-plots.fsx = docs\3D-charts\3d-mesh-plots.fsx
128127
docs\3D-charts\3d-scatter-plots.fsx = docs\3D-charts\3d-scatter-plots.fsx
129128
docs\3D-charts\3d-streamtube-plots.fsx = docs\3D-charts\3d-streamtube-plots.fsx

docs/3D-charts/3d-streamtube-plots.fsx

+3-10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ index: 5
1313
#r "nuget: Newtonsoft.JSON, 13.0.1"
1414
#r "nuget: DynamicObj, 2.0.0"
1515
#r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1"
16+
#r "../data/Deedle.dll"
1617
#r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll"
1718

1819
Plotly.NET.Defaults.DefaultDisplayOptions <-
@@ -35,22 +36,14 @@ Plotly.NET.Defaults.DefaultDisplayOptions <-
3536
let's first create some data for the purpose of creating example charts:
3637
*)
3738

38-
#r "nuget: Deedle"
39-
#r "nuget: FsHttp"
40-
4139
open Deedle
42-
open FsHttp
4340
open System
4441
open Plotly.NET
4542
open Plotly.NET.TraceObjects
4643

4744
let tubeData =
48-
http {
49-
GET @"https://raw.githubusercontent.com/plotly/datasets/master/streamtube-wind.csv"
50-
}
51-
|> Request.send
52-
|> Response.toFormattedText
53-
|> Frame.ReadCsvString
45+
__SOURCE_DIRECTORY__ + "/../data/streamtube-wind.csv"
46+
|> Frame.ReadCsv
5447

5548
let streamTube =
5649
Chart.StreamTube(

docs/_template.ipynb

Whitespace-only changes.

docs/categorical-charts/parallel-coords.fsx

+6-8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ index: 2
1313
#r "nuget: Newtonsoft.JSON, 13.0.1"
1414
#r "nuget: DynamicObj, 2.0.0"
1515
#r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1"
16+
#r "../data/Deedle.dll"
1617
#r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll"
1718

1819
Plotly.NET.Defaults.DefaultDisplayOptions <-
@@ -73,36 +74,33 @@ For even more styling control, use the respective TraceStyle function `TraceDoma
7374
*)
7475

7576
open Plotly.NET.TraceObjects
76-
77-
#r "nuget: Deedle"
78-
7977
open Deedle
8078

8179
let parcoordsStyled =
8280

8381
let data =
84-
__SOURCE_DIRECTORY__ + "/../data/iris.csv"
82+
__SOURCE_DIRECTORY__ + "/../data/iris_cat.csv"
8583
|> Frame.ReadCsv
8684

8785
let dims =
8886
[ Dimension.initParallel (
8987
Label = "sepal_length",
90-
Values = (data |> Frame.getCol "sepal length" |> Series.values),
88+
Values = (data |> Frame.getCol "sepal_length" |> Series.values),
9189
Range = StyleParam.Range.MinMax(0., 8.)
9290
)
9391
Dimension.initParallel (
9492
Label = "sepal_width",
95-
Values = (data |> Frame.getCol "sepal width" |> Series.values),
93+
Values = (data |> Frame.getCol "sepal_width" |> Series.values),
9694
Range = StyleParam.Range.MinMax(0., 8.)
9795
)
9896
Dimension.initParallel (
9997
Label = "petal_length",
100-
Values = (data |> Frame.getCol "petal length" |> Series.values),
98+
Values = (data |> Frame.getCol "petal_length" |> Series.values),
10199
Range = StyleParam.Range.MinMax(0., 8.)
102100
)
103101
Dimension.initParallel (
104102
Label = "petal_width",
105-
Values = (data |> Frame.getCol "petal width" |> Series.values),
103+
Values = (data |> Frame.getCol "petal_width" |> Series.values),
106104
Range = StyleParam.Range.MinMax(0., 8.)
107105
) ]
108106

docs/chart-layout/update_menus.fsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ index: 8
1313
#r "nuget: Newtonsoft.JSON, 13.0.1"
1414
#r "nuget: DynamicObj, 2.0.0"
1515
#r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1"
16+
#r "../data/Deedle.dll"
1617
#r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll"
1718

1819
Plotly.NET.Defaults.DefaultDisplayOptions <-
@@ -33,10 +34,6 @@ Plotly.NET.Defaults.DefaultDisplayOptions <-
3334
*Summary:* This example shows how to create charts with update menus in F#.
3435
*)
3536

36-
#r "nuget: FsHttp"
37-
#r "nuget: Deedle"
38-
39-
open FsHttp
4037
open Deedle
4138
open Plotly.NET
4239
open Plotly.NET.LayoutObjects

docs/data/Deedle.dll

2.39 MB
Binary file not shown.

0 commit comments

Comments
 (0)