This is a very good question as performance is a key struggle in Data Visualization. Swizec answer below is great.
I will write more about performance soon. But using several layers of canvas is definitely the way to go in most situation to put it in a nutshell