29 lines
683 B
HTML
29 lines
683 B
HTML
<div id="graph"></div>
|
|
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
|
|
<script>
|
|
const data = {{ graph_data | safe }};
|
|
Plotly.newPlot('graph', data);
|
|
</script>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Header 1</th>
|
|
<th>Header 2</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for row in table_data %}
|
|
<tr>
|
|
<td>{{ row[0] }}</td>
|
|
<td>{{ row[1] }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<form method="POST" action="/submit">
|
|
<label for="data">Enter Data:</label>
|
|
<input type="text" id="data" name="data">
|
|
<button type="submit">Submit</button>
|
|
</form> |