Thanks i'll try it
El may 24, 2012 8:02 a.m., "asgallant" <[email protected]> escribió:
> This is what you would use:
>
> ['January', {v: variable1, f: variable2}]
>
> On Wednesday, May 23, 2012 10:05:57 PM UTC-4, Ro wrote:
>>
>>
>>
>> How do I put variables instead of (v:20, f:'$20M") etc???????
>>
>> from ['January',v:20, f:'$20M'] to ['January',variable1, variable2],
>>
>> function drawVisualization(idTarget) {
>> // Create and populate the data table.
>> var data = new google.visualization.**DataTable();
>> data.addColumn('string', 'Month');
>> data.addColumn('number', 'Sales');
>> data.addRows([
>> ['January',{v:20, f:'$20M'}],
>> ['February',{v:31, f:'$31M'}],
>> ['March',{v:61, f:'$61M'}],
>> ['April',{v:26, f:'$26M'}],
>> ['May',{v:10, f:'$10M'}]
>> ]);
>> // Create and draw the visualization.
>> new google.visualization.PieChart(
>> document.getElementById(**idTarget)).
>> draw(data, {is3D:true});
>> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-visualization-api/-/Bo_SJnbBH5kJ.
> 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.
>
--
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.