Skip to content

Commit

Permalink
finish docs rework
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Aug 2, 2023
1 parent 64c1130 commit 28e7466
Show file tree
Hide file tree
Showing 19 changed files with 24,101 additions and 68 deletions.
1 change: 0 additions & 1 deletion Plotly.NET.sln
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "03_3D-charts", "03_3D-charts", "{A731D91F-56BB-4A68-8AB2-857E3BC28E2F}"
ProjectSection(SolutionItems) = preProject
docs\3D-charts\3d-cone-charts.fsx = docs\3D-charts\3d-cone-charts.fsx
docs\3D-charts\3d-isosurface-plots .fsx = docs\3D-charts\3d-isosurface-plots .fsx
docs\3D-charts\3d-mesh-plots.fsx = docs\3D-charts\3d-mesh-plots.fsx
docs\3D-charts\3d-scatter-plots.fsx = docs\3D-charts\3d-scatter-plots.fsx
docs\3D-charts\3d-streamtube-plots.fsx = docs\3D-charts\3d-streamtube-plots.fsx
Expand Down
File renamed without changes.
13 changes: 3 additions & 10 deletions docs/3D-charts/3d-streamtube-plots.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ index: 5
#r "nuget: Newtonsoft.JSON, 13.0.1"
#r "nuget: DynamicObj, 2.0.0"
#r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1"
#r "../data/Deedle.dll"
#r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll"

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

#r "nuget: Deedle"
#r "nuget: FsHttp"

open Deedle
open FsHttp
open System
open Plotly.NET
open Plotly.NET.TraceObjects

let tubeData =
http {
GET @"https://raw.githubusercontent.com/plotly/datasets/master/streamtube-wind.csv"
}
|> Request.send
|> Response.toFormattedText
|> Frame.ReadCsvString
__SOURCE_DIRECTORY__ + "/../data/streamtube-wind.csv"
|> Frame.ReadCsv

let streamTube =
Chart.StreamTube(
Expand Down
Empty file removed docs/_template.ipynb
Empty file.
14 changes: 6 additions & 8 deletions docs/categorical-charts/parallel-coords.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ index: 2
#r "nuget: Newtonsoft.JSON, 13.0.1"
#r "nuget: DynamicObj, 2.0.0"
#r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1"
#r "../data/Deedle.dll"
#r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll"

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

open Plotly.NET.TraceObjects

#r "nuget: Deedle"

open Deedle

let parcoordsStyled =

let data =
__SOURCE_DIRECTORY__ + "/../data/iris.csv"
__SOURCE_DIRECTORY__ + "/../data/iris_cat.csv"
|> Frame.ReadCsv

let dims =
[ Dimension.initParallel (
Label = "sepal_length",
Values = (data |> Frame.getCol "sepal length" |> Series.values),
Values = (data |> Frame.getCol "sepal_length" |> Series.values),
Range = StyleParam.Range.MinMax(0., 8.)
)
Dimension.initParallel (
Label = "sepal_width",
Values = (data |> Frame.getCol "sepal width" |> Series.values),
Values = (data |> Frame.getCol "sepal_width" |> Series.values),
Range = StyleParam.Range.MinMax(0., 8.)
)
Dimension.initParallel (
Label = "petal_length",
Values = (data |> Frame.getCol "petal length" |> Series.values),
Values = (data |> Frame.getCol "petal_length" |> Series.values),
Range = StyleParam.Range.MinMax(0., 8.)
)
Dimension.initParallel (
Label = "petal_width",
Values = (data |> Frame.getCol "petal width" |> Series.values),
Values = (data |> Frame.getCol "petal_width" |> Series.values),
Range = StyleParam.Range.MinMax(0., 8.)
) ]

Expand Down
5 changes: 1 addition & 4 deletions docs/chart-layout/update_menus.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ index: 8
#r "nuget: Newtonsoft.JSON, 13.0.1"
#r "nuget: DynamicObj, 2.0.0"
#r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1"
#r "../data/Deedle.dll"
#r "../../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll"

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

#r "nuget: FsHttp"
#r "nuget: Deedle"

open FsHttp
open Deedle
open Plotly.NET
open Plotly.NET.LayoutObjects
Expand Down
Binary file added docs/data/Deedle.dll
Binary file not shown.
Loading

0 comments on commit 28e7466

Please sign in to comment.