Further movement to HTML based chart. Must test on older webview
components.
Added legend (necessitated updated string in FlashCard)
Cosmetic enhancements
Cleaned up code