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

Horizontal line ?

2 Answers 102 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 01 Sep 2008, 07:13 AM
Hello,

in my chart i have 2 series. One bar series, one line serie. This line is a horizontal line cause it's a fixed value. The position of the line starts from the middle of the first bar and ends in the middle of the last bar.
However i would like to start this line from the left y - axis till the right of the chart (basically it would look like an extra x-axis).

Is this possible and if so, how can i achieve this? Any suggestions are appreciated,

John



2 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 01 Sep 2008, 10:12 AM
Hi John,

You can achieve the desired functionality by setting the XAxis.LayoutMode to "Normal" like this:

<telerik:RadChart ID="RadChart1" runat="Server" AutoLayout="true"
    <Series> 
        <telerik:ChartSeries Type="Bar"
            <Items> 
                <telerik:ChartSeriesItem YValue="20"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="40"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="30"
                </telerik:ChartSeriesItem> 
            </Items> 
        </telerik:ChartSeries> 
        <telerik:ChartSeries Type="Line"
            <Items> 
                <telerik:ChartSeriesItem YValue="10"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="10"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="10"
                </telerik:ChartSeriesItem> 
            </Items> 
        </telerik:ChartSeries> 
    </Series> 
    <PlotArea> 
        <XAxis LayoutMode="Normal"
        </XAxis> 
    </PlotArea> 
</telerik:RadChart> 



Best wishes,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sorin
Top achievements
Rank 1
answered on 04 Sep 2008, 12:22 PM
Hi John, this is like a zone that the bars are passing through? You could use the feature of RadCharts, Marked Zones?
Tags
Chart (Obsolete)
Asked by
John
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Sorin
Top achievements
Rank 1
Share this question
or