Hey can we apply this in resize event also? we have a global function with
data params.
In that we need to apply the chart Resize.window.resize (function (){ })
The option of redraw chart is made typical every time for inside
function,.any alternative for this issue.??
On Friday, February 26, 2016 at 12:47:47 AM UTC+5:30, Vincent Wansink wrote:
>
> The google api does not provide a mechanism for this because it has a hard
> coded "px" which is appended to the width value. Inserting a % mark will
> choke the javascript engine.
>
> However, there is an easy solution. Calculate the width of the parent
> element and set the chart width to that.
>
> With jQuery for example:
>
> var chartwidth = $('#chartparent').width();
>
> var options = {
> width: chartwidth,
> ...
> chartArea: {width:chartwidth,left:20,top:20,height:110}
>
> };
>
>
>
>
> On Monday, March 26, 2012 at 12:03:40 AM UTC-6, shub wrote:
>>
>> Hello,
>>
>> I want to know if we can create google charts with 100% width...
>> I tried to give the width as 100%, but they doesn't seem to work...Does
>> anyone know how to achieve this.. ?
>>
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/7f01d812-f79d-46e7-a2d8-0834fff56891%40googlegroups.com.