VisActor / VTable

VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns.
https://visactor.io/vtable
MIT License
1.64k stars 134 forks source link

[Feat] when has columnTree can aggregator records by tree path #2279

Open lucky-LuSir opened 1 month ago

lucky-LuSir commented 1 month ago

Version

1.0.0

Link to Minimal Reproduction

以下配置

Steps to Reproduce

    const option = {
        columnTree: [
            {
                dimensionKey: 'Segment-1',
                value: 'Segment-1 (virtual-node)',
                virtual: true,
                children: [
                    {
                        dimensionKey: 'Segment',
                        value: 'Consumer',
                        children: [
                            {
                                indicatorKey: 'Quantity',
                                value: 'Quantity',
                            },
                        ],
                    },
                ],
            },
            {
                dimensionKey: 'descc',
                value: 'descc',
                virtual: true,
                children: [
                    {
                        indicatorKey: 'desc',
                        value: 'desc',
                    },
                ],
            },
        ],
        indicators: [
            {
                indicatorKey: 'Quantity',
                title: 'Quantity',
                width: 'auto',
                showSort: false,
            },
            {
                indicatorKey: 'desc',
                title: 'desc',
                width: 'auto',
                showSort: false,
            },
        ],
        supplementxndicatorNodes: false,
    };

Current Behavior

Expected Behavior

image

期望: 需要有一列拓展属性, 比如备注, 描述, 独占一列然后展示 以上代码通过columnTree展示了拓展属性, 但是desc数据没展示, 期望desc下面数据能出来

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

fangsmile commented 3 weeks ago

请把复现代码给一份 可以直接粘贴到官网demo编辑器中能复现出来的代码吧 @lucky-LuSir

fangsmile commented 1 week ago

image 这个是目标效果吗 @lucky-LuSir