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

x/yOffset within a continuous scale #7722

Open
kanitw opened this issue Sep 26, 2021 · 1 comment
Open

x/yOffset within a continuous scale #7722

kanitw opened this issue Sep 26, 2021 · 1 comment
Labels

Comments

@kanitw
Copy link
Member

kanitw commented Sep 26, 2021

In #7684, we can't add xOffset encoding inside quantitative x scale at all.

However, it might make sense to do something like this to draw error bar:

encoding: {
  x: {aggregate: 'mean', 'field': 'value'},
  y: {field: 'category'}
},
layer: [{
  mark: 'circle', 
}, {
  mark: 'rule', 
  encoding: {
    xOffset: {aggregate: 'stdev', field: 'value'},
    xOffset2: {aggregate: 'stdev', field: 'value', multiply: -1} // also need to add `multiply` like in Vega? 
  }
}]
@kanitw kanitw added Enhancement 🎉 P4 Nice to Have labels Sep 26, 2021
@PBI-David
Copy link
Contributor

PBI-David commented Oct 11, 2022

Here is a stack overflow question that looks related.

https://stackoverflow.com/questions/74021286/showing-gaps-in-ordinal-time-based-data-in-vega-lite?noredirect=1#comment130713049_74021286

It seems that xOffset doesn't properly support temporal datatypes (which is continuous but also logically discrete at the same time as there are only 4 quarters).

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

2 participants