Is there any documentation about how to customize dashboard chart source?

I want to create a customized pie graph for my dashboard chart source. The legends seem to be overlapping. I want to be able to put my legent on the left and the chart on the right side.

But there isn’t much documentation about this apart from this link: https://docs.erpnext.com/docs/user/manual/en/dashboard