Draw function of Word Trees chart throws error, if the chart is incorporated into report of BI tool, that can generate html output.
I am trying to use Word Trees the following way:
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<div id="wordtree_basic" style="width: 9000px; height: 4500px;font-family: arial"></div>
<script type="text/javascript">
google.charts.load('current', {packages:['wordtree']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable(
[ ['Phrases'],
['cats are better than dogs'],
['cats eat kibble'],
['cats are better than hamsters'],
['cats are awesome'],
['cats are people too'],
['cats eat mice'],
['cats meowing'],
['cats in the cradle'],
['cats eat mice'],
['cats in the cradle lyrics'],
['cats eat kibble'],
['cats for adoption'],
['cats are family'],
['cats eat mice'],
['cats are better than kittens'],
['cats are evil'],
['cats are weird'],
['cats eat mice'],
]
);
var options = {
maxFontSize: 20,
fontName: 'Calibri',
wordtree: {
format: 'implicit',
word: 'Cognos'
}
};
var chart = new google.visualization.WordTree(document.getElementById('wordtree_basic'));
chart.draw(data, options);
}
</script>
and receive the following error:
Cannot read properties of undefined (reading 'bb')
Hello,
Draw function of Word Trees chart throws error, if the chart is incorporated into report of BI tool, that can generate html output.
I am trying to use Word Trees the following way:
and receive the following error:
Cannot read properties of undefined (reading 'bb')
I tried to investigate what throws the error - this part of code in https://www.gstatic.com/charts/51/js/jsapi_compiled_ui_module.js file throws the error:
Is this bug or I am using word trees chart in wrong way? Can it be avoided or should be fixed?