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
|
Hello, I've attached sample of realization Logarithmic Yaxis, i had set there max value = 130, but it displays some unbelievable values... i need something like 0.1 - 10 - 100... Could you give some advice how can i fix it? Thanks, Vadim. |
|
|
Hello Vadim When it comes to axis value converters, the core of the axis still works with evenly spaced numerical values. The value converters (such as Logarithmic value converter) simply changes the labels on the axis and the logical-to-physical conversions. To set the maximum to 130 in terms of the logarithmic scale, you'll actually need to set the maximum to Math.Log(130, 10) which is equal to 2.114. You can either do this by setting the Maximum property to this value directly, or create an instance of the LogarithmicAxisValueConverter and pass 130 into the GetAxisPlotPosition method to get the correct value. Alternatively, if you do not set the Maximum value, the chart will automatically set the maximum value appropriately based on the data you provide. We understand that this is inconvenient and we'll be improving this for the next version of WPF Elements. Let me know if you have other questions. Jason Fauchelle |
|