code: function textRect(s,x,y,bgColor,textColor) {
    s=K.toPrint(s);
    var padding=6;
    var charSize=getCharSize(FONT_SIZE);
    var tw=s.length*charSize.width,h=charSize.height+padding*2,w=tw+padding*2;
    var rect={
      type:'rect',
      x:x,y:y-(h/2),
      width:w,height:h,
      stroke:'none',
      fill:bgColor || 'transparent'
    };
    var t={
      type:'text',
      x:x+w/2,y:y,
      text:s,
      'font-size':FONT_SIZE,
      'font-family':FONT_FAMILY,
      fill:textColor || 'black'
    };
    return {
      text:t,rect:rect,
      items:[rect,t],
      width:w,height:h,
      x:x,y:rect.y,
      lineInX:x,lineOutX:x+w
    };
  }
docs: return NodePlot config