Adding mime-type check to chart generation.
Added chart display to UI.