Hello All,
I have 2D and 3D pie charts with in infragistic version 6.3.20063.1079.Want to add custom colors to each pie segments in the chart. The color hashcode (ex. #AABBCC) stored in my database. i can retrive it into a data table. There is any method to assign the these colors from database with data which shows in the chart.I have tried with IRender but not yet found solutionSuppose Married 25% #110011Unmarrid 75% #FFAABBin my database now i have pie chart with above data execpt the color. Need to set color to respective segment.Thank you in advance.
Hi, I tried to use color for my 3d pie chart. I have used following code suggested by you integrate customize color in my pie chart.
UltraChart1.ColorModel.ModelStyle = Infragistics.UltraChart.Shared.Styles.ColorModels..CustomLinear;UltraChart1.ColorModel.CustomPalette = new Color[] { Color.Orange, Color.Orchid, Color.PapayaWhip };
Error is saying that: i have missing some assembly reference or name space for color. Error is appearing at following line. new Color[] { Color.Orange, Color.Orchid, Color.PapayaWhip };
I have used following two namespace for color model.
using Infragistics.UltraChart.Shared.Styles;
using Infragistics.UltraChart.Core.ColorModel
Please suggest me what i am missing here.
Look forward to your quick response.
Hi,
Thanks for quick reply.
yes i got it what i want.
Thanks again for help
Check out my blog post:
http://blogs.infragistics.com/blogs/skim/archive/2008/09/05/chart-university-chart-101-and-some-201-301-401-stuff.aspx
For 2D charts, I talk about coloring certain primitives in the 301 section . For 3D charts, you will have to use the color model technique in the 201 section. If you run into any issues, let me know.