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 24 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
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
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:


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>());
           PopulationUSA alabama = new PopulationUSA("Alabama", 4833722, new List<PopulationUSA>());
           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:

Best regards,
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.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question