Forum Discussion
Anonymous
8 years agoNot applicable
Color APi to generate gradient
hello, I would like to know if the colorHelper API offers the possibility to generate a gradient of x color ? using a specific type of interpolation ? Thank you,
- 8 years ago
Anonymous
No, colorHelper doesn't support gradient.
Please use d3 color scale or our Color Utils as proposed v-chuncz-msft
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
v-chuncz-msft
8 years agoCommunity Support
Anonymous,
You may check https://github.com/Microsoft/powerbi-visuals-utils-colorutils/blob/master/docs/api/colorUtils.md#createlinearcolorscale.
v-viig
8 years agoCommunity Champion
Anonymous
No, colorHelper doesn't support gradient.
Please use d3 color scale or our Color Utils as proposed v-chuncz-msft
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals