Please post a real working example, not a description of it - an HTML file
that I can put on my browser and see.

On Mon, Jul 18, 2011 at 5:50 PM, Tomáš Pošepný <[email protected]>wrote:

> Well, I'll try,
>
> so, let's say I have dataTable called old_data with these data:
>
> homer     |    simpson   |   4
> homer     |    simpson   |   3
> homer     |    simpson   |   5
>
> then a I call :
>
> var new_data = google.visualization.data.group( old_data, [0,1], [{
> 'column': 2, 'aggregation': google.visualization.data.sum, 'type':
> 'number' }]);
>
> at this point I add to the new_data a row necessary for TreeMap:
>
> new_data.addRow([ simpson, null, 0 ]);
>
> and pass it to treeMap:
>
>   var tree = new
> google.visualization.TreeMap(document.getElementById("tree_map"));
>         tree.draw(new_data,
>         {
>              minColor: '#f87828',
>             midColor: '#87c840',
>             maxColor: '#45c3fa'
>         });
>
> the result is as follows:
>
> the whole treemap is filled with "simpson",
> when I click it, I would expect it to be filled with one "homer", but
> unfortunatelly, it's filled with three "homer" squares of the same size.
>
> if I check the new_data, it looks like one would expect:
>
> homer      |   simpson  |   12
> simspon  |    null         |    0
>
> thanks
>
>  On Mon, Jul 18, 2011 at 4:24 PM, Jinji <[email protected]> wrote:
>
>>
>>
>> On Sat, Jul 16, 2011 at 12:20 AM, tomasposepny <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> I have troubles with using treemap and passing it the result of
>>> google.visualization.data.group().
>>> I have something like:
>>>
>>> var tree_data = google.visualization.data.group(...);
>>> tree_data.addRows([ .... ]);
>>> var tree = new
>>> google.visualization.TreeMap(document.getElementById("tree_map"));
>>> tree.draw(tree_data, ...);
>>>
>>> but it displays the data from the group() method not grouped together,
>>> it seems that if there was some item for example 5times, then it
>>> really does the sum for these five rows (i have the sum() inside the
>>> group() method) but it still draws it five times (with the value of
>>> sum for every row).
>>> the weirdest is, that when i pass this data to a table to check
>>> whether the data is what I think it is, it displays the wanted result
>>> (just one line for every item that is actually in tree map many times)
>>>
>>> I have no idea what this can be :(
>>>
>>
>> Can you post the simplest possible example that demonstrates this issue?
>>
>> My second point is, that I am using Map and a have multiple markers
>>> with exactly the same latitude and longitude a these don't go blue
>>> when i select associated items in associated table.
>>> Also, is it possible to customize what is shown when I click the
>>> marker? now it is the lat and long, is it possible to set what to
>>> show?
>>>
>>
>> Please open a new thread for unrelated issues, thanks. It makes it much
>> easier for us to handle.
>>
>> THANKS A LOT for any comments,
>>> Tom
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Visualization API" group.
>>> To post to this group, send email to
>>> [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-visualization-api?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Visualization API" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-visualization-api?hl=en.
>>
>
>
>
> --
> [image: Please consider the environment before printing]
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to