Hi Kelly,

The problem you bumped into is actually a bug in the chartArea code
regarding the new bottom and right options.  If you use bottom without top,
it fails, apparently.  Similarly, if you use right without left, it will
fail.

I am surprised to learn that it works if you specify the value with, e.g.
'75px'.  I suspect it is just ignoring the px.

Hope that helps.

On Wed, May 4, 2016 at 3:01 PM, Kelly Close <kelly.cl...@lrewater.com>
wrote:

> Hopefully this helps others searching for this same fairly generic error.
> Much like Zdravko, my cause came down to syntax.
>
> On a site that worked until recently (April, 2016) I had a ComboChart with
> this included in the options:
>                chartArea:{left:85,bottom:75,width:'77%',height:'78%'},
>
> If I comment this out of the chart options, the chart renders, and if I
> include it I get the error noted in the subject of this thread.
>
> Upon changing to this, it works again:
>
>  chartArea:{left:'85px',bottom:'75px',width:'77%',height:'78%'},
>
> This is the full chart definition, for context (with proper syntax in
> place):
>
>       var chart_flows6 = new google.visualization.ChartWrapper({
>                 containerId: 'chart_flows6',
>                 chartType: 'ComboChart',
>                 options: {title: 'ARKPUECO Stream Gage - Colors of Water',
>                               seriesType:'area',
>                               width:'100%',height:320,
>
> chartArea:{left:'85px',bottom:'75px',width:'77%',height:'78%'},
>                               isStacked:'true', lineWidth:0,
>                               series: {0: {type:
> 'line',lineWidth:1,pointSize:9}}
>                              }
>
>                  });
>
> I'm guessing I was using an old syntax that was finally deprecated as of
> May 2016.
>
> ~Kelly
>
> On Saturday, July 26, 2014 at 8:52:55 AM UTC-6, Zdravko Balorda wrote:
>>
>> I get this error on rendering a ComboChart in Chrome:
>> Cannot read property 'length' of null
>>
>> The same page in FireFox works ok.
>> Best regards, Zdravko
>>
> --
> 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 google-visualization-api+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-visualization-api@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/83c133f3-3a33-4aab-b797-91d93a4ae12a%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/83c133f3-3a33-4aab-b797-91d93a4ae12a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
dlalibe...@google.com <dlalibe...@google.com>   5CC, Cambridge 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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJMmyP%3DU4jiKgPx8rfmeDLeuf33F%2B1dyDSUY4fNtXOSuKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to