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, Jason I'm trying to show chart with logarithmic axis, when data is static - is everything OK, otherwise - chart display wrong values (see attached sample). How can I fix this bug ? Thanks, Slavik |
|
|
Hello Slavik Thanks for the repro project, the FloatingBarSeries has now been improved to use the axis value converter on the base value. This update will be available in the next nightly build. Now when you press the button, the bars will be displayed correctly. Note that you will no longer need to use Math.Log10 when initially setting the Z value. (you had this at line 25 of MainWindow.xaml.cs). Instead, you can set it to the value you want it to line up with on the axis. In the case of your repro project, you'd set Z to be 10. You may have also noticed the labels are displaying the converted log values rather than the values they line up with on the axis. To adjust this, you can create a simple label style that contains a TextBlock that binds to the DataPoint.YObject property. Here is a quick example:
Jason Fauchelle |
|
|
Hello, Jason Current solution is better, but not enough: for YMax and YMin properties still need to use Math.Log(...) function, see attached project. Thanks, for help |
|
|
Hello We are currently unable to have the min/max properties use the axis converter as this will cause a change in behavior. We understand this make binding and property setting a little tricky. This is a high priority item to resolve in the next version. Jason Fauchelle |
|
|
Hello, Jason One more question: when I use LogarithmicAxisValueConverter with Minimum = 1, Maximum for Y axis is correct (100000 in my sample), but when I set Minimum = 0.1 for LogarithmicAxisValueConverter, Maximum for Y axis is less that needed (10000 instead 100000), why this happens ? Thanks for help |
|
|
Hello Setting the Minimum to 0.1 shifts the logarithmic scale by 1 YAxis unit. I believe you are manually setting the Maximum value of the YAxis, so to resolve this issue, you can increase the Maximum YAxis value by 1. In one of the samples you sent, you set the Maximum to 7. This can be changed to 8 to resolve the problem. Again this inconvenience will be removed in the next version. Alternatively, if you don't set the Minimum or Maximum axis values, the axis will automatically calculate an appropriate min and max value for you. Jason Fauchelle |
|
|
Hello Slavik We've just released WPF Elements 6.0. In this version, the Minimum and Maximum properties of the Chart axes now take the value converter into consideration. So now you can set them directly to be the displayed values such as 10000000 rather than the converted log(x) values such as 7. The trial version is available here: http://www.mindscapehq.com/products/wpfelements/download Or if your are a WPF Elements customer, you can upgrade for free from your account page: http://www.mindscapehq.com/store/myaccount Jason Fauchelle |
|