-
Notifications
You must be signed in to change notification settings - Fork 81
/
03_3_3d-cone-charts.fsx
51 lines (38 loc) · 1.21 KB
/
03_3_3d-cone-charts.fsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
(**
---
title: 3D Cone plots
category: 3D Charts
categoryindex: 4
index: 4
---
*)
(*** hide ***)
(*** condition: prepare ***)
#r "nuget: Newtonsoft.JSON, 13.0.1"
#r "nuget: DynamicObj, 2.0.0"
#r "nuget: Giraffe.ViewEngine, 1.4.0"
#r "../src/Plotly.NET/bin/Release/netstandard2.0/Plotly.NET.dll"
Plotly.NET.Defaults.DefaultDisplayOptions <-
Plotly.NET.DisplayOptions.init (PlotlyJSReference = Plotly.NET.PlotlyJSReference.NoReference)
(*** condition: ipynb ***)
#if IPYNB
#r "nuget: Plotly.NET, {{fsdocs-package-version}}"
#r "nuget: Plotly.NET.Interactive, {{fsdocs-package-version}}"
#endif // IPYNB
(**
# 3D Cone plots
[![Binder]({{root}}img/badge-binder.svg)](https://mybinder.org/v2/gh/plotly/plotly.net/gh-pages?urlpath=/tree/home/jovyan/{{fsdocs-source-basename}}.ipynb) 
[![Notebook]({{root}}img/badge-notebook.svg)]({{root}}{{fsdocs-source-basename}}.ipynb)
*Summary:* This example shows how to create 3D-Cone charts in F#.
*)
open System
open Plotly.NET
let cone =
Chart.Cone(x = [ 1; 1; 1 ], y = [ 1; 2; 3 ], z = [ 1; 1; 1 ], u = [ 1; 2; 3 ], v = [ 1; 1; 2 ], w = [ 4; 4; 1 ])
(*** condition: ipynb ***)
#if IPYNB
cone
#endif // IPYNB
(***hide***)
cone |> GenericChart.toChartHTML
(*** include-it-raw ***)