I can think of a few workarounds:
- a small inline script to load the library, after a node containing a chart has loaded
- embed the whole library file inline, on pages where it's needed
- load the library on every page, via hook_init
From a performance perspective, what is my best option?