Factor out graph and table query result displays.