Limiting Word tree root words?

98 views
Skip to first unread message

Anneleis

unread,
Dec 8, 2014, 7:28:47 PM12/8/14
to google-visua...@googlegroups.com
Dear All,

I know VERY little about programming, but have managed to set up a google wordtree chart using some of my own data.  I have significant amounts of data, and want to find some of the key words that come up frequently, but unfortunately the wordtree that is currently being output highlights "the" and "of" and commas. I am wondering if there is any way I can either limit it to nouns, verbs, adjectives and adverbs? Or, failing that, limit the root word to more than 3 characters? 

This is what I have.. 

var data = response.getDataTable();
var chart = new google.visualization.WordTree(document.getElementById('wordtree_basic'));
        chart.draw(data, options);;
}
        var options = {
          wordtree: {
            format: 'implicit',
            word: 'development',
            function strlen(minlength) {
            var minlength = 4; }

          }
        };


Thanks in advance,
Anneleis

Sergey Grabkovsky

unread,
Dec 9, 2014, 9:40:16 AM12/9/14
to google-visua...@googlegroups.com
Hi Anneleis,

The Wordtree doesn't have any built-in filtering, but you could potentially filter your data before it ever gets to the Wordtree. If you'd like to share a sample of your data, I can perhaps help with that.
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages