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

Bar Chart Touches Top Border

2 Answers 62 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
CEsquibel
Top achievements
Rank 1
CEsquibel asked on 10 Dec 2008, 10:15 PM
When I am building a bar chart, the columns with the same value as the max always touch the top of the plot area.

I have tried setting the margin and the padding, but I cannot get extra "room" above the columns - is this possible?

2 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 11 Dec 2008, 08:19 AM
Hello CEsquibel,

You can achieve the desired functionality by enabling the Extended AxisMode for the YAxis like this:

<telerik:RadChart ID="RadChart1" runat="Server"
    <Series> 
        <telerik:ChartSeries Name="Series 1"
            <Items> 
                <telerik:ChartSeriesItem Name="Item 1" YValue="5"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem Name="Item 2" YValue="2"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem Name="Item 3" YValue="8"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem Name="Item 4" YValue="10"
                </telerik:ChartSeriesItem> 
            </Items> 
        </telerik:ChartSeries> 
    </Series> 
    <PlotArea> 
        <YAxis AxisMode="Extended"></YAxis> 
    </PlotArea> 
</telerik:RadChart> 


Hope this helps.


Sincerely yours,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
CEsquibel
Top achievements
Rank 1
answered on 11 Dec 2008, 05:52 PM
Perfect!  Thanks a lot.
Tags
Chart (Obsolete)
Asked by
CEsquibel
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
CEsquibel
Top achievements
Rank 1
Share this question
or