Spaces:
Sleeping
Sleeping
Update templates/output.html
Browse files- templates/output.html +38 -2
templates/output.html
CHANGED
|
@@ -105,8 +105,9 @@
|
|
| 105 |
<h2 style="color:#ECB365;">Makable Predicted & Diff vs EngCts</h2>
|
| 106 |
<div id="line-chart" style="height: 400px;"></div>
|
| 107 |
</div>
|
| 108 |
-
|
| 109 |
-
|
|
|
|
| 110 |
const chartData = {{ chart_data | safe }};
|
| 111 |
|
| 112 |
const trace1 = {
|
|
@@ -136,9 +137,44 @@
|
|
| 136 |
margin: { t: 40, l: 50, r: 30, b: 50 }
|
| 137 |
};
|
| 138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
Plotly.newPlot('line-chart', [trace1, trace2], layout);
|
| 140 |
</script>
|
| 141 |
|
|
|
|
| 142 |
<!-- Pagination Controls -->
|
| 143 |
<div class="pagination">
|
| 144 |
{% if has_prev %}
|
|
|
|
| 105 |
<h2 style="color:#ECB365;">Makable Predicted & Diff vs EngCts</h2>
|
| 106 |
<div id="line-chart" style="height: 400px;"></div>
|
| 107 |
</div>
|
| 108 |
+
|
| 109 |
+
<!-- Line Chart with Markers -->
|
| 110 |
+
<!-- <script>
|
| 111 |
const chartData = {{ chart_data | safe }};
|
| 112 |
|
| 113 |
const trace1 = {
|
|
|
|
| 137 |
margin: { t: 40, l: 50, r: 30, b: 50 }
|
| 138 |
};
|
| 139 |
|
| 140 |
+
Plotly.newPlot('line-chart', [trace1, trace2], layout);
|
| 141 |
+
</script> -->
|
| 142 |
+
|
| 143 |
+
<!-- Dot Chart with Markers -->
|
| 144 |
+
<script>
|
| 145 |
+
const chartData = {{ chart_data | safe }};
|
| 146 |
+
|
| 147 |
+
const trace1 = {
|
| 148 |
+
x: chartData.EngCts,
|
| 149 |
+
y: chartData.Makable_Predicted,
|
| 150 |
+
type: 'scatter',
|
| 151 |
+
mode: 'markers', // Changed here
|
| 152 |
+
name: 'Makable_Predicted',
|
| 153 |
+
marker: { color: '#00BFFF' }
|
| 154 |
+
};
|
| 155 |
+
|
| 156 |
+
const trace2 = {
|
| 157 |
+
x: chartData.EngCts,
|
| 158 |
+
y: chartData.Makable_Diff,
|
| 159 |
+
type: 'scatter',
|
| 160 |
+
mode: 'markers', // Changed here
|
| 161 |
+
name: 'Makable_Diff',
|
| 162 |
+
marker: { color: '#FF6347' }
|
| 163 |
+
};
|
| 164 |
+
|
| 165 |
+
const layout = {
|
| 166 |
+
paper_bgcolor: "#04293A",
|
| 167 |
+
plot_bgcolor: "#041C32",
|
| 168 |
+
font: { color: "#ECB365" },
|
| 169 |
+
xaxis: { title: "EngCts" },
|
| 170 |
+
yaxis: { title: "Values" },
|
| 171 |
+
margin: { t: 40, l: 50, r: 30, b: 50 }
|
| 172 |
+
};
|
| 173 |
+
|
| 174 |
Plotly.newPlot('line-chart', [trace1, trace2], layout);
|
| 175 |
</script>
|
| 176 |
|
| 177 |
+
|
| 178 |
<!-- Pagination Controls -->
|
| 179 |
<div class="pagination">
|
| 180 |
{% if has_prev %}
|