Changing The Domain Of A Scale Without Shifting The Entire Plot
I am working on a realtime simulation. I generate an hour of data, but I only want to present a portion of that, and scroll the plot when I get close to the right edge. I define tw
Solution 1:
I figured out what I was missing. Adding
"padding": {"left":100, "right": 100, "top": 50, "bottom":100},
fixed the problem.
Solution 2:
Would you mind sharing the portion of your code that performs filtering? The Vega 3 code I wrote like this, works for one spec with symbols marks but not for another spec with line marks.
data: [
{
name: 'table',
transform: [
{ type: 'filter', expr: 'datum.l >= timeStart && datum.l <= timeEnd' }
],
values: [blah blah]
}
]
In https://github.com/vega/vega/issues/113, kjavia mentions a "tearing" effect which I see in my spec with line marks.
Post a Comment for "Changing The Domain Of A Scale Without Shifting The Entire Plot"