Hi,
It is easy, no json, no plugin.
Pass the query results to the view
return dict(projects=projects)
Copy the snippet in the view.
https://google-developers.appspot.com/chart/interactive/docs/quick_start
replace this part
data.addRows([
['Mushrooms', 3],
['Onions',
// var f = {{r.fecha}}, t = {{r.temp}};
> //for (var i = 0; i <= t; i++) {
> // camara1.push({x: f, y: t});
> //cos.push({x: i, y: .5 * Math.cos(i/10)});
> //{{pass}}
> }
>
> return [
> {
>
'Camara 1'
color: '#ff7f0e'
},
];
}
I appreciated you help.
--- On Thu, 8/16/12, Andrew wrote:
> From: Andrew
> Subject: Re: [web2py] Graphs
> To: web2py@googlegroups.com
> Date: Thursday, August 16, 2012, 7:41 A
peepcode has a nice screencast about raphaeljs
2012/8/26 Alec Taylor
> I've seen good things from the Flotr2 JavaScript library...
> On 16/08/2012 11:26 AM, "FERNANDO VILLARROEL"
> wrote:
>
>> Thank you everyone for you help.
>>
>> Where i can see some how to for i can use d3 visualizations
I've seen good things from the Flotr2 JavaScript library...
On 16/08/2012 11:26 AM, "FERNANDO VILLARROEL" wrote:
> Thank you everyone for you help.
>
> Where i can see some how to for i can use d3 visualizations fed from
> web2py or Charts?
>
> Regards.
>
>
>
> --- On *Wed, 8/15/12, Andrew * wrot
I plan to do one, but you simply provide a json or csv service / URL with
web2py, and then use it in a view with the d3 JavaScript code. D3 takes some
learning, and I still have a long way to go.
--
Thank you everyone for you help.
Where i can see some how to for i can use d3 visualizations fed from web2py or
Charts?
Regards.
--- On Wed, 8/15/12, Andrew wrote:
From: Andrew
Subject: Re: [web2py] Grahs
To: web2py@googlegroups.com
Date: Wednesday, August 15, 2012, 6:47 AM
You may also want
7 matches
Mail list logo