Hi,
I have problems to display a cancasjs chart. a JSFiddle example is here: http://jsfiddle.net/xwei01/3vrnd71k/34/
Works (on tab1):
<script>
document.getElementById(‘test1’).innerHTML = ‘<p>hello<\p>’+'<div id=”chartContainer” style=”height: 360px; width: 100%;”></div>’;
</script>
Cannot be displayed (after clicking tab2):
function display(evt, tabID) {
var text = document.getElementById(tabID);
if(tabID == “test2″){
text.innerHTML = ‘<p>Hello world</p><p>vvv Is any chart displayed below? vvv</p>’
+'<div id=”chartContainer” style=”height: 360px; width: 100%;”></div>’
+'<p>^^^ Is any chart displayed above? ^^^</p>’;
}
}
Any suggestions?
Thank you