Graph settings (legend) working