Fixed the legend appearing in the line charts