How to remove ChartView label ticks

5 posts, 0 answers
  1. mark
    mark avatar
    2 posts
    Member since:
    Jun 2015

    Posted 18 Jun 2015 Link to this post

    This is my ChartView:

     

    <telerik:RadCartesianChart x:Name="bpsChart" Palette="Windows8" Margin="20,56,17,544" >
                <telerik:RadCartesianChart.Grid>
                    <telerik:CartesianChartGrid MajorXLineDashArray="5, 5" MajorYLineDashArray="5, 5" MajorLinesVisibility="None">
                        <telerik:CartesianChartGrid.MajorYLineStyle>
                            <Style TargetType="{x:Type Line}">
                                <Setter Property="Stroke" Value="Gray"/>
                            </Style>
                        </telerik:CartesianChartGrid.MajorYLineStyle>
                        <telerik:CartesianChartGrid.MajorXLineStyle>
                            <Style TargetType="{x:Type Line}">
                                <Setter Property="Stroke" Value="Gray"/>
                            </Style>
                        </telerik:CartesianChartGrid.MajorXLineStyle>
                    </telerik:CartesianChartGrid>
                </telerik:RadCartesianChart.Grid>
                <telerik:RadCartesianChart.HorizontalAxis>
                    <telerik:CategoricalAxis ShowLabels="False" IsEnabled="False" />
                </telerik:RadCartesianChart.HorizontalAxis>
                <telerik:RadCartesianChart.VerticalAxis >
                    <telerik:LinearAxis  ShowLabels="False" IsEnabled="False"/>
                </telerik:RadCartesianChart.VerticalAxis>
                <telerik:RadCartesianChart.Series>
                    <telerik:LineSeries CategoryBinding="Date" ValueBinding="Value" Stroke="Yellow"
                                        ItemsSource="{Binding CurrentPosValues, RelativeSource={RelativeSource AncestorType=Window}}"/>
                </telerik:RadCartesianChart.Series>
            </telerik:RadCartesianChart>

    As you can see i removed the Axis label but i didn't find how to remove the label ticks, please see my attach file.

     

    Thansk

     

  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 18 Jun 2015 Link to this post

    Hello Mark,

    You can hide the axis' ticks by setting its TickThickness property to 0. Here is an example:
    <telerik:LinearAxis TickThickness="0" />

    Regards,
    Martin
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. berry
    berry avatar
    27 posts
    Member since:
    Jun 2015

    Posted 18 Jun 2015 in reply to Martin Link to this post

    Where i need to put this ? 
  5. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 19 Jun 2015 Link to this post

    Hi Berry,

    This is set as a value of the VerticalAxis or HorizontalAxis property of the RadCartesianChart (or its series).
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis TickThinkess="0" />
    </telerik:RadCartesianChart.VerticalAxis>
    You can take some time to explore the help documentation of RadChartView. This will give you better understanding of the control and it will help you to use it easier in your application.

    Regards,
    Martin
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  6. berry
    berry avatar
    27 posts
    Member since:
    Jun 2015

    Posted 21 Jun 2015 in reply to Martin Link to this post

    Thanks !
Back to Top
UI for WPF is Visual Studio 2017 Ready