D3 - Pass data and config together into a new chart?

Can we pass data and config values together into a new chart?

Hi stj,
For these kind of questions it’s best if you include some example code. Without more context the answer is “it depends on how you wrote your chart function”.