The chart I want to create in a Javascript file looks something like this:
var data = [ ['id', 'childLabel', 'parent', 'size', {role: 'style'}] ,
[0, 'cats', -1, 1, 'green'],
[1, 'are', 0, 2, 'green'],
[2, 'really', 1, 3, 'red'],
[3, 'awesome', 2, 1, 'red'] ];
But the chart result doesn't take in account the 'size' option I
decided(here's an example result <https://jsfiddle.net/d1nbtok8/1/>).
According to the google chart page
<https://developers.google.com/chart/interactive/docs/gallery/wordtree#implicit-and-explicit-word-trees>
:
...
format: 'explicit'
You tell the word tree what connects to what, how big to make each
subphrase, and what colors to use. The word tree in the previous section
was an implicit Word Tree: we just specified an array of phrases, and the
word tree figured out how big to make each word.
In an explicit word tree, the chart creator directly provides information
about which words link to which, their color, and size.
...
In implicit word trees, the actual display size of each word is affected by
two things: the size specified for the word, and the size specified for all
the words below it (that is, to the right) in the tree. In the above word
tree, Life has three children: Archaea (size 1), Eukarya (size 5), and
Bacteria (size 1). Archaea is displayed at a larger size than its siblings
because it has five children, all of size 1. If we add the 21 phyla of
bacteria, the relative sizes will change...
Even if the tree is explicit, it's behaving like an implicit tree about the
'size'(even the first explicit tree example on the google page behaves like
this).
What I want is to get rid of the automatic relative 'size' calculus and
only keep the 'size' values I decide.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/e6c0c38f-0366-474b-9f5b-8bbb1c46eed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.