How to get two different lines in one graph while selecting the options in template variable?

how to get two different lines in one graph while selecting multiple options through template variable and DB is elastic search.