From a1c8d07e541525b851399bb91d75769295acd068 Mon Sep 17 00:00:00 2001 From: Walker Waylon Scott Date: Sun, 2 Jul 2017 11:30:47 -0500 Subject: [PATCH] update(color) updated color palette --- src/pyDataVizDay.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/pyDataVizDay.py b/src/pyDataVizDay.py index 65e4a51..2d60883 100644 --- a/src/pyDataVizDay.py +++ b/src/pyDataVizDay.py @@ -7,12 +7,14 @@ IMDB 5000 Movie Dataset. """ import os +import io +import base64 as b64 + from flask import Flask from flask import request, render_template, make_response, jsonify import settings import etl -import io -import base64 as b64 +import palettes as pal from iplotter import C3Plotter c3 = C3Plotter() @@ -52,7 +54,12 @@ def investor(): .groupby(['title_year', 'country']).sum()['budget'] .unstack() ) - c3_plot = c3.render(top_countries_df, y_axis_tick_format='s', title=f'Budget Trend for top {top} countries') + + c3_plot = c3.render(top_countries_df, + y_axis_tick_format='s', + title=f'Budget Trend for top {top} countries', + colors=pal.todays_outfit) + return render_template('investor.html', body=c3_plot) @app.route('/enthusiast')