Skip to main content
A chart fed by a live source updates by receiving new data. Keep spec the same object across pushes. The provider compares it by reference, and a new one means a full compile, spec resolution included, and clears the undo history. A data push alone reuses the resolved spec and keeps every layer’s id, which is what lets a geom transition to its new position rather than redraw. Each source message supplies a complete data object (columns and rows) containing the current rolling window.
Transitions are off here because a source that pushes faster than a spring settles gives the spring nothing to settle toward. Above maxAnimatedGeoms (1500 by default, set on animation) the graph plays no animation on its own, but that counts geoms, not points. A live bar chart past the ceiling needs no such setting, while a line is one geom however many points it draws, so it keeps transitioning until you turn transitions off.