KendoTreeMap is not a function while using it in Angular Framework

0 Answers 81 Views
TreeMap
Sriram
Top achievements
Rank 1
Sriram asked on 03 Apr 2023, 12:18 PM | edited on 03 Apr 2023, 12:20 PM
I tried to insert a Treemap for static data.. but while calling the function using the native element of html tag it says (...).kendoTreeMap is not a function. This error occurs even when I tried using jquery.

This is my code ...

Treemap.component.ts

 async initializaer(){
    this.treemap.nativeElement.kendoTreeMap({
      dataSource: {
        data: [{
          name: "Root",
          items: [{
            name: "Group A",
            value: 1,
            items: [{ name: "foo", value: 1 }, { name: "bar", value: 2 }, { name: "baz", value: 3 }]
          }, {
            name: "Group B",
            value: 1,
            items: [{ name: "foo", value: 1 }, { name: "bar", value: 2 }, { name: "baz", value: 3 }]
          }]
        }]
      },
      autoBind: false,
      valueField: "value",
      textField: "name",
      colors: [["#ff6666", "#ff0000"], ["#7fb17f", "#006400"]]
    });

No answers yet. Maybe you can help?

Tags
TreeMap
Asked by
Sriram
Top achievements
Rank 1
Share this question
or