Implement hiding the graph and move elements out of boxes

This commit is contained in:
2022-08-27 18:14:52 +01:00
parent be20fb7a52
commit 383278245e
5 changed files with 21 additions and 8 deletions

View File

@@ -109,7 +109,7 @@
</div>
</div>
</div>
<div id="options" class="box is-hidden">
<div id="options" class="block is-hidden">
<div class="columns is-multiline">
<div class="column is-narrow">
<div class="field has-addons">
@@ -321,6 +321,21 @@
</label>
</div>
</div>
<div class="control">
<div class="field">
<input
id="sentiment_graph_switch"
type="checkbox"
class="switch is-rounded is-info"
name="show_sentiment"
data-script="on click toggle .is-hidden on #sentiment-container">
<label
for="sentiment_graph_switch">
Show graph
</label>
</div>
</div>
</div>
<div class="column is-narrow">
<div id="date">

View File

@@ -48,9 +48,9 @@
{% endif %}
</div>
{% if params.index != 'int' and params.index != 'meta' %}
<div class="box">
<div style="height: 30rem">
<canvas id="volume"></canvas>
<div>
<div style="height: 30rem" id="sentiment-container" {% if params.show_sentiment is None %} class="is-hidden" {% endif %}>
<canvas id="sentiment-chart"></canvas>
</div>
<script src="{% static 'chart.js' %}"></script>
</div>

View File

@@ -5,7 +5,7 @@
{% load joinsep %}
{% load urlsafe %}
{% block table-wrapper %}
<div id="drilldown-table" class="container box column-shifter-container" style="position:relative; z-index:1;">
<div id="drilldown-table" class="container column-shifter-container" style="position:relative; z-index:1;">
{% block table %}
<div class="nowrap-parent">
<div class="nowrap-child">