Scope isolation for chart elements