If you would like to make it possible for a user to display additional information about a graph by clicking on that graph of scrolling over it, use the Additional Actions dictionary. This dictionary describes what should happen when an action occurs in the range of a particular annotation. For example, the Additional Action might define that, when a user moves a mouse pointer over the top of an annotation on a PDF page, the annotation changes color to show that it can be selected with a click of the mouse button.
Adobe PDF Library can’t create these as high-level constructs. You will need to read about the dictionaries and objects required, and create them at the COS level. They can then be added to pages created with the Library or to pages read in from an existing document.