Updating the library to handle dynamic theme changes.

What if ```series.length === 0```