integrating apdf chart