import { buildLabel } from "./label.js";
import { FoldMeasureId, MedianMeasureId } from "../../../../../dataReshape/constant.js";
const labelBoxPlot = (spec, context)=>{
    const result = {
        ...spec
    };
    const { advancedVSeed, vseed } = context;
    const { chartType, encoding } = advancedVSeed;
    const baseConfig = advancedVSeed.config[chartType];
    const { label } = baseConfig;
    result.label = buildLabel(label, vseed.measures, vseed.dimensions, advancedVSeed.dimensions, advancedVSeed.measures, encoding, [
        {
            measureId: FoldMeasureId,
            measureValue: MedianMeasureId
        }
    ], advancedVSeed?.locale);
    return result;
};
export { labelBoxPlot };

//# sourceMappingURL=labelBoxPlot.js.map