factor out charting into module, working interval selection