legend updates country linegraph.