changes for the legend in the graph