Updating the library to handle dynamic theme changes.

Good spot! fixed by setting legendHeight = series.length * 20;