Okay, I may be losing it. I accidentally changed something and I've spent the afternoon trying to figurfe out what I changed.My columns were different colors, specifically blue, yellow, & green. Now, they are all the same color and I can't figure out what got changed to do this. Any help would be appreciated.
I'm using the following code and html:
iColChart.ColorModel.ModelStyle = Infragistics.UltraChart.Shared.Styles.ColorModels.CustomLineariColChart.ColorModel.CustomPalette = New Color() {Color.Blue, Color.Yellow, Color.Green, Color.Purple}iColChart.Section508Compliant = TrueiColChart.TitleTop.Text = choiceiColChart.ChartType = Styles.ChartType.ColumnChartiColChart.Axis.Y.RangeMax = 100iColChart.Axis.Y.RangeMin = 0iColChart.Axis.Y.RangeType = Styles.AxisRangeType.CustomiColChart.Axis.Y.TickmarkInterval = 10iColChart.Axis.Y.TickmarkStyle = Styles.AxisTickStyle.PercentageiColChart.Data.SwapRowsAndColumns = TrueiColChart.Data.MaxValue = 100iColChart.Data.MinValue = 0iColChart.ColumnChart.ColumnSpacing = 1iColChart.BarChart.BarSpacing = 1iColChart.DataSource = GetColumnChart(userProfile, choice) 'dtiColChart.DataBind()
<igchart:UltraChart ID="igBarChart9" runat="server" BackgroundImageFileName="" BorderColor="Black" BorderWidth="1px" ChartType="barchart" EmptyChartText="Data Not Available." Section508Compliant="True" Style="position: static" Version="8.1" Visible="False"> <BarChart> <ChartText> <igchartprop:ChartTextAppearance ChartTextFont="Arial, 7pt" Column="-2" ItemFormatString="<DATA_VALUE:#.0#%>" Row="-2" Visible="True"> </igchartprop:ChartTextAppearance> </ChartText> </BarChart> <Tooltips Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" /> <Data MaxValue="15" MinValue="0" UseMinMax="True" ZeroAligned="True"> </Data> <ColorModel AlphaLevel="255" ColorBegin="Pink" ColorEnd="DarkRed" ModelStyle="CustomLinear" Scaling="Random"> </ColorModel> <Effects> <Effects> <igchartprop:GradientEffect> </igchartprop:GradientEffect> </Effects> </Effects> <Axis> <Z LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart" Visible="False"> <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot" Thickness="1" Visible="False" /> <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot" Thickness="1" Visible="True" /> <Labels Font="Verdana, 7pt" FontColor="DimGray" HorizontalAlign="Near" ItemFormatString="" Orientation="Horizontal" VerticalAlign="Center" Visible="False"> <Layout Behavior="Auto"> </Layout> <SeriesLabels Font="Verdana, 7pt" FontColor="DimGray" HorizontalAlign="Near" Orientation="Horizontal" VerticalAlign="Center"> <Layout Behavior="Auto"> </Layout> </SeriesLabels> </Labels> </Z> <Y2 LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart" Visible="False"> <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot" Thickness="1" Visible="False" /> <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot" Thickness="1" Visible="True" /> <Labels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Near" ItemFormatString="<ITEM_LABEL>" Orientation="Horizontal" VerticalAlign="Center" Visible="False"> <Layout Behavior="Auto"> </Layout> <SeriesLabels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Near" Orientation="VerticalLeftFacing" VerticalAlign="Center" FormatString=""> <Layout Behavior="Auto"> </Layout> </SeriesLabels> </Labels> </Y2> <X LineThickness="1" TickmarkInterval="0.1" TickmarkStyle="Smart" Visible="True"> <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot" Thickness="1" Visible="False" /> <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot" Thickness="1" Visible="True" /> <Labels HorizontalAlign="Near" Visible="false" ItemFormatString="<DATA_VALUE:#.0#%>" Orientation="VerticalLeftFacing" VerticalAlign="Center"> <Layout Behavior="Auto"> </Layout> <SeriesLabels HorizontalAlign="Center" Orientation="Horizontal" VerticalAlign="Center"> <Layout Behavior="Auto"> </Layout> </SeriesLabels> </Labels> </X> <Y LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart" Visible="True"> <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot" Thickness="1" Visible="False" /> <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot" Thickness="1" Visible="True" /> <Labels Font="Verdana, 7pt" FontColor="DimGray" HorizontalAlign="Far" ItemFormatString="<ITEM_LABEL>" Orientation="Horizontal" VerticalAlign="Center"> <Layout Behavior="Auto"> </Layout> <SeriesLabels Font="Verdana, 7pt" FontColor="DimGray" HorizontalAlign="Far" Orientation="VerticalLeftFacing" VerticalAlign="Center" FormatString=""> <Layout Behavior="Auto"> </Layout> </SeriesLabels> </Labels> </Y> <X2 LineThickness="1" TickmarkInterval="0.01" TickmarkStyle="Smart" Visible="False"> <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot" Thickness="1" Visible="False" /> <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot" Thickness="1" Visible="True" /> <Labels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Far" ItemFormatString="<DATA_VALUE:#%>" Orientation="VerticalLeftFacing" VerticalAlign="Center" Visible="False"> <Layout Behavior="Auto"> </Layout> <SeriesLabels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Center" Orientation="Horizontal" VerticalAlign="Center"> <Layout Behavior="Auto"> </Layout> </SeriesLabels> </Labels> </X2> <PE ElementType="None" Fill="Cornsilk" /> <Z2 LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart" Visible="False"> <MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot" Thickness="1" Visible="False" /> <MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot" Thickness="1" Visible="True" /> <Labels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Near" ItemFormatString="" Orientation="Horizontal" VerticalAlign="Center" Visible="False"> <Layout Behavior="Auto"> </Layout> <SeriesLabels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Near" Orientation="Horizontal" VerticalAlign="Center"> <Layout Behavior="Auto"> </Layout> </SeriesLabels> </Labels> </Z2> </Axis> <CompositeChart> <Series> <igchartprop:NumericSeries Key="series3"> <points><igchartprop:NumericDataPoint><PE ElementType="None"></PE></igchartprop:NumericDataPoint></points> </igchartprop:NumericSeries> <igchartprop:NumericSeries Key="series1" Label="Goal"> <points><igchartprop:NumericDataPoint Value="0.85"><PE ElementType="None"></PE></igchartprop:NumericDataPoint></points> </igchartprop:NumericSeries> <igchartprop:NumericSeries Key="series2" Label="P2-09"> <points><igchartprop:NumericDataPoint Value="0.9"><PE ElementType="None"></PE></igchartprop:NumericDataPoint></points> </igchartprop:NumericSeries> </Series> </CompositeChart> <Legend Location="Bottom" Visible="false"></Legend></igchart:UltraChart>
Your labels are going to be based on the first text column and the column headers/keys from your datatable. Playing with those values will adjust what you see in the chart.
If you have not already seen my blog post on charts, it should go over how the different charts interprest the data.
http://community.infragistics.com/blogs/sung_kim/archive/2008/09/05/chart-university-chart-101-and-some-201-301-401-stuff.aspx
Actually igBarChart9 is passed into LoadColumnChart as a byref variable. When I change SwapRowsAndColumns, I get the colors back, but my labels turn to ROW#.
The chart in your aspx markup and the code behind reference different charts (iColChart and igBarChart9).
As for why you would get only one color, it will largely depend on what your data looks like (1 row with numerous values or 1 numeric column with numerous rows). The SwapRowsAndColumns property controls this.