Dynamic levels based on the View

Dear all

I am currently setting up our Org Chart using different views. I would like to set the levels depending on the view. For example: The Executive overview should have 1 level, and the departmental view 2 levels.
Is that something we can modify in Javascript?

Thanks a lot for your help!
Manuel