From 46224ce156a9a2782a21172c39c40968db7f89e0 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 25 Mar 2019 19:36:38 +0000 Subject: first working version of pan + zoom + click --- app/static/annotate.css | 27 +-- app/templates/annotate/index.html | 361 +++++++++++++------------------------- 2 files changed, 125 insertions(+), 263 deletions(-) diff --git a/app/static/annotate.css b/app/static/annotate.css index d6e30fc..0ee40f6 100644 --- a/app/static/annotate.css +++ b/app/static/annotate.css @@ -3,25 +3,6 @@ text-align: center; } -/* -path { - stroke-width: 2; - fill: none; -} - -.axis path, .axis line { - fill: none; - stroke: grey; - stroke-width: 1; - shape-rendering: crispEdges; -} - -#changepoint-table { - margin: 0 auto; -} - -*/ - .line { fill: none; stroke: blue; @@ -33,8 +14,8 @@ circle { fill: blue; } -.zoom { - cursor: move; - fill: none; - pointer-events: fill; +rect { + fill: white; + opacity: 0; } + diff --git a/app/templates/annotate/index.html b/app/templates/annotate/index.html index b605dc3..1805d95 100644 --- a/app/templates/annotate/index.html +++ b/app/templates/annotate/index.html @@ -24,204 +24,139 @@ {# Based on: https://github.com/benalexkeen/d3-flask-blog-post/blob/master/templates/index.html #} +{# And: https://bl.ocks.org/mbostock/35964711079355050ff1 #} {% endblock %} -- cgit v1.2.3