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
4110
Column Chart columns all the same color?
posted

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.CustomLinear
iColChart.ColorModel.CustomPalette = New Color() {Color.Blue, Color.Yellow, Color.Green, Color.Purple}
iColChart.Section508Compliant = True
iColChart.TitleTop.Text = choice
iColChart.ChartType = Styles.ChartType.ColumnChart
iColChart.Axis.Y.RangeMax = 100
iColChart.Axis.Y.RangeMin = 0
iColChart.Axis.Y.RangeType = Styles.AxisRangeType.Custom
iColChart.Axis.Y.TickmarkInterval = 10
iColChart.Axis.Y.TickmarkStyle = Styles.AxisTickStyle.Percentage
iColChart.Data.SwapRowsAndColumns = True
iColChart.Data.MaxValue = 100
iColChart.Data.MinValue = 0
iColChart.ColumnChart.ColumnSpacing = 1
iColChart.BarChart.BarSpacing = 1
iColChart.DataSource = GetColumnChart(userProfile, choice) 'dt
iColChart.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="&lt;DATA_VALUE:#.0#%&gt;"
    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="&lt;ITEM_LABEL&gt;"
    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="&lt;DATA_VALUE:#.0#%&gt;" 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="&lt;ITEM_LABEL&gt;"
    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="&lt;DATA_VALUE:#%&gt;"
    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>