Skip to content

Commit 6b6aa7f

Browse files
committed
Fix .dll
1 parent 878f75b commit 6b6aa7f

24 files changed

+958
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,13 @@ docs/content/license.md
190190
docs/content/release-notes.md
191191
.fake
192192
docs/tools/FSharp.Formatting.svclog
193+
/nuget/docs/output/content/tips.js
194+
/nuget/docs/output/content/style_light.css
195+
/nuget/docs/output/content/style.css.bak
196+
/nuget/docs/output/content/style.css
197+
/nuget/docs/output/content/img/github.png
198+
/nuget/docs/output/content/img/github-blue.png
199+
/nuget/docs/files/img/logo.png
200+
/nuget/docs/files/img/logo-template.pdn
201+
/nuget/lib/net40
202+
/nuget/FSharp.Plotly.0.6.0-beta.nuspec

nuget/docs/content/2d-histograms.fsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
(*** hide ***)
2+
#r "../../bin/Newtonsoft.Json.dll"
3+
#r "../../bin/FSharp.Plotly.dll"
4+
5+
(**
6+
# FSharp.Plotly: Histogram2d
7+
8+
*Summary:* This example shows how to create a bi-dimensional histogram of two data samples in F#.
9+
10+
A Histogram2d chart can be created using the `Chart.Histogram2d` functions.
11+
*)
12+
13+
open FSharp.Plotly
14+
15+
let rnd = System.Random()
16+
let x' = [for i=0 to 500 do yield rnd.NextDouble() ]
17+
let y' = [for i=0 to 500 do yield rnd.NextDouble() ]
18+
19+
(*** define-output:histo1 ***)
20+
[for i=0 to 500 do yield rnd.NextDouble(),rnd.NextDouble() ]
21+
|> Chart.Histogram2d
22+
|> Chart.withSize(500.,500.)
23+
(*** include-it:histo1 ***)

nuget/docs/content/3d-line-plots.fsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
(*** hide ***)
2+
#r "../../bin/Newtonsoft.Json.dll"
3+
#r "../../bin/FSharp.Plotly.dll"
4+
5+
(**
6+
# FSharp.Plotly: Pie and Doughnut Charts
7+
8+
*Summary:* This example shows how to create pie and doughnut charts in F#.
9+
10+
A pie or a doughnut chart can be created using the `Chart.Pie` and `Chart.Doughnut` functions.
11+
When creating pie or doughnut charts, it is usually desirable to provide both labels and
12+
values.
13+
*)
14+
15+
open FSharp.Plotly
16+
17+
let values = [19; 26; 55;]
18+
let labels = ["Residential"; "Non-Residential"; "Utility"]
19+
20+
(*** define-output:pie1 ***)
21+
Chart.Pie(values,labels)
22+
(*** include-it:pie1 ***)
23+
24+
(*** define-output:doughnut1 ***)
25+
Chart.Doughnut(values,labels,Hole=0.3)
26+
(*** include-it:doughnut1 ***)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
(*** hide ***)
2+
#r "../../bin/Newtonsoft.Json.dll"
3+
#r "../../bin/FSharp.Plotly.dll"
4+
5+
(**
6+
# FSharp.Plotly: Scatter3d Charts
7+
8+
*Summary:* This example shows how to create three-dimensional scatter charts in F#.
9+
10+
A Scatter3d chart report shows a three-dimensional spinnable view of your data
11+
*)
12+
13+
open FSharp.Plotly
14+
15+
let x = [19; 26; 55;]
16+
let y = [19; 26; 55;]
17+
let z = [19; 26; 55;]
18+
19+
20+
(*** define-output:scatter3d_1 ***)
21+
Chart.Scatter3d(x,y,z,StyleOption.Mode.Markers)
22+
|> Chart.withX_AxisStyle("my x-axis")
23+
|> Chart.withY_AxisStyle("my y-axis")
24+
|> Chart.withZ_AxisStyle("my z-axis")
25+
|> Chart.withSize(800.,800.)
26+
27+
(*** include-it:scatter3d_1 ***)
28+
|> Chart.Show
29+
30+
31+
32+
33+
34+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
(*** hide ***)
2+
#r "../../bin/Newtonsoft.Json.dll"
3+
#r "../../bin/FSharp.Plotly.dll"
4+
5+
(**
6+
# FSharp.Plotly: Pie and Doughnut Charts
7+
8+
*Summary:* This example shows how to create pie and doughnut charts in F#.
9+
10+
A pie or a doughnut chart can be created using the `Chart.Pie` and `Chart.Doughnut` functions.
11+
When creating pie or doughnut charts, it is usually desirable to provide both labels and
12+
values.
13+
*)
14+
15+
open FSharp.Plotly
16+
17+
let values = [19; 26; 55;]
18+
let labels = ["Residential"; "Non-Residential"; "Utility"]
19+
20+
(*** define-output:pie1 ***)
21+
Chart.Pie(values,labels)
22+
(*** include-it:pie1 ***)
23+
24+
(*** define-output:doughnut1 ***)
25+
Chart.Doughnut(values,labels,Hole=0.3)
26+
(*** include-it:doughnut1 ***)

