Spaces:
Running
Running
takarajordan
commited on
Commit
•
aa31781
1
Parent(s):
24fe773
Upload 4 files
Browse files- css/styles.css +13 -0
- data/plot_data.json +0 -0
- index.html +2 -2
- js/visualization.js +10 -0
css/styles.css
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
body {
|
3 |
+
margin: 0;
|
4 |
+
padding: 20px;
|
5 |
+
font-family: Arial, sans-serif;
|
6 |
+
}
|
7 |
+
|
8 |
+
#plot {
|
9 |
+
width: 100%;
|
10 |
+
height: 700px;
|
11 |
+
max-width: 1000px;
|
12 |
+
margin: 0 auto;
|
13 |
+
}
|
data/plot_data.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
index.html
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec8af6a72ff56373863ba68121e055b8fe4fa1844fc91de8fb03424f71b7b4ce
|
3 |
+
size 301
|
js/visualization.js
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
fetch('data/plot_data.json')
|
3 |
+
.then(response => response.json())
|
4 |
+
.then(plotData => {
|
5 |
+
Plotly.newPlot('plot',
|
6 |
+
plotData.data,
|
7 |
+
plotData.layout,
|
8 |
+
{displayModeBar: false}
|
9 |
+
);
|
10 |
+
});
|