This is a migrated thread and some comments may be shown as answers.

Where can I see the example data that feeds Treemap Demo?

1 Answer 71 Views
TreeMap
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Veteran
Robert asked on 03 Sep 2019, 01:49 PM

Where can I find the data that is used to feed the demos for charts?  All of the chart demos have calls where I can't really see what data is being fed to the chart.  For example in the Treemap demo:

public ActionResult Index_PopulationUSA()
       {
           return Json(TreeMapDataRepository.PopulationUSAData(), JsonRequestBehavior.AllowGet);
       }

Where can I see the data in TreeMapdataRepository.PopulationUSAData?

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetomir
Telerik team
answered on 05 Sep 2019, 07:54 AM
Hi Robert,

Generally, the live demos that are uploaded in our Demo site could be observed locally. In the installation folder of the Kendo UI there should be a folder with a .sln file at the following path:

..\wrappers\aspnetmvc\Examples\VS2017\

There, in the TreeMapDataRepository file, you would be able to observe the structure of the data. Here is a sample:

List<PopulationUSA> result = new List<PopulationUSA>();
 
           PopulationUSA usa = new PopulationUSA("Population in USA", 316128839, new List<PopulationUSA>());
           result.Add(usa);
 
           PopulationUSA alabama = new PopulationUSA("Alabama", 4833722, new List<PopulationUSA>());
           usa.Items.Add(alabama);
           alabama.Items.Add(new PopulationUSA("Birmingham", 212113, null));
           alabama.Items.Add(new PopulationUSA("Montgomery", 201332, null));
           alabama.Items.Add(new PopulationUSA("Mobile", 194899, null));
           alabama.Items.Add(new PopulationUSA("Huntsville", 186254, null));
           alabama.Items.Add(new PopulationUSA("Tuscaloosa", 95334, null));
           alabama.Items.Add(new PopulationUSA("Hoover", 84126, null));
           alabama.Items.Add(new PopulationUSA("Dothan", 68001, null));
           alabama.Items.Add(new PopulationUSA("Auburn", 58582, null));

Or you can observe it in our online service:

https://demos.telerik.com/kendo-ui/content/dataviz/js/population-usa.json


Best regards,
Tsvetomir
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
TreeMap
Asked by
Robert
Top achievements
Rank 1
Veteran
Answers by
Tsvetomir
Telerik team
Share this question
or