Fix #2533073

This fixes a regression in charts 3.9.0pr1.
Changes have been tested.