almost got a chart working