Add triple compare histogram charting function