-
Notifications
You must be signed in to change notification settings - Fork 622
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
Columns not working properly in VL spec (possibly period in name of column?) #1949
Comments
Still haven't got the solution, but in any case this simpler spec produces the same problem
|
Relieved to hear this is actually an issue. I try to keep my Github-issues "actual problem" to "my bad programming skills" ratio above one. |
The problem is that any aggregate field would normally get In this case, the layout need to know number of unique values but got Straightforward fix would be to make Alternatively, we could
In any case, we need to test that this works for
|
#1951 is a start for this (that works for the example above), but we still need to make test pass and test all cases in the previous comment. |
@willium wondering if you can help fix this. You're the boss of |
|
See #1951 (comment) for an earlier, unfinished attempt. |
Related: #2625. |
Are they related? the dash seems to work. |
I've isolated this down to a problem (or edge case) in Vega: |
I'm not sure if we'd call this a bug in Vega or an edge case we didn't account for in Vega-Lite... If it's not a bug, we should improve the docs here. |
Well if there is a way to handle it, better fix it.
…On Mon, Aug 14, 2017 at 11:52 AM Will Strimling ***@***.***> wrote:
I'm not sure if we'd call this a bug in Vega or an edge case we didn't
account for in Vega-Lite... If it's not a bug, we should improve the docs
here <https://vega.github.io/vega/docs/types/#Field>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1949 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGypepm2PAMlzW88mKsKxUAJB7-h0Zbks5sYJeAgaJpZM4MCjq->
.
|
@jheer: In Vega, the escape pattern |
Hmm, this seems to work: But note that the internal brackets are considered part of the key! |
@domoritz -- I guess this is already supported with proper escaping? If so, please close the issue. |
Yes, it works with escaping. {
"mark": "point",
"data": {
"values": [
{
"engine": "Gunrock",
"algorithm": "BFS",
"num_gpus": 1,
"elapsed": 43.28049087524414,
"dataset": "soc-LiveJournal1",
"m_teps": 1563.7744140625,
"gpuinfo.name": "GPU 1"
},
{
"engine": "Gunrock",
"algorithm": "BFS",
"num_gpus": 2,
"elapsed": 43.28049087524414,
"dataset": "soc-LiveJournal1",
"m_teps": 3456.7,
"gpuinfo.name": "GPU 1"
},
{
"engine": "Gunrock",
"algorithm": "CC",
"num_gpus": 1,
"elapsed": 31.613856554031372,
"dataset": "soc-LiveJournal1",
"m_teps": 2710.914794921875,
"gpuinfo.name": "GPU 2"
}
]
},
"encoding": {
"column": {
"field": "gpuinfo\\.name",
"type": "nominal",
"axis": {"orient": "top","title": "GPU"}
},
"y": {
"field": "m_teps",
"scale": {"type": "log"},
"type": "quantitative",
"axis": {"title": "MTEPS"}
},
"x": {
"field": "num_gpus",
"type": "nominal",
"axis": {"title": "Number of GPUs"}
}
}
} |
Have not seen this behavior before. I am trying to make columns from a field with a period in its name; I've done this successfully for other fields before, so maybe that's the culprit? Anyway,
column
has"field: [gpuinfo.name]"
and I have two values forgpuinfo.name
, both of which appear in the final plot but all data points, no matter which GPU I choose, are in the same column.I sincerely hope I just didn't botch my specification somewhere. (This was generated from Altair.)
The text was updated successfully, but these errors were encountered: