I am trying to change the color of the top part of a data column in a column chart where the data column does not go to the maximum of the chart's y-axis. Is this possible to do?
See attached for the example.
Thanks.
Hi, Curtis.
Can you try the using the StripLines class:
<StripLines Visible="True">
You can see that sample and give me feedback if this will suits your scenario. I'll be glad to answer you, if you have questions related to that behavior.
Thank you for using our products!
Best regards, Nikolay Alipiev Software Developer
It has almost worked, I am able to make it the background, but between each column the color is still filled, instead of just being on top of the column. Is it possible to make the background color between each column white?
My current version is below.
Here is my code
<X LineEndCapStyle="NoAnchor" LineDrawStyle="Solid" Visible="True" RangeMin="0" LineColor="Black" RangeType="Automatic" TickmarkInterval="5" LineThickness="1" Extent="80" LogBase="10" RangeMax="60" TickmarkStyle="Percentage" TickmarkPercentage="10" NumericAxisType="Linear"> <StripLines Interval="5" Visible="True"> <PE FillGradientStyle="None" FillOpacity="255" FillStopOpacity="255" ElementType="SolidFill" Fill="255, 224, 192" Hatch="None" Texture="GrainA" ImageFitStyle="StretchedFit" FillStopColor="Transparent" StrokeOpacity="255" ImagePath="" Stroke="Black" StrokeWidth="0" ImageWrapMode="Tile" TextureApplication="Normal"></PE> </StripLines> <ScrollScale Scale="1" Scroll="0" Height="10" Width="15" Visible="False"></ScrollScale> <Labels ItemFormatString="<ITEM_LABEL>" VerticalAlign="Center" WrapText="False" FontSizeBestFit="False" SeriesFormatString="<SERIES_LABEL>" ClipText="True" Font="Verdana, 7pt" Flip="False" ItemFormat="ItemLabel" FontColor="Black" Orientation="VerticalLeftFacing" Visible="True" OrientationAngle="0" HorizontalAlign="Near"> <SeriesLabels Font="Verdana, 7pt" Visible="True" HorizontalAlign="Center" FontSizeBestFit="False" ClipText="True" FormatString="<SERIES_LABEL>" Orientation="Horizontal" WrapText="False" Flip="False" FontColor="Black" VerticalAlign="Center" OrientationAngle="0"> </SeriesLabels> </Labels> <MajorGridLines AlphaLevel="255" DrawStyle="Dot" Color="Gainsboro" Visible="True" Thickness="1"></MajorGridLines> <MinorGridLines AlphaLevel="255" DrawStyle="Dot" Color="LightGray" Visible="False" Thickness="1"></MinorGridLines> <TimeAxisStyle TimeAxisStyle="Continuous"></TimeAxisStyle> <Margin> <Far MarginType="Percentage" Value="0"></Far> <Near MarginType="Percentage" Value="0"></Near> </Margin> </X>
Thanks,
Curtis
The distance between the columns in the bar chart is configured outside the axis configurations. Please try the following:
<igchart:UltraChart ID="UltraChart1" runat="server" >
<ColumnChart SeriesSpacing="1"></ColumnChart>
...
I hope this will help you. Don't hesitate to ask if you have more questions, related to that matter.
Thank you for replying.
For some reason, the spacing still does not work for the background color. I currently have Infragistics 2012, could that be the reason this is unable to work?
This is main functionality and I'm almost certain it's not because of the version you are having. If it is possible for you, can you send me the entire chart configuration, including its code behind. Then I will investigate and will see what the problem is. Thank you in advance for the cooperation!
Best regards,
Nikolay Alipiev