add comparison charts init function