David-Desmaisons/Vue.D3.sunburst

Colour schemes and colour blocking children

Closed this issue · 1 comments

Is there a way to pass down the same colour from parent data to children data so that children data is organised into colour blocks that relate directly to their parent?

This is possible with the D3 Zoomable Sunburst, as seen in this example:

Screenshot 2019-04-09 at 16 38 10

Also, is it possible to create customised colour schemes? Thanks!

  1. Yes: check getCategoryForColor props
  2. Check the demo for all the colour schemes, currently 8 D3 schemes are supported:
    https://david-desmaisons.github.io/Vue.D3.sunburst/