Skip to content

can't impute binned field #4939

Open
Open

Description

Vega-lite partial spec (full VL spec)

  "encoding": {
    "x": {
      "bin": {"maxbins": 30},
      "field": "IMDB_Rating",
      "type": "quantitative"
    },
    "y": {
      "field": "IMDB_Votes",
      "type": "quantitative",
      "aggregate": "sum",
      "impute": {"value": 0}
    },
    "color": {"field": "Major_Genre", "type": "nominal"}

image

Expected (proposed Vega spec):

visualization - 2019-05-05T021304 126

problem with generated spec

"defined": {
    "signal": "datum[\"bin_maxbins_30_IMDB_Rating\"] !== null && 
              !isNaN(datum[\"bin_maxbins_30_IMDB_Rating\"]) &&                                                                              
              datum[\"sum_IMDB_Votes\"] !== null &&
              !isNaN(datum[\"sum_IMDB_Votes\"])"
 }

bin_maxbins_30_IMDB_Rating is undefined after impute, impute key is bin_maxbins_30_IMDB_Rating_mid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions