import { createNumFormatter } from "../../../utils/index.js";
import { createLinearFormat } from "../pipes/axes/format/linearFormat.js";
const getDefaultXFormatterOfHistogram = (advancedVSeed)=>{
    const { chartType, config } = advancedVSeed;
    const xConfig = config?.[chartType]?.xAxis;
    const { autoFormat = true, numFormat = {} } = xConfig;
    const formatter = createNumFormatter(numFormat);
    return (value)=>createLinearFormat(value, autoFormat, numFormat, formatter);
};
export { getDefaultXFormatterOfHistogram };

//# sourceMappingURL=histogram.js.map