Chartplot refactoring.