X-Axis Position

3 posts, 0 answers
  1. AS
    AS avatar
    8 posts
    Member since:
    Aug 2010

    Posted 26 Oct 2010 Link to this post

    Hi,

    When displaying both positive and negative values in a RadChart, additional axis lines are displayed in the chart/plot area.  However, the tick marks and the associated values on the axes are still displayed along the original X-axis and the Y-axis.  For example, with negative and positive Y axis values, the 0-line for Y values is somewhere in the chart/plot area.  Is there a way to display the X-axis ticks and values along this 0-line?

    Thanks,
    AS
  2. Ves
    Admin
    Ves avatar
    2927 posts

    Posted 29 Oct 2010 Link to this post

    Hi AS,

    Here is how to display the ticks along the axis within the plot area:

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.Resources>
            <Style x:Name="CustomStyle" TargetType="telerik:PlotAreaAxisX2D">
                <Setter Property="AxisTicksVisibility" Value="Visible" />
            </Style>
        </Grid.Resources>
    </Grid>


    RC1.DefaultView.ChartArea.PlotAreaAxisXStyle = this.LayoutRoot.Resources["CustomStyle"] as Style;

    Unfortunately, labels are not supported.

    Best wishes,
    Ves
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. AS
    AS avatar
    8 posts
    Member since:
    Aug 2010

    Posted 02 Nov 2010 Link to this post

    Thanks for the information, Ves, I will try this out.
Back to Top