Logarithmic axis

2 posts, 0 answers
  1. Davide
    Davide avatar
    1 posts
    Member since:
    Apr 2007

    Posted 13 May 2013 Link to this post

    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:CartesianChartGrid MajorLinesVisibility="XY" />
    In this way i can see gridlines at each decade, but i want to see something like this.
    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)?

  2. Victor
    Victor avatar
    1349 posts

    Posted 16 May 2013 Link to this post

    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,
    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.
  3. DevCraft banner
Back to Top