About pie chart

Posted by: toynnus on 23 December 2020, 3:39 pm EST

    • Post Options:
    • Link

    Posted 23 December 2020, 3:39 pm EST

    dear. grapecity team.

    I have question about flexPie chart.

    I want set color to pie chart . so I use custom palette.

    but not working… plz help me. thank you.

          FlexPie.CustomPalette = New Brush() {Brushes.White, Brushes.White, Brushes.White, Brushes.White, Brushes.White}
            FlexPie.Palette = C1.Chart.Palette.Custom
    
  • Posted 23 December 2020, 6:00 pm EST

    Hi Sungtae,

    It seems like you are setting all the palette colors to white. Is this intended?

    And also the same is working fine at my end with the latest build. I have also attached a sample to verify the same. (see FlexPiePalette.zip)

    Could you please share the C1 version you are using? In case you are using an old version then I would request you to upgrade to the latest build (4.5.20203.468) using C1ControlPanel.

    https://www.grapecity.com/componentone/download

    If possible please share a sample replicating the behavior.

    Regards,

    Kartik

    FlexPiePalette.zip

  • Posted 23 December 2020, 6:38 pm EST

    Thanks ^^

    for vb.net

            FlexPie.CustomPalette = New List(Of Brush)() From {
             Brushes.Red,
             Brushes.Blue,
             Brushes.Blue,
             Brushes.Yellow,
             Brushes.Orange
             }
            FlexPie.Palette = C1.Chart.Palette.Custom
    
  • Posted 23 December 2020, 6:52 pm EST

    Hi Sungtae,

    Sorry, I didn’t notice that you are using VB.Net. However, thank you for sharing the vb code snippet of the suggested solution.

    Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels