Skip to content

cornerRadius breaks bar chart when there is a interval select parameter #9750

@Light2Dark

Description

@Light2Dark

Bug Description

{
    "data": {
        "values": [
            {"a": "A", "b": 28},
            {"a": "B", "b": 55},
            {"a": "C", "b": 43},
            {"a": "D", "b": 91},
            {"a": "E", "b": 81},
            {"a": "F", "b": 53},
            {"a": "G", "b": 19},
            {"a": "H", "b": 87},
            {"a": "I", "b": 52}
        ]
    },
    "mark": {
        "type": "bar",
        "cornerRadius": 1
    },
    "encoding": {
        "x": {
            "field": "a"
        },
        "y": {
            "field": "b",
            "type": "quantitative"
        },
    },
    "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",
    "params": [
        {
            "name": "pan_zoom",
            "bind": "scales",
            "select": {
                "type": "interval"
            }
        }
    ]
}

When cornerRadius is 0, it renders correctly

Image

If cornerRadius is 1 and select.type is "interval", the bars don't show up. The bars show up if select.type changes to "point"
Image

Similar issue:
#6759

Checklist

  • I checked for duplicate issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions