Added the ability to detach legends into a new div
Added the ability to process data before charting it