Legend under chart

how do i put legend under chart? having chart like this, i want the legend to be as one line under graph

You can accomplish this using the orientation property under layout.legend.
See here for more details: layout.legend properties for Python