Problem Set Minimum and maximum values ​​in LogarithmicAxis

9 posts, 0 answers
  1. Carlos Alberto
    Carlos Alberto avatar
    12 posts
    Member since:
    Apr 2014

    Posted 28 Apr 2014 Link to this post

    Hello, I have a question regarding establishing minimum and maximum values  in VerticalAxis.

    I'm using a VerticalAxis RadCartesianChart and I'm assigning the maximum and minimum values ​​, Maximum = "1" Minimum = "1E-08", I use a Converter in LabelTemplate for numbers as exponents are seen. By showing the graph does not display of 1E-06 to 1E-08.

     I add the image of the resulting graph and the code where I set the values​​.
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 29 Apr 2014 Link to this post

    Hi Carlos,

    I think that what you are observing is a bug that is the result of a bug fix, we introduced it last official Q release. When the values are very small, the chart rounds them to a zero. We have already logged this and we will do our best to fix it soon. In the meantime you can use a work-around for this.

    The work-around is to hide the labels of the axis (ShowLabels = false, or set a LabelStyle with transparent foreground). Then you can add custom annotations (ClipToPlotArea = false) for the values that need to show labels. Let us know if you have other questions.

    Regards,
    Petar Marchev
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. DevCraft banner
  4. Carlos Alberto
    Carlos Alberto avatar
    12 posts
    Member since:
    Apr 2014

    Posted 05 May 2014 in reply to Petar Marchev Link to this post

    Hello, I have a question, currently I handle a CartesianGridLineAnnotation on the graph that moves with the MouseLeave event. 
    How I can put a custom annotation in place of the axis labels?
  5. Carlos Alberto
    Carlos Alberto avatar
    12 posts
    Member since:
    Apr 2014

    Posted 05 May 2014 in reply to Carlos Alberto Link to this post

    Sorry, I'm wrong the CartesianGridLineAnnotation on the graph that moves with the MouseMove event. 

    thanks in advance.
  6. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 06 May 2014 Link to this post

    Hello Carlos,

    I have attached a small project to demonstrate how you can insert annotations that mimic labels. I hope that you will be able to use this work around until we fix the issue.

    Regards,
    Petar Marchev
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  7. Carlos Alberto
    Carlos Alberto avatar
    12 posts
    Member since:
    Apr 2014

    Posted 14 May 2014 in reply to Petar Marchev Link to this post

    Hello, thank you very much for the example, 

    I could place labels, now the problem is it does not take the range that I assign . I want to always appear on the vertical axis the range of 1E-08 to 1E0, but appear depending on the data. 

    Also when I apply Zoom, labels are moved to the left as it moves the graph. 

    add pictures of the range, as missing and the code where I am assigning the range and the CustomAnnotation.
  8. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 15 May 2014 Link to this post

    Hello Carlos,

    1. I want to always appear on the vertical axis the range of 1E-08 to 1E0
    The code we provided was meant to serve as a guide, so that you can create a solution that serves your purposes. You should be able to achieve the desired effect by setting the range of the axis. The code we sent previously should take the actual range of the axis in mind and build up the annotations.

    2. when I apply Zoom, labels are moved
    I apologize for not seeing it before, but you are using zooming so I think that we should use a different approach. I think it would be easier not to use annotations, but use custom elements outside the chart. I have attached a modified version of the previous project to demonstrate one way to achieve this with the conversion api of the chart. Please note that this is not meant to be the final code in your actual application, but a guide to help you implement the solution you require.

    Again I would like to apologize for the inconvenience. Let us know if you have any additional questions.

    Regards,
    Petar Marchev
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  9. Carlos Alberto
    Carlos Alberto avatar
    12 posts
    Member since:
    Apr 2014

    Posted 23 May 2014 in reply to Petar Marchev Link to this post

    Thank you very much for the example, it worked, and I solved the problem. 

    I have no further questions on the matter for now. Now I would ask if I can change the style of the scrollbar RadCartesianChart. 

    Again I appreciate your attention and the example they provided me.
  10. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 26 May 2014 Link to this post

    Hi Carlos,

    We are glad that we were able to help.

    If you have no questions related to the initial problem, I will ask that you open a new thread for your new questions. This way communication will be easier and more clear and the current thread will not get cluttered with different issues. Thank you for understanding. 

    I suggest you explore our qsf examples, sdk samples, online documentation and support forums before opening a new thread. I am sure that you will be able to find many places were it is shown how to customize the PanZoomBar through the PanZoomBarStyle property of the axis.

    Regards,
    Petar Marchev
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
DevCraft banner