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

Problem Set Minimum and maximum values ​​in LogarithmicAxis

8 Answers 179 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Carlos Alberto
Top achievements
Rank 1
Carlos Alberto asked on 28 Apr 2014, 04:49 PM
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​​.

8 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 29 Apr 2014, 07:54 AM
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.
 
0
Carlos Alberto
Top achievements
Rank 1
answered on 05 May 2014, 04:08 PM
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?
0
Carlos Alberto
Top achievements
Rank 1
answered on 05 May 2014, 04:17 PM
Sorry, I'm wrong the CartesianGridLineAnnotation on the graph that moves with the MouseMove event. 

thanks in advance.
0
Petar Marchev
Telerik team
answered on 06 May 2014, 02:03 PM
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.
 
0
Carlos Alberto
Top achievements
Rank 1
answered on 14 May 2014, 05:00 PM
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.
0
Petar Marchev
Telerik team
answered on 15 May 2014, 08:37 AM
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.
 
0
Carlos Alberto
Top achievements
Rank 1
answered on 23 May 2014, 04:16 PM
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.
0
Petar Marchev
Telerik team
answered on 26 May 2014, 08:05 AM
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.
 
Tags
Chart
Asked by
Carlos Alberto
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Carlos Alberto
Top achievements
Rank 1
Share this question
or