Hide ticks on CategoricalAxis?

2 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    30 posts
    Member since:
    Oct 2012

    Posted 12 Dec 2012 Link to this post

    I'm using CategoricalAxis to create a nice histogram plot. How can I hide the ticks on the horizontal axis?
    I read about a MajorTicksVisibility property, but IntelliSense never shows it so I suspect it's not there...

    <chart:RadCartesianChart x:Name="RadCartesianChart" Palette="Arctic" Margin="10">
                <viewModels:HistogramViewModel />
            <chartView:BarSeries ItemsSource="{Binding Data}" ValueBinding="Value"
                                ShowLabels="False" FontFamily="Segoe UI" FontSize="10">
                <chartView:CategoricalAxis  GapLength="0" ShowLabels="False" FontFamily="Segoe UI" FontSize="12" />

                <chartView:LinearAxis FontFamily="Segoe UI" FontSize="12"
                                Minimum="0" Maximum="{Binding AxisMaxValue}"
                                ShowLabels="True" />
                <chartView:CartesianChartGrid MajorLinesVisibility="Y" />
  2. Petar Marchev
    Petar Marchev avatar
    968 posts

    Posted 14 Dec 2012 Link to this post

    Hi Kristoffer,

    There is no MajorTicksVisibility property in the ChartView suite. Perhaps you have read about the RadChart which does have this property. I think that the easiset way to achieve the desired effect is to simply set an empty style (or null) to the MajorTickStyle of the axis:
    <chartView:CategoricalAxis MajorTickStyle="{x:Null}" />

    All the best,
    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top