in chrome: Cannot read property 'length' of null
zdravko opened this issue · comments
In Chrome I get this error when rendering a chart:
Cannot read property 'length' of null
In FireFox rendering the same page works ok.
Can I have more information? Maybe some code? Thank you!
I fixed it, by blindly shooting! The chart must be in div not in td as it was. When I put div in table td cell chart appeared.
CORRECTanyway, td id="chart" is wrong. Solution to this problem is putting chart in its own div like
td > div id="chart"
I just tried to put a chart on a table and it works:
<table>
<tr><td id='intd'><%= render_chart @chart, 'intd' %></td></tr>
</table>
So I don't think it's really about td
or html
. It is probably something else.
In any case, I don't think it's a bug on the gem too, so I am closing this for now. Thank you!