Closed sharlagelfand closed 3 years ago
@giorgi-ghviniashvili here is a sample spec, and how it looks now:
The zoom kind of works, but since the axis is shared between the last few frames it doesn't update with the new range.
@sharlagelfand Seems like this is gemini issue that it does not update axis. Let me take a look why.
OK, fixed it. It was not correctly drawing vega-axis
layer.
https://user-images.githubusercontent.com/6615532/119660871-c6f40f80-be40-11eb-8160-6f56f1d6455a.mov
Thanks @giorgi-ghviniashvili! This looks great. I tried it with error bars as well but it looks like they're drawn twice or something, could you take a look? Here are the specs.
@sharlagelfand sorry, forgot to clear old container, here it is:
https://user-images.githubusercontent.com/6615532/119702469-8909e200-be66-11eb-984e-1a2f505bba73.mov
Thanks, looks good!!
Going to reopen this since it looks like there's an issue with zooming on errorbars when there are no facets, as in this spec:
Sad.. It is gemini thing, not able to correctly update y axis.. Trying to figure it out, whether it is a gemini bug or ours.
@sharlagelfand, so the reason of the issue is because we have different y-axis on last two specs.
Ok, I fixed it and now it correctly updates y-axis when animating last frame.
Ok, thats good. Now bad news, it does not correctly change width (to shift x-axis because of floating points) and still getting this:
Gemini recommend does same in gemini-editor, it just expands axis to the left:
I tried to add this to gemini spec manually in code after recommend
{
"component": "view",
"change": {
"signal": [
"width", "height"
]
},
"timing": {
"duration": {
"ratio": 1
}
}
}
and seems like it worked:
https://user-images.githubusercontent.com/6615532/120314113-f1841380-c2eb-11eb-8935-c0af02704432.mov
It looks good to me now, thanks @giorgi-ghviniashvili!
Just curious, do you know why the sizing of axes changes and overlaps in Firefox, but not in Chrome? Everything looks pretty nice in Chrome:
But a bit rough in Firefox (my main browser):
No Idea, will try to debug and see why.
Expanding on #44, would be good to have the final frame zoom in to only show the range of the error bars, not of the full data.
I'll generate a test spec for this.