generate new legend on dataset change