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

Logarithmic axis

1 Answer 60 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Davide
Top achievements
Rank 1
Davide asked on 13 May 2013, 10:20 AM
Hi Telerk,
i'm trying the RadCartesianChart Control, and i have some questions. I'm using a logarithmic axis (base 10) as horizontal axis and a Linear axis for the vertical.
1 - To display the gridlines i have used:
'
<telerikChart:RadCartesianChart.Grid>
        <telerikChart:CartesianChartGrid MajorLinesVisibility="XY" />
    </telerikChart:RadCartesianChart.Grid>
'
In this way i can see gridlines at each decade, but i want to see something like this.
http://www.telerik.com/ClientsFiles/205035_sn-chart.png
How can i achive it?

2 - The users, with their action, are going to determine the minimun and maximum values of the chart. So it could be a very small range or a very large range. I've seen i can use the Exponential label notation with this code:
'<telerikChart:LogarithmicAxis LogarithmBase="10" Minimum="2.4" Maximum="10000" LabelFormat="0.0#E0"/>'
This notation can be really problematic if i want to  display a large range of data: let say i set 'Maximum="100000000" ', in the small screen of phones, the labels are going to overlap. Is there a way to avoid this?

3 - Is there a way to display labels only at each "power of ten" decades (ie, 10, 100, 1000...)?  Can i display this labels in power notation (ie, 10^1, 10^2, 10^3..., where 1,2,3 are superscripts)?

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 16 May 2013, 08:47 AM
Hi Davide,

1. The grid line layout in the image your referenced is not possible with the current implementation of RadChart.

2. In order to prevent the labels from overlapping you can use the LabelFitMode property of your axis. It can be either multi-line or rotate.

3. You can display special labels with the LabelTemplate property of your horizontal axis and a simple value converter. Please have a look at the attached archive to see how to show the superscripts.

All the best,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Chart
Asked by
Davide
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or