Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using geoChart to display following data in country Map

I have plotted the map using State cloumn and TotalSales($) as value Column

Now ,the tooltip displays like this : ID TotalSales($_113607.00)

I have following summary data in datatable

country State TotalSales($)
------- ------ -------------

USA ID 113607
USA CO 1003460
USA MN 7333040
USA VA 42711

this is my actual data

country State City BrandName TotalSales($)
------- ------ ---- --------- -------------

USA ID Blackfoot sony 100000
USA CO Thornton sony 1003460
USA ID Boise Samsung 6607
USA ID Buhl sony 7000
USA MN Burnsville iPhone 59400
USA VA FairFax sony 7768
USA VA FairFax iPhone 34943
USA MN Gn.Vallley nokia 673940



Now I have added more columns(City,Brandname) to break data from summary data from first table

The tooltip displays like this : VA Totalsales($_:34943(City Fairfax(BrandName sony)))- this is wrong

But I want to display the tooltip like this : VA Totalsales($_:7768(City Fairfax(BrandName sony))) - this is correct

this is my data to display tooltip

country State City BrandName TotalSales($)
------- ------ ---- --------- -------------
USA VA FairFax sony 7768
USA VA FairFax iPhone 34943

From these, what I got is , Geochart takes only last row for display tooltip,but I want to display particular brand's Totalsales i.e sony -7768$

How do I do this?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900