From 8fa5a4502ac5f72d02be94d16943c2f815e12cf7 Mon Sep 17 00:00:00 2001 From: Sean Dolan Date: Sun, 28 Jul 2019 20:15:19 +0000 Subject: Sean dev --- templates/beerpage.jinja2 | 78 +++++++++++++++++++++++++++++++---------------- 1 file changed, 52 insertions(+), 26 deletions(-) (limited to 'templates') diff --git a/templates/beerpage.jinja2 b/templates/beerpage.jinja2 index d243578..68291af 100644 --- a/templates/beerpage.jinja2 +++ b/templates/beerpage.jinja2 @@ -1,31 +1,59 @@ {% extends "base.html" %} {% block content %} + + + var chart = new google.visualization.ColumnChart(document.getElementById('chart_div')); + chart.draw(data, options); + } +

{{ beer_data.brewer if beer_data != None else 'DELICOUS BREWER' }}

{{ beer_data.name if beer_data != None else 'DELICOUS BEER' }}

@@ -44,9 +72,7 @@ $("#chartContainer").CanvasJSChart(options);
-
- - +
Beers like {{ beer_data.name }}