added settings to configure number of samples in graph preview