-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrough.html
54 lines (53 loc) · 1.45 KB
/
rough.html
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
var gs_x = gs_x; // Sample data, replace with actual values
var gs_y = gs_y;
var tas_x = tas_x;
var tas_y = tas_y;
var dif_x = dif_x;
var dif_y = dif_y;
var wind_direction = wind_direction;
var alt = alt
console.log("The value of myVariable is:", gs_x);
var traces = [
{
type: 'scatter',
x: [0, gs_x],
y: [0, gs_y],
mode: 'lines',
name: 'gs',
line: {color: 'black'},
},
{
type: 'scatter',
x: [0, tas_x],
y: [0, tas_y],
mode: 'lines+markers',
name: 'tas',
line: {color: 'orange'},
},
{
type: 'scatter',
x: [0, dif_x],
y: [0, dif_y],
mode: 'marker',
name: 'wind',
line: {color: 'red'},
}
];
// Layout
var layout = {
title: "Vector plot",
xaxis: {
title: {text: 'East-West'},
range: [-1000, 1000],
tickfont: {size: 10},
zeroline: false,
},
yaxis: {
title: {text: 'North-South'},
range: [-1000, 1000],
tickfont: {size: 10},
zeroline: false,
},
grid: {visible: true, dash: 'dash', opacity: 0.4},
legend: {font: {size: 8}},
};