示例#1
0
def show_curve():
    error = None
    node_entry, edge_entry, values, cumulative, base = build_graph_curve()
    return render_template('show_curve.html',
                           base=base,
                           values=values,
                           cumulative=cumulative)
def show_graph():
    error=None;
    node_entry,edge_entry,values,cumulative,base=build_graph_curve()
    data=list()
    data=dict(node_data=node_entry,link_data=edge_entry)
    #print data
    #node_data=json.dumps(node_data)
    #link_data=json.dumps(link_data)
    #print link_data
    return render_template('test1.html',data=data)
示例#3
0
def show_graph():
    error = None
    node_entry, edge_entry, values, cumulative, base = build_graph_curve()
    data = list()
    data = dict(node_data=node_entry, link_data=edge_entry)
    #print data
    #node_data=json.dumps(node_data)
    #link_data=json.dumps(link_data)
    #print link_data
    return render_template('test1.html', data=data)
def show_curve():
    error=None;
    node_entry,edge_entry,values,cumulative,base=build_graph_curve()
    return render_template('show_curve.html',base=base,values=values,cumulative=cumulative)