nuget/docs/content/area-plots.fsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
(*** hide ***)
2+
#r "../../bin/Newtonsoft.Json.dll"
3+
#r "../../bin/FSharp.Plotly.dll"
4+
5+
(**
6+
# FSharp.Plotly: Area Charts
7+
8+
*Summary:* This example shows how to create an area charts in F#.
9+
10+
An area chart or area graph displays graphically quantitive data. It is based on the line chart.
11+
The area between axis and line are commonly emphasized with colors, textures and hatchings.
12+
*)
13+
14+
open FSharp.Plotly
15+
16+
let x = [1.; 2.; 3.; 4.; 5.; 6.; 7.; 8.; 9.; 10.; ]
17+
let y = [5.; 2.5; 5.; 7.5; 5.; 2.5; 7.5; 4.5; 5.5; 5.]
18+
//let y' = [2.; 1.5; 5.; 1.5; 3.; 2.5; 2.5; 1.5; 3.5; 1.]
19+
20+
(*** define-output:area1 ***)
21+
Chart.Area(x,y)
22+
(*** include-it:area1 ***)
23+
24+
25+
(*** define-output:area2 ***)
26+
Chart.SplineArea(x,y)
27+
(*** include-it:area2 ***)
28+
29+

nuget/docs/content/bar-charts.fsx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
(*** hide ***)
2+
#r "../../bin/Newtonsoft.Json.dll"
3+
#r "../../bin/FSharp.Plotly.dll"
4+
5+
(**
6+
# FSharp.Plotly: Bar and Column Charts
7+
8+
*Summary:* This example shows how to create bar and a column charts in F#.
9+
10+
A bar chart or bar graph is a chart that presents grouped data with rectangular bars with
11+
lengths proportional to the values that they represent. The bars can be plotted vertically
12+
or horizontally. A vertical bar chart is called a column bar chart.
13+
*)
14+
15+
open FSharp.Plotly
16+
17+
let values = [20; 14; 23;]
18+
let keys = ["Product A"; "Product B"; "Product C";]
19+
let labels = ["27% market share"; "24% market share"; "19% market share";]
20+
21+
(*** define-output:bar1 ***)
22+
Chart.Column(keys,values,Labels=labels,Opacity=0.3,Marker=Options.Marker(Color="rgba(222,45,38,0.8)"))
23+
(*** include-it:bar1 ***)
24+
25+
(*** define-output:bar2 ***)
26+
Chart.Bar(keys,values)
27+
(*** include-it:bar2 ***)
28+
29+
30+
(**
31+
32+
## Stacked bar chart or column charts
33+
The following example shows how to create a stacked bar chart by combining bar charts created by `Chart.StackedBar`
34+
*)
35+
36+
37+
(*** define-output:bar3 ***)
38+
[
39+
Chart.StackedBar(keys,values,Name="old");
40+
Chart.StackedBar(keys,[8; 21; 13;],Name="new")
41+
]
42+
|> Chart.Combine
43+
(*** include-it:bar3 ***)

