render only after binding data in bind_data
formatting
render grid, axis, and legend only once
remove exiting tracks
let drawTrack return next track offset