anychart.onDocumentReady(function () {
{id:"1_1", start: "2018-01-02", end: "2018-01-25",
fill: "#dd2c00", stroke: "#dd2c00",
connectTo: "1_2", connectorType: "finish-start",
connector: {fill: "#dd2c00", stroke: "2 #dd2c00"}},
{id:"1_2", start: "2018-01-28", end: "2018-02-22"},
{id:"1_3", start: "2018-03-03", end: "2018-03-25"}
{id: "2_1", start: "2018-01-07", end: "2018-02-15",
connectTo: "2_2", connectorType: "finish-start"},
{id: "2_2", start: "2018-02-26", end: "2018-03-20"}
{id: "3_1", start: "2018-01-04", end: "2018-03-25"}
var treeData = anychart.data.tree(data, "as-tree");
var chart = anychart.ganttResource();
chart.container("container");