Add createDiv() method to Graph class and update graph-classes.js, graphs.html, and graph-styles.css

This commit is contained in:
Sietse Jonker
2024-04-02 16:39:32 +02:00
parent 5316e2d647
commit b69b029628
4 changed files with 27 additions and 12 deletions

View File

@@ -46,11 +46,12 @@ body {
display: flex;
flex-direction: row;
align-items: center;
border: 2px solid #ccc;
align-self: center;
border: 3px solid #ccc;
border-radius: 10px;
margin: 20px;
padding: 20px;
width: 90;
width: 95%;
box-sizing: border-box;
}
@@ -108,11 +109,20 @@ body {
}
.js-plotly-plot {
align-self: center;
width: 95%;
width: 100%;
height: 100%;
border-radius: 20px;
border: 2px solid #000;
margin: 10px;
align-self: center center;
}
/* Additional styling as needed */
.graphBody {
display: flex;
padding: 10px;
border: 3px solid #ccc;
border-radius: 10px;
justify-content: center;
width: 95%;
height: 100%;
align-content: center;
align-self: center;
}

View File

@@ -65,6 +65,7 @@
border: 3px solid #000;
border-radius: 30px;
}
canvas {
margin-bottom: 20px;
}