nuget/docs/content/box-plots.fsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
(*** hide ***)
2+
#r "../../bin/Newtonsoft.Json.dll"
3+
#r "../../bin/FSharp.Plotly.dll"
4+
5+
(**
6+
# FSharp.Plotly: BoxPlot Charts
7+
8+
*Summary:* This example shows how to create boxplot charts in F#.
9+
10+
A box plot or boxplot is a convenient way of graphically depicting groups of numerical data through their quartiles.
11+
Box plots may also have lines extending vertically from the boxes (whiskers) indicating variability outside the upper
12+
and lower quartiles, hence the terms box-and-whisker plot and box-and-whisker diagram.
13+
Outliers may be plotted as individual points.
14+
*)
15+
16+
open FSharp.Plotly
17+
18+
let y = [2.; 1.5; 5.; 1.5; 3.; 2.5; 2.5; 1.5; 3.5; 1.]
19+
let x = ["bin1";"bin2";"bin1";"bin2";"bin1";"bin2";"bin1";"bin1";"bin2";"bin1"]
20+
21+
(*** define-output:box1 ***)
22+
Chart.BoxPlot(x,y,Jitter=0.3,Boxpoints=StyleOption.Boxpoints.Outliers)
23+
(*** include-it:box1 ***)

nuget/docs/content/bubble-charts.fsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
(*** hide ***)
2+
#r "../../bin/Newtonsoft.Json.dll"
3+
#r "../../bin/FSharp.Plotly.dll"
4+
5+
(**
6+
# FSharp.Plotly: Bubble chart
7+
8+
*Summary:* This example shows how to create pie and doughnut charts in F#.
9+
10+
A bubble chart is a type of chart that displays three dimensions of data. Each entity with its triplet (x, y, size)
11+
of associated data is plotted as a disk. The first two values determine the disk's xy location and the
12+
third its size.
13+
*)
14+
15+
open FSharp.Plotly
16+
17+
let x = [2; 4; 6;]
18+
let y = [4; 1; 6;]
19+
let size = [19; 26; 55;]
20+
21+
(*** define-output:pie1 ***)
22+
Chart.Bubble(x,y,size,Color=["rgba(255,255,100,0.5)";"rgba(255,255,10,0.5)";"rgba(255,2,10,0.5)"])
23+
(*** include-it:pie1 ***)

nuget/docs/content/contour-plots.fsx

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
(*** hide ***)
2+
#r "../../bin/Newtonsoft.Json.dll"
3+
#r "../../bin/FSharp.Plotly.dll"
4+
5+
(**
6+
# FSharp.Plotly: Contour plot
7+
8+
*Summary:* This example shows how to create contour plot in F#.
9+
10+
A contour plot is a graphical technique for representing a 3-dimensional surface by plotting
11+
constant z slices, called contours, on a 2-dimensional format. That is, given a value for z,
12+
lines are drawn for connecting the (x,y) coordinates where that z value occurs.
13+
The contour plot is an alternative to a 3-D surface plot.
14+
15+
The contour plot is an alternative to a 3-D surface plot.
16+
17+
*)
18+
19+
open System
20+
open FSharp.Plotly
21+
22+
23+
// Generate linearly spaced vector
24+
let linspace (min,max,n) =
25+
if n <= 2 then failwithf "n needs to be larger then 2"
26+
let bw = float (max - min) / (float n - 1.)
27+
[|min ..bw ..max|]
28+
29+
30+
// Create example data
31+
let size = 100
32+
let x = linspace(-2. * Math.PI, 2. * Math.PI, size)
33+
let y = linspace(-2. * Math.PI, 2. * Math.PI, size)
34+
35+
let f x y = - (5. * x / (x**2. + y**2. + 1.) )
36+
37+
let z =
38+
Array.init size (fun i ->
39+
Array.init size (fun j -> f x.[j] y.[i] )
40+
)
41+
42+
43+
(*** define-output:contour1 ***)
44+
z
45+
|> Chart.Contour
46+
|> Chart.withSize(600.,600.)
47+
(*** include-it:contour1 ***)

0 commit comments

Comments
 (0)