Skip to content

Commit

Permalink
add 404 docs template source
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Aug 8, 2023
1 parent 2e8d8f8 commit 9845b4d
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
1 change: 1 addition & 0 deletions Plotly.NET.sln
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{7B09CC0A-F1E1-4094-9DE4-B047581E01F0}"
ProjectSection(SolutionItems) = preProject
docs\Dockerfile = docs\Dockerfile
docs\404.fsx.txt = docs\404.fsx.txt
docs\index.fsx = docs\index.fsx
docs\NuGet.config = docs\NuGet.config
docs\_template.html = docs\_template.html
Expand Down
75 changes: 75 additions & 0 deletions docs/404.fsx.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
(*** hide ***)

(*** condition: prepare ***)
#r "nuget: Deedle"
#r "nuget: FsHttp"
#r "nuget: Newtonsoft.JSON, 13.0.1"
#r "nuget: DynamicObj, 2.0.0"
#r "nuget: Giraffe.ViewEngine.StrongName, 2.0.0-alpha1"
#r "../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll"

Plotly.NET.Defaults.DefaultDisplayOptions <-
Plotly.NET.DisplayOptions.init (PlotlyJSReference = Plotly.NET.PlotlyJSReference.NoReference)

open Plotly.NET

let data = [
[0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0;]
[0; 0; 0; 0; 4; 0; 4; 4; 4; 4; 0; 0; 0; 0; 4; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0;]
[0; 0; 0; 4; 4; 0; 4; 0; 0; 4; 0; 0; 0; 4; 4; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0;]
[0; 0; 4; 0; 4; 0; 4; 0; 0; 4; 0; 0; 4; 0; 4; 0; 0; 0; 0; 0; 0; 0; 0; 0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4; 4; 0; 4; 0; 0; 4; 0; 4; 4; 0; 0;]
[0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0;]
]

let histChart =
Chart.Heatmap(
zData = data,
ZSmooth = StyleParam.SmoothAlg.Best,
ReverseYAxis = true,
ShowScale = false
)
|> Chart.withSize(1000,1000)

(*** condition: ipynb ***)
#if IPYNB
#r "nuget: Plotly.NET, {{fsdocs-package-version}}"
#r "nuget: Plotly.NET.Interactive, {{fsdocs-package-version}}"
#endif // IPYNB

(**
# Page not found =(

[click here](/) to return to the main documentation page.

*)

(***hide***)
histChart |> GenericChart.toChartHTML
(***include-it-raw***)

0 comments on commit 9845b4d

Please sign in to comment.