Scheduler code not showing units

My scheduler snippet: Code Snippet

  1. How do you get the units to load not from a URL
  2. How do you get the scheduler to start at Units first (mode: “units”) does not seem to work

check line 119.
in your custom bar Units id is defined as unit.
try to change it to units or use mode:'unit' instead

Here is the new snippet. The error is now:
TypeError: this.app.getService(…).units() is undefined
updated snippet

check line 38
you do not return Promise there
add return statement

return webix.promise.resolve(doug);