From 383278245e8a779888fce21c758068e4b37efb11 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 27 Aug 2022 18:14:52 +0100 Subject: [PATCH] Implement hiding the graph and move elements out of boxes --- core/static/chart.js | 2 +- core/templates/ui/drilldown/drilldown.html | 17 ++++++++++++++++- core/templates/ui/drilldown/table_results.html | 6 +++--- .../ui/drilldown/table_results_partial.html | 2 +- core/views/helpers.py | 2 -- 5 files changed, 21 insertions(+), 8 deletions(-) diff --git a/core/static/chart.js b/core/static/chart.js index 54d3946..c0d66fd 100644 --- a/core/static/chart.js +++ b/core/static/chart.js @@ -4,7 +4,7 @@ function loadJson(selector) { var jsonData = loadJson('#jsonData'); var full_data = jsonData.map((item) => item); -var ctx = document.getElementById('volume').getContext("2d"); +var ctx = document.getElementById('sentiment-chart').getContext("2d"); new Chart(ctx, { type: 'line', data: { diff --git a/core/templates/ui/drilldown/drilldown.html b/core/templates/ui/drilldown/drilldown.html index 676d58b..dbb850a 100644 --- a/core/templates/ui/drilldown/drilldown.html +++ b/core/templates/ui/drilldown/drilldown.html @@ -109,7 +109,7 @@ -