code snippets api for d3-panel