i use for my project this chart pygal
from datetime import datetime, timedelta datey = pygal.DateY(x_label_rotation=20) datey.add("Visits", [ (datetime(2013, 1, 2), 300), (datetime(2013, 1, 12), 412), (datetime(2013, 2, 2), 823), (datetime(2013, 2, 22), 672)]) datey.render() but the problem is when i want to use datetime from my base i have this error TypeError: can't compare datetime.datetime to float i used this code hum = [] temp = [] for u in users: hum.append((u.temperature )) temp.append((u.timew))@app.route('/something.svg') def graph_something(): datey = pygal.DateY(x_label_rotation=20, show_dots=False) datey.add("Visits", (temp, hum)) return datey.render() return datey_chart.render_response() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.