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

X-Axis Position

2 Answers 58 Views
Chart
This is a migrated thread and some comments may be shown as answers.
AS
Top achievements
Rank 1
AS asked on 26 Oct 2010, 11:06 PM
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 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 29 Oct 2010, 02:18 PM
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
0
AS
Top achievements
Rank 1
answered on 02 Nov 2010, 04:02 PM
Thanks for the information, Ves, I will try this out.
Tags
Chart
Asked by
AS
Top achievements
Rank 1
Answers by
Ves
Telerik team
AS
Top achievements
Rank 1
Share this question
or