score:0

hmmm, have you tried using lowercase s for styles. this works for me on the main tree object (i'm not sure about individial):

 <tree
      data={debugdata}
     // collapsible={false}
      translate={this.state.translate}
      scaleextent={{ min: 1, max: 3 }}
      allowforeignobjects
     // pathfunc="elbow"
      orientation="vertical"
      nodesvgshape={{ shape: "none" }}
      nodesize={{ x: 200, y: this.yclearance }}
      onclick={e => this.click(e)}
      onmouseover={e => this.over(e)}
      styles={{
        links: {
             
              stroke: 'red',
              strokewidth: "2px",
            },
     }}

Related Query

More Query from same tag