{"id":203,"date":"2018-09-20T15:11:29","date_gmt":"2018-09-20T17:11:29","guid":{"rendered":"http:\/\/blog.iordanov.info\/?p=203"},"modified":"2018-09-20T15:26:49","modified_gmt":"2018-09-20T17:26:49","slug":"cannot-read-property-qa-of-undefined-error-for-wordtree","status":"publish","type":"post","link":"https:\/\/blog.iordanov.info\/?p=203","title":{"rendered":"Cannot read property &#8216;Qa&#8217; of undefined error for WordTree"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignleft wp-image-205\" src=\"https:\/\/blog.iordanov.info\/wp-content\/uploads\/2018\/09\/Capture.png\" alt=\"Cannot read property\" width=\"300\" style=\"width:300px;\"\/>This is just for colleagues that has experience the following error. I was not able to find any post in the web and would like to share the solution.<\/p>\n<p>The error is <em style=\"color: red;\">Cannot read property &#8216;Qa&#8217; of undefined<\/em> or\u00a0<em style=\"color: red;\">Cannot read property &#8216;Pu&#8217; of undefined<\/em> and it appears in\u00a0google.visualization.WordTree.<\/p>\n<p>After some time for analyzing the problem and playing with data and settings I found that the chart require the root node to be with ID 0.<\/p>\n<p>An demo example is available on\u00a0<a href=\"https:\/\/jsfiddle.net\/iziordanov\/2s1puz04\/15\/\">jsFiddle\u00a0<\/a>\u00a0and here is\u00a0 the embeded code:<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/jsfiddle.net\/iziordanov\/2s1puz04\/15\/embedded\/html,result\/\" width=\"100%\" height=\"300\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is just for colleagues that has experience the following error. I was not able to find any post in the web and would like to share the solution. The error is Cannot read property &#8216;Qa&#8217; of undefined or\u00a0Cannot read &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/blog.iordanov.info\/?p=203\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":205,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[32,31],"tags":[33,17,23],"class_list":["post-203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-visualization","category-javascript","tag-google-visualization","tag-html","tag-javascript"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p3jsZJ-3h","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack_featured_media_url":"https:\/\/blog.iordanov.info\/wp-content\/uploads\/2018\/09\/Capture.png","_links":{"self":[{"href":"https:\/\/blog.iordanov.info\/index.php?rest_route=\/wp\/v2\/posts\/203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iordanov.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iordanov.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iordanov.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iordanov.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=203"}],"version-history":[{"count":9,"href":"https:\/\/blog.iordanov.info\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":214,"href":"https:\/\/blog.iordanov.info\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions\/214"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.iordanov.info\/index.php?rest_route=\/wp\/v2\/media\/205"}],"wp:attachment":[{"href":"https:\/\/blog.iordanov.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iordanov.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iordanov.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}