added chart exporting