sm Charts and commented code