Forum Discussion
Anonymous
8 years agoNot applicable
Giving color using IcolorPalette
I have created a pie chart visual by following the tutorial .I'm looking to give it color using the IcolorPalette interface.I'm following the same steps as the tutorial,but it seems to be not working...
- 8 years ago
Hello Anonymous
Please use this the fill function instead:
let fill = ((d): string => { return d.data.color; });Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Anonymous
8 years agoNot applicable
Thanks bro,it worked.
Could you please explain why it worked?
Thanks again.
v-viig
Community Champion
8 years agoD3's pie layout keeps the original data in the data property.
This is why that works.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals