I’ve been playing around with trying to create a workbook that would contain multiple grouped bar charts and I’d like to do so in as DRY a manner as possible. One thought was to have a notebook where the last cell contains the D3 import, and the prior cell contains a function for generating the chart that has a single parameter designed to take in the data for the chart.
Is there a cleaner way to approach it than this?