I'm trying to draw the chart below, but I haven't found any solution to get the connection from "Option 1" and "Option 2" to a common child node "C".
I've tried my best using forest package, which resulted in the following MWE:
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage[edges]{forest}
\usetikzlibrary{arrows.meta, shapes.geometric, calc, shadows}
\begin{document}
\begin{forest}
warn/.append style = {
% rectangle,
font = \sffamily\footnotesize\bfseries,
% rounded corners = 2pt,
% inner color = hsoorange,
% outer color = hsoorange
},
box/.append style = {
rectangle,
font = \sffamily\footnotesize\bfseries,
draw = black,
align = center,
inner color = green,
outer color = green,
},
special/.append style = {
rectangle,
font = \sffamily\footnotesize\bfseries,
draw = black,
align = center,
inner color = orange,
outer color = orange,
},
for tree = {
font = \sffamily\footnotesize,
l sep = 0.6em,
s sep = 0.3em,
minimum width = 4.0em,
line width = 1pt,
child anchor = north,
parent anchor = south,
edge path={
\noexpand\path[color=black,
% rounded corners=5pt,
>={Stealth[length=10pt]},
line width = 1pt,
-,
\forestoption{edge}
]
(!u.parent anchor) -- +(0,-9pt) -| (.child anchor)\forestoption{edge label};
},
},
forked edges,
[Title, box
[Option 1, box
[A, box
[, edge=dotted,
[cool, warn, edge=dotted]]
]
[B, box
[, edge=dotted
[not cool, warn, edge=dotted]]
]
[C, special]
]
[Option 2, box
[X, box
[, edge=dotted
[ok!, warn, edge=dotted]]
]
[Y, box
[1, box]
[2, box]
[3, box]
[4, box]
]
[Z, box]
]
]
\end{forest}
\end{document}
However, I was not able to have a common child node "C", and the edges leading to the comments on the last level are interrupted and not continous, which does not look so nice.
Please, could anyone provide me with a solution using forest, tree or native tikz?
Kind Regards






forestcan't do it without some manual intervention. – Alan Munn Aug 10 '23 at 15:02llength of the edge. – Alan Munn Aug 10 '23 at 16:00