cannot plot events on unit tab

how to plot correctlty according to sections.currently all events are plotted in the first one

this is stored in $str variable
{key:18, label:“ash”},{key:19, label:“Kat”}

this is passed to sections
var sections=[<?php echo $str;?>];

i am getting events in json in the format

[{“id”:“40”,“start_date”:“2013-05-30 19:45:00”,“end_date”:“2013-05-30 20:45:00”,“text”:“New event”,“emp_id”:“19”},{“id”:“41”,“start_date”:“2013-05-30 16:10:00”,“end_date”:“2013-05-30 17:10:00”,“text”:“New event”,“emp_id”:“19”}

how to get it to plot correctlty according to sections.currently all events are plotted in the first one?

Hello,
how do you configure units view?
Constructor must have ‘property’ parameter, which in your case must be equal 'emp_id’ scheduler.createUnitsView({ name:"unit", property:"emp_id", list:sections });Then events should be placed correctly
docs.dhtmlx.com/doku.php?id=dhtm … units_view