The ornamental design for a chair with a compartment, as shown and described.
FIG. 1 is a perspective top front right view of a chair with a compartment, showing my new design;
FIG. 2 is a perspective top rear left view thereof;
FIG. 3 is a front elevation view thereof;
FIG. 4 is a rear elevation view thereof;
FIG. 5 is a right elevation view thereof;
FIG. 6 is a left elevation plan view thereof; and,
FIG. 7 is a top plan view thereof;
FIG. 8 is a bottom plan view thereof;
FIG. 9 is a perspective top front right view of a cushion of the chair removed showing the location of the compartment, and a lid of the compartment in a partially open state; and,
FIG. 10 is a cross-sectional view of the chair with the compartment taken along the line 10-10 of FIG. 9.