This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Jason, I need a logarithmic y axis for something and noticed that you had a converter and examples for this already. My question is, would it be possible to have the min be 1e-10 and max be 1000 and it be displayed accordingly? Right now if I put the min to .0001 or anything lower, it will set the values to 0. But I would like it to be displayed as 1E-4.... 1E-10. Thanks again ~Andy |
|
|
Hello Andy Here are some things to check (in order of likelihood): Set the LabelFormat property of the YAxis to "{}{0:0.####}" in xaml OR "{0:0.####}" in C#. The default format only has 3 decimal places which will cause 0.0001 to be formatted as 0. Make sure you are setting the Minimum property of the LogarithmicAxisValueConverter to 0.0001 - rather than the Minimum property of the axis. Make sure you are not setting the StartAtZero property of the LogratihmicAxisValueConverter. -Jason Fauchelle |
|
|
Thanks Jason that worked. I was wondering, do you happen to know how to have 2 different settings, one for when exponent is needed and the other where it's not needed. For example, I want to the Y axis to go from 1000 to 1E-10. But I want it to be similar to this:
Thanks again, ~ Andy |
|
|
Hello Andy Unfortunately, I don't think there is a way to use WPF string formatting to specify conditions for using the exponent. To get this exact result, you will need to create a custom axis label template that uses a custom converter to display what you want. Let me know if you have questions about this. -Jason Fauchelle |
|