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

LinearAxis define visiable labels

2 Answers 128 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Indu-Sol
Top achievements
Rank 1
Indu-Sol asked on 24 Mar 2017, 08:47 AM

Hi,

i have the following LinearAxis defined in my RadCartesianChart:

<telerik:RadCartesianChart.VerticalAxis>
    <telerik:LinearAxis
        LabelOffset="1"
        LineThickness="0"
        LabelFormat="P0"
        Maximum="1"
        Minimum="0"  
        MajorStep="0.1">
    </telerik:LinearAxis>
</telerik:RadCartesianChart.VerticalAxis>

 

I want labels only at values 0.1 (10 %) and 0.9 (90 %). See pictures in attchment (yellow lines are CartesianGridLineAnnotation and the blue one is the ScatterLineSeries).

How can I do this?

Thanks

Thomas

 

2 Answers, 1 is accepted

Sort by
0
Indu-Sol
Top achievements
Rank 1
answered on 24 Mar 2017, 09:26 AM

Ok, found a solution:

<telerik:RadCartesianChart.VerticalAxis>
    <telerik:LinearAxis
        LabelInterval="8"
        LineThickness="0"
        LabelFormat="P0"
        Maximum="1"
        Minimum="0"  
        TickOrigin="0.1"
        MajorStep="0.1">
    </telerik:LinearAxis>
</telerik:RadCartesianChart.VerticalAxis>

 

But finding the rigth combination from LabelInterval, LabelOffset, MajorStep, TickOrigin, ... is a little bit confusing (brain fuck) xD.

Regards

Thomas

 

 

0
Lance | Manager Technical Support
Telerik team
answered on 24 Mar 2017, 09:08 PM
Hello Thomas,

Finding the right combination of values for this properties will largely depend on your data for that series. I'm happy to see that you found a satisfactory solution.

For future reference, you can find a lot of information pertaining to these properties here.

Let us know if you have any further difficulty.

Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ChartView
Asked by
Indu-Sol
Top achievements
Rank 1
Answers by
Indu-Sol
Top achievements
Rank 1
Lance | Manager Technical Support
Telerik team
Share this question
or