chart bug 1

Struggling with bug, syntax error fixed