Line chart with generated legends