From 7c0e9e792149ce7e6dd20d14334fc1988203b6cc Mon Sep 17 00:00:00 2001 From: walkews Date: Fri, 14 Jul 2017 17:12:19 -0500 Subject: [PATCH] Continued updates for /enthusiast draft --- src/pyDataVizDay.py | 4 +-- src/static/css/custom.css | 47 ++++++++++++++++++++++++++++++----- src/static/js/enthusiast.js | 4 +-- src/templates/enthusiast.html | 46 +++++++++++++++++++++++++--------- 4 files changed, 79 insertions(+), 22 deletions(-) diff --git a/src/pyDataVizDay.py b/src/pyDataVizDay.py index c460835..25fe267 100644 --- a/src/pyDataVizDay.py +++ b/src/pyDataVizDay.py @@ -182,8 +182,8 @@ class score_timeseries(Resource): ['x'] + df.DATE.astype(str).values.tolist()], # ['x'] + df.index.values.tolist()], 'colors':{ - 'IMDB Score': '#B80000', - 'gross': '#fd8d3c', + 'IMDB Score': '#0071A7', + 'gross': '#4D9913', 'x': '#08414C' }} return jsonify(score_timeseries) diff --git a/src/static/css/custom.css b/src/static/css/custom.css index 54df319..65e373b 100644 --- a/src/static/css/custom.css +++ b/src/static/css/custom.css @@ -4,7 +4,14 @@ body{ } .kpi { /* color: #B80000; */ - font-weight:10; + font-weight:4; + font-size:16px; +} +.kpi-value { + /* color: #B80000; */ + font-weight:8; + font-size:18px; + padding: 10px 20px 10px 0px; } .chosen{ @@ -47,12 +54,40 @@ body{ .title{ font-size:22px; - color:#B80000; + color:#0071A7; font: bold; } +.sentiment-chart-title{ + color:#0071A7; + /*text-align: center;*/ +} +.word-cloud-title{ + color:#0071A7; + /*text-align: center;*/ +} + .sentiment-chart{ -text-align: center; -vertical-align: middle; -line-height: 200px; -} \ No newline at end of file + text-align:center; + vertical-align: middle; + line-height: 150px; + height:300px; + background-color:grey; + li +} + +#myNavbar{ +/* background-color:#0071A7; +} + +#navbar{ + background-color:#0071A7; +} + +#navbar-header{ + background-color:#0071A7; +} + +.active{ + background-color:#0071A7; +}*/ \ No newline at end of file diff --git a/src/static/js/enthusiast.js b/src/static/js/enthusiast.js index 376034f..f861b50 100644 --- a/src/static/js/enthusiast.js +++ b/src/static/js/enthusiast.js @@ -27,7 +27,7 @@ var data = { ], 'colors': { 'IMDB Score': '#B80000', - 'gross': '#fd8d3c', + 'gross': '#0071A7', 'x': '#08414C' } }, @@ -92,7 +92,7 @@ word_coud_settings = { width: 500, height: 350, classPattern: null, - colors: ['#bd0026', '#e31a1c', '#800026', '#fc4e2a', '#fd8d3c', '#feb24c', '#fed976'],// '#ffeda0', '#ffffcc'], + colors: ['#0071A7', '#000E29', '#24A854',],// '#ffeda0', '#ffffcc'], fontSize: { from: 0.1, to: 0.02 diff --git a/src/templates/enthusiast.html b/src/templates/enthusiast.html index cb35387..d102c2b 100644 --- a/src/templates/enthusiast.html +++ b/src/templates/enthusiast.html @@ -18,23 +18,33 @@ {% block body %} {{ super ()}} - {{ form | safe }} -
- +
-
+
+

Plot Analysis

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla suscipit dignissim purus at tincidunt. Nam dapibus magna ultricies, sollicitudin tortor id, convallis risus. Morbi convallis pharetra dictum. Proin rutrum finibus justo, eu lobortis felis condimentum sed. Quisque lorem tellus, tempor eu eleifend a, tristique vel mauris. Proin ut augue aliquam, vestibulum tortor et, cursus augue. Nullam pellentesque mattis dui, vitae consequat nulla mattis quis. Aenean non felis diam. Nunc consectetur at nunc sollicitudin fringilla. Nam in gravida tortor. + +Cras eu posuere est, a tincidunt diam. Cras et volutpat massa. Ut in ante consequat, egestas dolor vitae, scelerisque leo. Donec vulputate tincidunt nunc id maximus. Aliquam semper enim est, id bibendum eros volutpat quis. Sed orci augue, cursus ut rutrum eu, fringilla nec tortor. Nam consequat tincidunt pretium. In eget ornare massa. + +
+
+
+ {{ form | safe }} +
+
+
- Year:
+ Year:
+
+
+
+ Score:
- Score:
+ Gross:
-
-
- Gross:
-
-
+ {#
#}
@@ -46,10 +56,22 @@
-

SENTIMENT

+
+

Sentiment

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla suscipit dignissim purus at tincidunt. Nam dapibus magna ultricies, sollicitudin tortor id, convallis risus. Morbi convallis pharetra dictum. Proin rutrum finibus justo, eu lobortis felis condimentum sed. Quisque lorem tellus, tempor eu eleifend a, tristique vel mauris. +
+
+
Sentiment Chart +
+
+

Common Keywords

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla suscipit dignissim purus at tincidunt. Nam dapibus magna ultricies, sollicitudin tortor id, convallis risus. Morbi convallis pharetra dictum. Proin rutrum finibus justo, eu lobortis felis condimentum sed. Quisque lorem tellus, tempor eu eleifend a, tristique vel mauris. + + +