score:1

Accepted answer

My first instinct would be to make a wrapper function so that a separate d3.arc() generator was made for each of the tools listed in the json. I didn't quite understand what you did for your outerRadius - innerRadius but my (admittedly hacky...) alternative was to just make a scale specific to each of the tools listed in the json.

Here is a block showing my attempt, I hope it is helpful: https://bl.ocks.org/beemyfriend/b9b0a013362bfc0cefa43f7bbb8d403d


Related Query