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

Transformations inside the 'Marks' don't add the extra_field to data. #21

Open
Ellyster opened this issue Mar 29, 2015 · 0 comments
Open

Comments

@Ellyster
Copy link

When you try to use the transformation inside a mark, like this:

data = pdata.name('table') do
  url('data/groups.json')
end

facet_t = facet_transform.keys('category')

group_m = group_mark.from(data, facet_t) do
  enter do
    y { scale(cat_s).field('key') }
  end
end

Because it is not properly adding the transformation new field to data, it generates this:

"marks": [{ 
  "type": "group",
   "from": { "data": "table" },
   "properties": {
      "enter": {
        "y": { "field": "data.key", "scale": "cat"},
      }
    }
  }],

But it actually should be like this:

"marks": [{ 
  "type": "group",
   "from": { "data": "table" },
   "properties": {
      "enter": {
        "y": { "field": "key", "scale": "cat"},
      }
    }
  }],
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