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

How to remove ChartView label ticks

4 Answers 211 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
mark
Top achievements
Rank 1
mark asked on 18 Jun 2015, 02:21 PM

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

 

4 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 18 Jun 2015, 03:09 PM
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
0
berry
Top achievements
Rank 1
answered on 18 Jun 2015, 03:50 PM
Where i need to put this ? 
0
Martin Ivanov
Telerik team
answered on 19 Jun 2015, 06:29 AM
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
0
berry
Top achievements
Rank 1
answered on 21 Jun 2015, 03:11 PM
Thanks !
Tags
ChartView
Asked by
mark
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
berry
Top achievements
Rank 1
Share this question
or