automatic data visualizer for ad-hoc queries