How to customize the Organizational Chart

Hello All,
Organizational Chart is displaying based on company filter alone I want to add department filter also based on company and department wise the connection chart should display. How to custom this?

Regards
Nivedha

Any input for the above customization?

Can anyone suggest me with code how to do this?

Regards
Nivedha