Solved problem with chart