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

Duplication of enumerated specs #361

Open
yhoonkim opened this issue Mar 9, 2017 · 0 comments
Open

Duplication of enumerated specs #361

yhoonkim opened this issue Mar 9, 2017 · 0 comments

Comments

@yhoonkim
Copy link
Contributor

yhoonkim commented Mar 9, 2017

When I ran this query with the transformed dataset below, it made 24 specQueryModel but 12 of them are duplicated.

Data

// data is loaded from '../datasets/cars.json'
data = data.map(d => {return {"Origin": d.Origin};});

Query

{
  "spec": {
    "mark": "point",
    "encodings": [
      {
        "channel": "?",
        "field": "Origin",
        "type": "nominal",
        "sort": { "field":"?", "op":"mean", "order":"?"}
      },{
        "channel": "?",
        "field": "Origin",
        "type": "nominal",
        "sort": { "field":"?", "op":"mean", "order":"?"}
      },{
        "channel": "y",
        "field": "*",
        "type": "quantitative",
        "aggregate": "count"
      }
    ]
  },
  "config": {
    "autoAddCount": true,
    "overlay": {
      "line": false
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant