Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] corner header do not display when columns & indicators is empty for pivot table #2180

Closed
purpose233 opened this issue Aug 5, 2024 · 0 comments · Fixed by #2190
Closed
Assignees
Labels
bug Something isn't working

Comments

@purpose233
Copy link

Version

1.5.4

Link to Minimal Reproduction

null

Steps to Reproduce

{
    "records": [],
    "rows": [
        {
            "dimensionKey": "date",
            "width": "auto",
            "headerStyle": {
                "fontSize": 16,
                "bgColor": "#EEF1F5"
            },
            "cornerHeaderIcon": "data-type-text"
        }
    ],
    "columns": [],
    "indicators": [],
    "rowTree": [
        {
            "dimensionKey": "date",
            "value": "x1"
        },
        {
            "dimensionKey": "date",
            "value": "x2"
        },
        {
            "dimensionKey": "date",
            "value": "x3"
        }
    ],
    "columnTree": [],
    "corner": {
        "titleOnDimension": "row"
    },
    "editor": "input",
    "headerEditor": "input",
    "widthMode": "adaptive",
    "dragHeaderMode": "all",
    "dataConfig": {
        "aggregationRules": []
    },
    "menu": {},
    "theme": {
        "_defaultStyle": null,
        "_header": null,
        "_cornerHeader": null,
        "_cornerRightTopCell": null,
        "_cornerLeftBottomCell": null,
        "_cornerRightBottomCell": null,
        "_rightFrozen": null,
        "_bottomFrozen": null,
        "_rowHeader": null,
        "_body": null,
        "_scroll": null,
        "_tooltip": null,
        "_frameStyle": null,
        "_columnResize": null,
        "_dragHeaderSplitLine": null,
        "_frozenColumnLine": null,
        "_selectionStyle": null,
        "_axisStyle": null,
        "_checkboxStyle": null,
        "_radioStyle": null,
        "_textPopTipStyle": null,
        "isPivot": false,
        "internalTheme": {
            "obj": {
                "frameStyle": {
                    "borderLineWidth": 0
                }
            },
            "superTheme": {
                "underlayBackgroundColor": "#FFF",
                "defaultStyle": {
                    "borderColor": "#E1E4E8",
                    "color": "#000",
                    "bgColor": "#ECF1F5"
                },
                "headerStyle": {
                    "fontSize": 16,
                    "fontWeight": "bold",
                    "bgColor": "#ECF1F5",
                    "hover": {
                        "cellBgColor": "#CCE0FF",
                        "inlineRowBgColor": "#F3F8FF",
                        "inlineColumnBgColor": "#F3F8FF"
                    }
                },
                "rowHeaderStyle": {
                    "fontSize": 16,
                    "fontWeight": "bold",
                    "bgColor": "#ECF1F5",
                    "hover": {
                        "cellBgColor": "#CCE0FF",
                        "inlineRowBgColor": "#F3F8FF",
                        "inlineColumnBgColor": "#F3F8FF"
                    }
                },
                "cornerHeaderStyle": {
                    "fontSize": 16,
                    "fontWeight": "bold"
                },
                "bodyStyle": {
                    "fontSize": 14,
                    "hover": {
                        "cellBgColor": "#CCE0FF",
                        "inlineRowBgColor": "#F3F8FF",
                        "inlineColumnBgColor": "#F3F8FF"
                    }
                },
                "frameStyle": {
                    "borderColor": "#E1E4E8",
                    "borderLineWidth": 1,
                    "borderLineDash": [],
                    "cornerRadius": 0,
                    "shadowBlur": 0,
                    "shadowOffsetX": 0,
                    "shadowOffsetY": 0,
                    "shadowColor": "black"
                },
                "columnResize": {
                    "lineWidth": 1,
                    "lineColor": "#416EFF",
                    "bgColor": "#D9E2FF",
                    "width": 3
                },
                "frozenColumnLine": {
                    "shadow": {
                        "width": 3,
                        "startColor": "rgba(225, 228, 232, 0.6)",
                        "endColor": "rgba(225, 228, 232, 0.6)"
                    }
                },
                "selectionStyle": {
                    "cellBgColor": "rgba(0, 0, 255,0.1)",
                    "cellBorderLineWidth": 2,
                    "cellBorderColor": "#0000ff"
                },
                "tooltipStyle": {
                    "bgColor": "#FFF",
                    "color": "#000",
                    "fontSize": 12,
                    "fontFamily": "Arial,sans-serif"
                }
            }
        }
    }
}

Current Behavior

image

Expected Behavior

image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@purpose233 purpose233 added the bug Something isn't working label Aug 5, 2024
@fangsmile fangsmile transferred this issue from VisActor/VChart Aug 5, 2024
@fangsmile fangsmile self-assigned this Aug 6, 2024
@fangsmile fangsmile linked a pull request Aug 7, 2024 that will close this issue
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants