Perfect!!
Thanks.
El martes, 16 de septiembre de 2014 15:24:19 UTC+2, Andrew Gallant escribió:
>
> FYI, calling .setOption('slices', {...}) is going to overwrite the entire
> slices option each time, not add new elements to it. If that's what you
> want, and presuming you mean that you want to set the object property key
> itself to a variable value, then you can use this:
>
> var slices = {};
> slices[key] = {offset: 0.2}; // key is your value that you want to use as
> the object property
> wrapper.setOption('slices', slices); // wrapper is the ChartWrapper
>
> On Tuesday, September 16, 2014 3:48:41 AM UTC-4, Hostmaster wrote:
>>
>> Hello.
>>
>> I need to put slices in a pie chart.
>> And the line to put slices in my charts is:
>>
>> .setOption('slices', {6:{offset: 0.2}})
>>
>> But i has a variable with the exact number.
>>
>> How i put my variable in this line?
>>
>> Thanks.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.