Re: [web2py] Creating charts and trends from db

2018-12-21 Thread Maurice Waka
It was a small typo. It worked! Kind regards On Fri, Dec 21, 2018 at 12:47 PM 黄祥 wrote: > another way around perhaps you can use web2py to provide the data from > database as json, then show it with js (highchart, d3 or anything) > > best regards, > stifan > > -- > Resources: > -

Re: [web2py] Creating charts and trends from db

2018-12-21 Thread Lovedie JC
Let me countercheck. On Fri, 21 Dec 2018, 12:32 sandeep patel @Maurice > This code is working good. you can check here > . > It would be easy to inspect the problem if you can show your controller > code what you have written. > > Thanks > > > On

Re: [web2py] Creating charts and trends from db

2018-12-21 Thread sandeep patel
@Maurice This code is working good. you can check here . It would be easy to inspect the problem if you can show your controller code what you have written. Thanks On Fri, Dec 21, 2018 at 1:55 PM Maurice Waka wrote: > Hello Sandeep, > The form

Re: [web2py] Creating charts and trends from db

2018-12-21 Thread Maurice Waka
Hello Sandeep, The form appears well, but the chart area doesn't show any chart, looks a small box at the top left side of the page. Trying to show it shows a message: 'insufficient privileges'. Regards On Fri, Dec 21, 2018 at 9:58 AM sandeep patel wrote: > You can achieve this way. >

Re: [web2py] Creating charts and trends from db

2018-12-20 Thread sandeep patel
You can achieve this way. Controller.py import pygal def chart(): response.files.append(URL('default','static/js/pygal-tooltips.min.js')) response.headers['Content-Type']='image/svg+xml' import pygal from pygal.style import Style custom_style = Style(

[web2py] Creating charts and trends from db

2018-12-20 Thread Maurice Waka
I've come across this site where one can create charts and graphs. However I have a challenge of using the database as I don't know how to link to it. For example, i want to track a variable like