Skip to content

Instantly share code, notes, and snippets.

View aouyang1's full-sized avatar

Austin Ouyang aouyang1

  • LinkedIn
  • United States
View GitHub Profile
@aouyang1
aouyang1 / app.py
Last active August 29, 2015 14:11 — forked from vgoklani/app.py
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
@app.route('/index')
def index(chartID = 'chart_ID', chart_type = 'bar', chart_height = 350):
chart = {"renderTo": chartID, "type": chart_type, "height": chart_height,}
series = [{"name": 'Label1', "data": [1,2,3]}, {"name": 'Label2', "data": [4, 5, 6]}]
title = {"text": 'My Title'}