Hello Friends
Yippy I found the solution. Ya I know its a silly mistake, but just
wanted make this solution available to those who are also in same
ship.
Its calling method perfectly and returning the value too. We have to
convert it to float before setting it in setCell(), coz in javascript
var by defaults takes string.
So we can write like:
var revenue = parseFloat('#
{dashboard.yearsRevenueResultData.revenue}');
revenueGaugeData.setCell(0, 0, revenue);
revenueGauge = new google.visualization.Gauge(document.getElementById
('revenueGauge'));
On Mar 30, 5:48 pm, zubi <[email protected]> wrote:
> Hello Friends
>
> For the fist time I am using gauges in the GV API.
> I am using seam framework. I want to pass dynamic values, which I
> will be getting from a java class.
>
> I was using like this:
> gaugeData.setCell(0, 0, '#
> {dashboard.yearsRevenueResultData.revenue}');
>
> but perhaps its not properly calling the method. So can anybody put
> some light upon that.
>
> Thanks for the help in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---