score:1

Accepted answer

you can get the element in ready method of polymer class so that by the time ready is called, element will be defined and it won't be null. you can use below code

  class sensorsapp extends polymer.element {


    ready(){
    super.ready();
    var ctx = this.shadowroot.queryselector("#chart").getcontext("2d");
    }
    }

Related Query

More Query from same tag