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

Binning of color produces wrong result #9408

Open
jbonsai opened this issue Aug 4, 2024 · 0 comments
Open

Binning of color produces wrong result #9408

jbonsai opened this issue Aug 4, 2024 · 0 comments
Labels

Comments

@jbonsai
Copy link

jbonsai commented Aug 4, 2024

If I try to bin the color channel, it fails to encode the channel properly and the color coding is wrong. MWE and screenshots are attached.

Best wishes

MWE:

{
    "$schema": "https://vega.github.io/schema/vega-lite/v5.17.0.json",
    "config": {
        "view": {
            "continuousHeight": 300,
            "continuousWidth": 300
        }
    },
    "data": {
        "name": "data-30a68a81d8d3bdebcb5776dbb52a0fc2"
    },
    "datasets": {
        "data-30a68a81d8d3bdebcb5776dbb52a0fc2": [
            {
                "iso": 70315,
                "value": 0.6
            },
            {
                "iso": 70312,
                "value": 0.1
            },
            {
                "iso": 70500,
                "value": 0.2
            }
        ]
    },
    "encoding": {
        "color": {
            "bin": {},
            "field": "value",
            "type": "quantitative"
        },
        "x": {
            "field": "iso",
            "type": "quantitative"
        },
        "y": {
            "field": "value",
            "type": "quantitative"
        }
    },
    "mark": {
        "type": "point"
    }
}

points
geo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant