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
1615
Composite chart legend and ColorModel issues
posted

Hello, I'm using IG 10.3 and C# I have this composite chart which for some reason does not take the ColorModel's settings below:

chart1.ColorModel.ModelStyle = Infragistics.UltraChart.Shared.Styles.ColorModels.CustomLinear;

chart1.ColorModel.CustomPalette = new Color[] { Color.FromArgb(241, 112, 34), Color.FromArgb(46, 63, 83), Color.FromArgb(238, 246, 108), Color.FromArgb(160, 174, 193), Color.FromArgb(237, 189, 62), Color.FromArgb(58, 95, 11), Color.FromArgb(98, 194, 204), Color.FromArgb(53, 6, 8), Color.FromArgb(204, 255, 187), Color.FromArgb(199, 59, 11), Color.FromArgb(129, 125, 98), Color.FromArgb(187, 119, 46), Color.FromArgb(233, 220, 185) };

It does take this setting though:

chart1.BackgroundImageFileName = page.Server.MapPath("~/images/BG.gif");

I should mention that the code for the charts on that page is in a separate class file, but all other charts seem to work fine with similar set up.

And also the legend is fixed to the top left corner and I'd like to move it to the top so it does not obscure the Y Axis labels. Here is the code for the legend:

<Legends>                                                                                                                <igchartprop:CompositeLegend ChartLayerList="chartLayer1" Visible="true" BoundsMeasureType="Percentage" LabelStyle-Orientation="Horizontal">

<Border Thickness="0" /></igchartprop:CompositeLegend>

</Legends>

 

But it does not have any Location property like the regular legend would have: <Legend Visible="True" SpanPercentage="10" Location="Top"></Legend> so how can I place it on top of the chart?

Any ideas would be much appreciated.

Thank you.