While attempting a question [https://tex.stackexchange.com/questions/567434/tikz-tree-diagram-classification-with-functional-levels] I got stuck at level 3 and 4--
How do I get the correct structure setup from C1 onwards-- similar to what is shown in the reference link
Extract of link
where C1 =Hybrid, C11=MEMS, C12=citation and so on going east
MWE
\documentclass{article}
\usepackage{geometry}
\usepackage[edges]{forest}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usetikzlibrary{shadows}
\begin{document}
\tikzset{
my node style/.style={
font=\small,
top color=white,
bottom color=blue!25,
rectangle,
rounded corners,
minimum width=1em, text width=2em,
draw=blue!75,
very thick,
align=center,
}
}
\forestset{
my tree style/.style={
for tree={
my node style,
grow=east, anchor=west, forked edge,
% calign=first,
reversed=true,
edge={ultra thick}
},
where level=2{
inner color=green!75,
outer color=green,
parent anchor=south east,
for descendants={
% folder,
child anchor=west,
parent anchor=south west,
anchor=south west,
color=red!75,}}{}
}
}
\begin{forest}
my tree style
[X
[A
[A1]
[A2]
[A3]
[A4]
]
[B
[B1]
[B2]
[B3]
[B4]
[B5]
]
[C
[C1,
[C11
[C12]]
]
[C2]
[C3]]]
\end{forest}
\end{document}
Output