clearChart() should be defined where? In the beginning of the script?

On Wednesday, April 15, 2015 at 10:51:44 PM UTC+5, Daniel LaLiberte wrote:
>
> It could be a bug that, once you draw a chart, if you reuse the same chart 
> with different data or options, it might remember the previous settings, 
> such as the bar width.  If this is a bug, a possible work around might be 
> to call clearChart() on the chart before reusing it.  Either way, let us 
> know.  Thanks.
>
> On Wed, Apr 15, 2015 at 1:30 PM, mariummalik22 <[email protected] 
> <javascript:>> wrote:
>
>> It is on my own server. Could this thing be an issue, that first I 
>> plotted Column Chart, whose values were too close and then I changed my 
>> data and got this. Because the same thing happened with me before too. 
>> Could it be a bug or something?
>>
>> On Wednesday, April 15, 2015 at 10:19:05 PM UTC+5, Daniel LaLiberte wrote:
>>>
>>> If you can point me to a page that shows this, I will take a look.
>>>
>>> On Wed, Apr 15, 2015 at 1:03 PM, mariummalik22 <[email protected]> 
>>> wrote:
>>>
>>>> But with same data values 2.png was plotted and it's width is 
>>>> completely fine and I don't even have any other data
>>>>
>>>> On Wednesday, April 15, 2015 at 5:44:36 PM UTC+5, Daniel LaLiberte 
>>>> wrote:
>>>>>
>>>>> The column chart computes the width of the columns based on the 
>>>>> closest data values, so I would guess that somewhere in your data, 
>>>>> not the part that is visible, you have two domain values that are very 
>>>>> close.    We don't yet have an option for specifying the column width any 
>>>>> other way.
>>>>>
>>>>> On Wed, Apr 15, 2015 at 8:19 AM, mariummalik22 <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> When I am plotting column chart using dashboard the bars' width has 
>>>>>> reduced to zero. (1.png) Although when I plotted the same data 
>>>>>> separately 
>>>>>> it's width is completely fine. (2.png) What could be the reason of it?
>>>>>>
>>>>>> My code where this chart is defined is:
>>>>>>
>>>>>> // Create a line chart, passing some options
>>>>>>         var Chart3 = new google.visualization.ChartWrapper({
>>>>>>           'chartType': 'ColumnChart',
>>>>>>           'containerId': 'chart_div3',
>>>>>>           'options': {
>>>>>>             'width': 1000,
>>>>>>             'height': 500,
>>>>>>             'legend': 'top',
>>>>>>             'bar': { groupWidth: '100%' },
>>>>>>              isStacked: true,
>>>>>>              series: {
>>>>>>             0: {
>>>>>>                 color: 'green'
>>>>>>             }          
>>>>>>                    },
>>>>>>             chartArea: {
>>>>>>             left: "8%",
>>>>>>             top: "10%",
>>>>>>             width: "100%",
>>>>>>             height: "80%",
>>>>>>                    }
>>>>>> },
>>>>>>  view: {
>>>>>>             columns: [0,4,5] // use columns 0 and 2
>>>>>>         },
>>>>>>      
>>>>>>              
>>>>>>
>>>>>>         });
>>>>>>  
>>>>>>
>>>>>> -- 
>>>>>> 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.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Daniel LaLiberte 
>>>>> <https://plus.google.com/100631381223468223275?prsrc=2>  - 
>>>>> 978-394-1058
>>>>> [email protected]   5CC, Cambridge MA
>>>>> [email protected] 9 Juniper Ridge Road, Acton MA
>>>>>  
>>>>  -- 
>>>> 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.
>>>>
>>>
>>>
>>>
>>> -- 
>>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
>>>   - 978-394-1058
>>> [email protected]   5CC, Cambridge MA
>>> [email protected] 9 Juniper Ridge Road, Acton MA
>>>  
>>  -- 
>> 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] 
>> <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at 
>> http://groups.google.com/group/google-visualization-api.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> 
>  - 978-394-1058
> [email protected] <javascript:>   5CC, Cambridge MA
> [email protected] <javascript:> 9 Juniper Ridge Road, Acton MA
>  

-- 
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.

Reply via email to