This is a migrated thread and some comments may be shown as answers.

Bar Graph Series - Outermost Item is Wrapping

1 Answer 43 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Tim Rankel
Top achievements
Rank 2
Tim Rankel asked on 02 Jun 2010, 07:37 PM
Hi,

I'm experiencing an issue with a vertical bar graph using RadChart v2010.1.519.40. The purpose of the chart was to display a single set of values once for quick reference. It mostly works but the item on the leftmost edge is wrapping to the rightmost edge and repeating its label and bar. I've attached a picture of what's happening. The data is being pulled from a SqlDataSource.

Any ideas would be helpful and appreciated,

Thanks.

<telerik:RadChart ID="RadChart1" runat="server" DataSourceID="gridDataSource1" Height="405px" 
                        Width="243px">  
                        <Appearance Dimensions-Paddings="1px, 1px, 10px, 1px" BarWidthPercent="100">  
                        </Appearance> 
                        <Series> 
                            <telerik:ChartSeries DataYColumn="y1" Name="y1">  
                                <Appearance BarWidthPercent="100" ExplodePercent="0">  
                                    <FillStyle FillType="Solid" GammaCorrection="False">  
                                    </FillStyle> 
                                    <TextAppearance TextProperties-Font="Verdana, 7pt, style=Bold">  
                                    </TextAppearance> 
                                </Appearance> 
                            </telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="y2" Name="y2">  
                                <Appearance BarWidthPercent="100" ExplodePercent="0">  
                                    <FillStyle FillType="Solid" GammaCorrection="False">  
                                    </FillStyle> 
                                    <TextAppearance TextProperties-Font="Verdana, 7pt, style=Bold">  
                                    </TextAppearance> 
                                </Appearance> 
                            </telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="y3" Name="y3">  
                                <Appearance BarWidthPercent="100" ExplodePercent="0">  
                                    <FillStyle FillType="Solid" GammaCorrection="False">  
                                    </FillStyle> 
                                    <TextAppearance TextProperties-Font="Verdana, 7pt, style=Bold">  
                                    </TextAppearance> 
                                </Appearance> 
                            </telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="y4" Name="y4">  
                                <Appearance BarWidthPercent="100" ExplodePercent="0">  
                                    <FillStyle FillType="Solid" GammaCorrection="False">  
                                    </FillStyle> 
                                    <TextAppearance TextProperties-Font="Verdana, 7pt, style=Bold">  
                                    </TextAppearance> 
                                </Appearance> 
                            </telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="y5" Name="y5" YAxisType="Secondary">  
                                <Appearance BarWidthPercent="100" ExplodePercent="0">  
                                    <FillStyle FillType="Solid" GammaCorrection="False">  
                                    </FillStyle> 
                                    <TextAppearance TextProperties-Font="Verdana, 7pt, style=Bold">  
                                    </TextAppearance> 
                                </Appearance> 
                            </telerik:ChartSeries> 
                        </Series> 
                        <Legend> 
                            <Appearance Overflow="Auto" Position-AlignedPosition="Top">  
                                <ItemTextAppearance TextProperties-Font="Verdana, 7pt"   
                                    Position-AlignedPosition="Top">  
                                </ItemTextAppearance> 
                            </Appearance> 
                        </Legend> 
                        <PlotArea> 
                            <XAxis AutoScale="False" AutoShrink="False" LayoutMode="Normal" MaxItemsCount="1" 
                                MaxValue="1" MinValue="1" Step="10" Visible="False">  
                                <Appearance MajorTick-Visible="False">  
                                    <LabelAppearance Visible="False">  
                                    </LabelAppearance> 
                                </Appearance> 
                                <Items> 
                                    <telerik:ChartAxisItem Value="1">  
                                    </telerik:ChartAxisItem> 
                                </Items> 
                            </XAxis> 
                            <YAxis> 
                                <Appearance> 
                                    <TextAppearance TextProperties-Font="Verdana, 6.25pt">  
                                    </TextAppearance> 
                                </Appearance> 
                            </YAxis> 
                            <YAxis2 AxisMode="Extended" IsLogarithmic="True">  
                                <ScaleBreaks Enabled="True">  
                                </ScaleBreaks> 
                                <Appearance> 
                                    <TextAppearance TextProperties-Font="Verdana, 6.25pt">  
                                    </TextAppearance> 
                                </Appearance> 
                            </YAxis2> 
                            <Appearance Position-AlignedPosition="Center" Dimensions-AutoSize="False" Dimensions-Height="300pt" 
                                Dimensions-Margins="25%, 5%, 25%, 5%" Dimensions-Width="160px" Position-Auto="False" 
                                Position-X="35" Position-Y="100">  
                            </Appearance> 
                        </PlotArea> 
                        <ChartTitle> 
                            <TextBlock Text="">  
                                <Appearance TextProperties-Font="Verdana, 10pt">  
                                </Appearance> 
                            </TextBlock> 
                        </ChartTitle> 
                    </telerik:RadChart> 

1 Answer, 1 is accepted

Sort by
0
Tim Rankel
Top achievements
Rank 2
answered on 02 Jun 2010, 09:13 PM
Disregard -- I found a solution that works for me.

<XAxis AutoScale="False" AutoShrink="False" LayoutMode="Between" MaxItemsCount="1" 
                                MaxValue="1" MinValue="1" Step="10" Visible="False"

I altered the XAxis property: LayoutMode to "Between" and that seems to have resolved the wrapping issue.
Tags
Chart (Obsolete)
Asked by
Tim Rankel
Top achievements
Rank 2
Answers by
Tim Rankel
Top achievements
Rank 2
Share this question
or