const initScatter = (spec, context)=>{
    const result = {
        ...spec
    };
    const { advancedVSeed } = context;
    const { datasetReshapeInfo } = advancedVSeed;
    const { unfoldInfo, foldInfoList } = datasetReshapeInfo[0];
    result.type = 'scatter';
    result.direction = 'vertical';
    result.xField = foldInfoList?.[0].measureValue;
    if (foldInfoList?.[1]) result.yField = foldInfoList[1].measureValue;
    else if (unfoldInfo.encodingX) {
        result.xField = unfoldInfo.encodingX;
        result.yField = foldInfoList?.[0].measureValue;
    }
    result.seriesField = unfoldInfo.encodingColorId;
    result.padding = 0;
    result.region = [
        {
            clip: true
        }
    ];
    result.animation = true;
    return result;
};
export { initScatter };

//# sourceMappingURL=scatter.js.map