Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
CustomPalette Wierdness
posted

Hello,

I have a set of 10 default colors that I set in a color array and set it to chart.ColorModel.CustomPalette.  There is some wierdness happening when my dataset that I bind the chart to has under 10 elements, however.  If the dataset has 5 elements in it, instead of using the 5th (4th for zero based arrays) color, it skips it and uses the 6th color.  If I limit the color array to only have 5 colors, it skips the last color in the array and uses the first one again.

 I was doing some 3D pie charts, I'm not sure if this happens on other types of charts.

 thanks

Parents
No Data
Reply
  • 28496
    Offline posted

    There may be a color reserved for the "Others" slice in pie charts.  Try setting the PieChart.OthersCategoryPercent property to 0.

Children
No Data