refactor(chart): determine depth.