Line Chart with a Vertical Line

Thread is closed for posting
3 posts, 1 answers
  1. RBarnes
    RBarnes avatar
    60 posts
    Member since:
    Oct 2012

    Posted 13 Jan 2009 Link to this post

    I have a line chart that I'd like to add a vertical line at specific X point, what would be the best way to do this?

  2. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 14 Jan 2009 Link to this post

    Hi Dennis,

    RadChart does not provide integrated support for such functionality, however, you can use the MarkedZone feature to simulate the desired appearance like this:

    <telerik:RadChart ID="RadChart1" runat="server"
        <Series> 
            <telerik:ChartSeries Type="Line"
                <Items> 
                    <telerik:ChartSeriesItem YValue="10" /> 
                    <telerik:ChartSeriesItem YValue="60" /> 
                    <telerik:ChartSeriesItem YValue="50" /> 
                    <telerik:ChartSeriesItem YValue="70" /> 
                </Items> 
            </telerik:ChartSeries> 
        </Series> 
        <PlotArea> 
            <MarkedZones> 
                <telerik:ChartMarkedZone ValueStartX="2" ValueEndX="2" ValueStartY="0" ValueEndY="100"
                    <Appearance Border-Color="Red"></Appearance> 
                </telerik:ChartMarkedZone> 
            </MarkedZones> 
        </PlotArea> 
    </telerik:RadChart> 


    Hope this helps.


    Best wishes,
    Manuel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. RBarnes
    RBarnes avatar
    60 posts
    Member since:
    Oct 2012

    Posted 14 Jan 2009 Link to this post

    Worked perfect

    Thanks Manuel

Back to Top