Get chart working with dynamic data