Welcome, and please read the Announcement topic at the top of the sub-forum to learn how to correctly post code and other useful things.

Where is chartPanel declared and initialized?