simplify transform function and expand to reuse in pie and sunburst
simplify transform function and expand to reuse in pie and sunburst

etpinard/plotly.js,plotly/plotly.js,aburato/plotly.js,etpinard/plotly.js,etpinard/plotly.js,aburato/plotly.js,plotly/plotly.js,plotly/plotly.js,plotly/plotly.js