Line chart line selection logic