How can I put text inside the bar instead of over the bar? Thank you in advance for your help!
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{chronosys}
\begin{document}
%---------------------timeline----------------%
\startchronology[align=left, startyear=1790,stopyear=1860, height=0pt, startdate=false, stopdate=false, dateselevation=0pt, arrow=false, box=true]
%
\chronograduation[event][dateselevation=0pt]{10}
%---------------------periods----------------%
\chronoperiode[textstyle=\raggedleft\colorbox{green}, color=green, startdate=false, bottomdepth=0pt, topheight=8pt, textdepth=-15pt,dateselevation=16pt, stopdate=false]{1790}{1860}{Text}
%
\chronoperiode[textstyle=\colorbox{blue}, color=blue, startdate=false, bottomdepth=8pt, topheight=16pt, textdepth=-20pt, dateselevation=12pt, stopdate=false]{1850}{1860}{More text}
%
\stopchronology
\end{document}


\documentclass{...}and ending with\end{document}. – Fran Aug 31 '20 at 21:04