{"id":15991,"date":"2015-07-16T05:01:43","date_gmt":"2015-07-15T19:01:43","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=15991"},"modified":"2015-09-19T20:33:47","modified_gmt":"2015-09-19T10:33:47","slug":"phpjavascript-google-wordtree-chart-type-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/phpjavascript-google-wordtree-chart-type-tutorial\/","title":{"rendered":"PHP\/Javascript Google Wordtree Chart Type Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"PHP\/Javascript Google Wordtree Chart Type Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_type.jpg\" title=\"PHP\/Javascript Google Google Wordtree Chart Type Tutorial\"  \/><\/a><p class=\"wp-caption-text\">PHP\/Javascript Google Wordtree Chart Type Tutorial<\/p><\/div>\n<p>We&#8217;re returning to Google Graphs API, or Google Chart Tools, and its Wordtree Chart functionality as last talked about, specifically, with previous <a target=_blank title='PHP\/HTML Google Chart Wordtree Chart Local File Tutorial' href='#phgcwclft'>PHP\/HTML Google Chart Wordtree Chart Local File Tutorial<\/a> (as shown below), to develop, further, here, some improved functionality.  Specifically we address &#8230;<\/p>\n<ol>\n<li>a way to allow for a Wordtree Chart format ([implicit] or <a target=_blank title='Explicit information' href='https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/wordtree#horzTab'>explicit<\/a>)<\/li>\n<li>a way to allow for a Wordtree Chart type ([suffix] or prefix or double)<\/li>\n<\/ol>\n<p>It is quite likely that now is a good time for you to consult the Wordtree (with format and type) Chart information page &#8230; <a target=_blank href='https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/wordtree' title='Google Wordtree Charts'>via Google<\/a>.<\/p>\n<p>Regarding the newly thought about &#8220;explicit&#8221; format there is a lot of user thought that needs to go into it, so we allow for a POST method for the user to change settings here.<\/p>\n<p>So the PHP code changed from that emailing (<a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/google-charts-emailing-primer-tutorial\/' title='Google Charts Emailing Primer Tutorial'>Google Charts Emailing Primer Tutorial<\/a>) functionality as per <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php---GETME\" title-'wordtree_chart.php'>this link<\/a>.<\/p>\n<p>And so we&#8217;ll leave you with a link to a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php\" title='Click picture'>live run<\/a> (as a GET method).<\/p>\n<hr>\n<p id='phgcwclft'>Previous relevant <a target=_blank title='PHP\/HTML Google Chart Wordtree Chart Local File Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/phphtml-google-chart-wordtree-chart-local-file-tutorial\/'>PHP\/HTML Google Chart Wordtree Chart Local File Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"PHP\/HTML Google Chart Wordtree Chart Local File Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.jpg\" title=\"PHP\/HTML Google Chart Wordtree Chart Local File Tutorial\"  style=\"float:left;\" id=\"icw\" onmouseover=\" this.src=this.src.replace('.png','.JPG').replace('.jpg','.png').replace('.JPG','.jpg'); \" \/><\/a><p class=\"wp-caption-text\">PHP\/HTML Google Chart Wordtree Chart Local File Tutorial<\/p><\/div>\n<p>If you are a regular to this blog, you will know from reading yesterday&#8217;s <a target=_blank href='#pjhgcwct' title='PHP\/Javascript\/HTML Google Chart Wordtree Chart Tutorial'>PHP\/Javascript\/HTML Google Chart Wordtree Chart Tutorial<\/a> as shown below, that an extension of functionality we&#8217;d be itching to do is to add the functionality to accept as a data source the contents of a local (ascii text) file.  So, here, today, we do, by offering a Browse button and a Process button to &#8220;get the gist of&#8221; the contents of a file via a &#8220;Theme&#8221; word, using the Google Wordtree chart &#8230; read more below, like for yesterday, to get the context of this.<\/p>\n<p style='color: black;'>&nbsp;Here is a tutorial that reintroduces you to Google Graphs API, or Google Chart Tools, and its Wordtree Chart functionality, as you can read about, at <a target=_blank title='Google Charts API' href='http:\/\/en.wikipedia.org\/wiki\/Google_Chart_API'>Wikipedia<\/a>, below:<\/p>\n<blockquote style='color: black;'><p>&nbsp;Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.<\/p><\/blockquote>\n<p>This recently released Google Charts functionality is best thought of as equating to &#8220;give me the gist of&#8221; some text of some sort, so today, with our <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php?word=HTML&#038;url=http:\/\/www.rjmprogramming.com.au\" title='Live run example'>live run<\/a> (scenario example finding the relevance of <i>&#8220;HTML&#8221;<\/i> to this domain&#8217;s landing page), we ask for a URL of interest, parse it using PHP and its <a target=_blank title='PHP DOMDocument class' href='http:\/\/php.net\/manual\/en\/class.domdocument.php'>DOMDocument<\/a> class to give an overall &#8220;relevance&#8221; feel of that URL to a user-defined <i>&#8220;Theme&#8221;<\/i> word of interest.<\/p>\n<p style='color: black;'>&nbsp;Let&#8217;s see some  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php'>PHP<\/a> code in a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php\" title='Live action'>live action<\/a> for this tutorial where you define your Wordtree chart data source and <i>&#8220;Theme&#8221;<\/i> word.<\/p>\n<p style='color: black;'>&nbsp;Link to Google Chart Tools &#8220;spiritual home&#8221; &#8230; <a target=_blank href='https:\/\/developers.google.com\/chart\/interactive\/docs\/index' title='Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.'>via Google<\/a>.\n<\/p>\n<p style='color: black;'>&nbsp;Link to Google Chart Tools Wordtree Chart information &#8230; <a target=_blank href='https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/wordtree' title='Google Wordtree Charts'>via Google<\/a>.\n<\/p>\n<p style='color: black;'>&nbsp;Link to some downloadable PHP code &#8230; rename to <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php-GETME' title='Download me'>wordtree_chart.php<\/a>\n<\/p>\n<p style='color: black;'>&nbsp;Link to some downloadable PHP code changes &#8230; <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php-GETME' title='Download me'>wordtree_chart.php<\/a><\/p>\n<p>You can download supervisory PHP programming source code and rename to <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/fileinfotable.php----------------GETME\" title='fileinfotable.php'>fileinfotable.php<\/a> here or use a <a id='slr' target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/fileinfotable.php\" title='fileinfotable.php'>supervisory live run<\/a> link and the changes made can be seen with <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/fileinfotable.php----------------GETME\" title='fileinfotable.php'>fileinfotable.php<\/a> link.<\/p>\n<p>There was an absolutely brilliant link called <a target=_blank href='http:\/\/www.html5rocks.com\/en\/tutorials\/file\/dndfiles\/' title='Reading local files in JavaScript - HTML5 Rocks'>Reading local files in JavaScript &#8211; HTML5 Rocks<\/a> which helped enormously with the <a target=_blank title='File API' href='http:\/\/www.w3.org\/TR\/file-upload\/'>file<\/a> <a target=_blank title='Web API information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Web_API'>API<\/a> aspects to the <i>&#8220;truncated&#8221;<\/i> uploading functionality methods to file browse with PHP and HTML and Javascript on the web (with a URL).<\/p>\n<hr \/>\n<p id='pjhgcwct'>Previous relevant <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=11125' title='PHP\/Javascript\/HTML Google Chart Wordtree Chart Tutorial'>PHP\/Javascript\/HTML Google Chart Wordtree Chart Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"PHP\/Javascript\/HTML Google Chart Wordtree Chart Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/Wordtree.jpeg\" title=\"PHP\/Javascript\/HTML Google Chart Wordtree Chart Tutorial\"  style=\"float:left;\" id=\"iw\" onmouseover=\" this.src=this.src.replace('.jpg','.JPEG').replace('.png','.GIF').replace('.jpeg','.png').replace('.gif','.jpg').replace('.JPEG','.jpeg').replace('.GIF','.gif');   \" \/><\/a><p class=\"wp-caption-text\">PHP\/Javascript\/HTML Google Chart Wordtree Chart Tutorial<\/p><\/div>\n<p style='color: black;'>&nbsp;Here is a tutorial that introduces you to Google Graphs API, or Google Chart Tools, and its Wordtree Chart functionality.<\/p>\n<blockquote style='color: black;'><p>&nbsp;Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.<\/p><\/blockquote>\n<p>This recently released Google Charts functionality is best thought of as equating to &#8220;give me the gist of&#8221; some text of some sort, so today, with our <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php?word=HTML&#038;url=http:\/\/www.rjmprogramming.com.au\" title='Live run example'>live run<\/a> (scenario example finding the relevance of <i>&#8220;HTML&#8221;<\/i> to this domain&#8217;s landing page), we ask for a URL of interest, parse it using PHP and its <a target=_blank title='PHP DOMDocument class' href='http:\/\/php.net\/manual\/en\/class.domdocument.php'>DOMDocument<\/a> class to give an overall &#8220;relevance&#8221; feel of that URL to a user-defined <i>&#8220;Theme&#8221;<\/i> word of interest.<\/p>\n<p style='color: black;'>&nbsp;Let&#8217;s see some  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php'>PHP<\/a> code in a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php\" title='Live action'>live action<\/a> for this tutorial where you define your Wordtree chart data source and <i>&#8220;Theme&#8221;<\/i> word.<\/p>\n<p style='color: black;'>&nbsp;Link to Google Chart Tools &#8220;spiritual home&#8221; &#8230; <a target=_blank href='https:\/\/developers.google.com\/chart\/interactive\/docs\/index' title='Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.'>via Google<\/a>.\n<\/p>\n<p style='color: black;'>&nbsp;Link to Google Chart Tools Wordtree Chart information &#8230; <a target=_blank href='https:\/\/developers.google.com\/chart\/interactive\/docs\/gallery\/wordtree' title='Google Wordtree Charts'>via Google<\/a>.\n<\/p>\n<p style='color: black;'>&nbsp;Link to some downloadable PHP code &#8230; rename to <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/PHP\/Wordtree\/wordtree_chart.php_GETME' title='Download me'>wordtree_chart.php<\/a>.\n<\/p>\n<p style='color: black;'>&nbsp;If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d11125' onclick='var dv=document.getElementById(\"d11125\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=Google+Chart#content\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d11125' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<p><!--\/div--><\/p>\n<hr \/>\n<p style='color: black;'>&nbsp;If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d11136' onclick='var dv=document.getElementById(\"d11136\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=hierarchy\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d11136' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<p><!--\/div--><\/p>\n<hr>\n<p style='color: black;'>&nbsp;If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d11136' onclick='var dv=document.getElementById(\"d11136\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/?tag=php\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d11136' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re returning to Google Graphs API, or Google Chart Tools, and its Wordtree Chart functionality as last talked about, specifically, with previous PHP\/HTML Google Chart Wordtree Chart Local File Tutorial (as shown below), to develop, further, here, some improved functionality. &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/phpjavascript-google-wordtree-chart-type-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[356,513,518,564,576,652,932,1623,997,1319,1622,1621],"class_list":["post-15991","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-domdocument","tag-google","tag-google-chart","tag-hierarchy","tag-html","tag-javascript","tag-php","tag-phrases","tag-programming","tag-tutorial","tag-words","tag-wordtree"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/15991"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=15991"}],"version-history":[{"count":3,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/15991\/revisions"}],"predecessor-version":[{"id":15995,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/15991\/revisions\/15995"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=15991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=15991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=15991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}