legend has to be reworked to be 1-1 with chart as an object