Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

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...
  • v-viig's avatar
    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

    [email protected]