source code for comparison charts