Reduced the number of repetitive calls in chart URL construction.