forked from plotly/Plotly.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
118 lines (116 loc) · 4.97 KB
/
Program.cs
File metadata and controls
118 lines (116 loc) · 4.97 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
using System;
using Plotly.NET.CSharp;
using static Plotly.NET.StyleParam;
using static Plotly.NET.GenericChart;
namespace TestConsoleApp
{
class Program
{
static void Main(string[] args)
{
Chart.Grid(
nRows: 8,
nCols: 5,
gCharts:
new GenericChart[]
{
Chart.Scatter<int,int,string>(
x: new int [] { 1, 2 },
y: new int [] { 3, 4 },
mode: Mode.Markers
),
Chart.Point<int,int,string>(
x: new int [] { 5, 6 },
y: new int [] { 7, 8 }
),
Chart.Line<int,int,string>(
x: new int [] { 9, 10 },
y: new int [] { 11, 12 }
),
Chart.Bar<int,string,string>(
values: new int [] { 1,2 },
Keys: new string [] { "first", "second"}
),
Chart.Column<int,string,string>(
values: new int [] { 1,2 },
Keys: new string [] { "first", "second"}
),
Chart.Scatter3D<int,int,int,string>(
x: new int[] { 12, 13 },
y: new int [] { 13, 14 },
z: new int [] { 14, 15 },
mode: Mode.Markers
),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.ScatterPolar<int,int,string>(
theta: new int [] { 1, 2 },
r: new int [] { 3, 4 },
mode: Mode.Markers
),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.ScatterGeo<int,int,string>(
longitudes: new int [] { 1, 2 },
latitudes: new int [] { 3, 4 },
mode: Mode.Markers
),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.ScatterTernary<int,int,int,IConvertible,string>(
A: new int [] { 1, 2 },
B: new int [] { 3, 4 },
C: new int [] { 5, 6 }
),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.Carpet<double,double,double,double,double,double>(
carpetId: "testCarpet",
A: new double [] {4.0, 4.0, 4.0, 4.5, 4.5, 4.5, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0},
B: new double [] {1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 1.0, 2.0, 3.0},
Y: new double [] {2.0, 3.5, 4.0, 3.0, 4.5, 5.0, 5.5, 6.5, 7.5, 8.0, 8.5, 10.0}
),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.Pie<double,string,string>(
values: new double [] {1,2,3,4},
Labels: new string [] {"soos", "saas", "fiif", "leel"}
),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.ScatterSmith<double,double,string>(
real: new double [] {1,2,3,4},
imag: new double [] {1,2,3,4},
mode: Mode.Markers
),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
Chart.Invisible(),
}
)
.WithSize(1250,2000)
.Show();
Chart.Point<int, int, string>(
x: new int[] { 1, 2 },
y: new int[] { 3, 4 }
)
.WithTraceInfo("Hello from C#", ShowLegend: true)
.WithXAxisStyle<int, int, string>(TitleText: "x axis")
.WithYAxisStyle<int, int, string>(TitleText: "y axis")
.Show();
}
}
}