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

2 posts, 1 answers
  1. Robert
    Robert avatar
    36 posts
    Member since:
    Dec 2016

    Posted 03 Sep 2019 Link to this post

    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?
  2. Answer
    Tsvetomir avatar
    724 posts

    Posted 05 Sep 2019 Link to this post

    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.
Back to Top