In recent months, the chancellor has become a lightning rod for criticism.