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

dimensions with predicate? #112

Open
btm1 opened this issue Dec 11, 2015 · 0 comments
Open

dimensions with predicate? #112

btm1 opened this issue Dec 11, 2015 · 0 comments

Comments

@btm1
Copy link

btm1 commented Dec 11, 2015

is it possible to specify dimensions for objects that have name spaced properties?

i.e.
how would i create a dimension for days.value in the object blow

{
    "days": {
        "value":"foo"
    }
}

as far as I can tell the dimension is just the key value on the map or is there an alternate way of defining it?

if I might suggest... you're looking for certain properties in each dimensions object like axis and type and you're use the key value as the thing to watch on the model but what if you just added a condition that went one level deeper on the model if the model[dimensionKey] is an object... before looking to return a value

or... you could allow dimension keys to be strings with dot syntax i.e. "some.value" as the key for a dimension

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