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, I'm having problems in my log-log graphic when I use negative values. I'm using a serie data that have negative values, and when I use the function LogarithmicAxisValueConverter() the negative values are shown with value 1 in graphic. Is there a way to threat this? I would like that the component doesn't show these points on the graph. I attached an example to show this problem. Best regards, Raphaela. |
|
|
Hello Raphaela We will not be able to implement support for negative numbers in the log converter right now, but I've attached the code for the LogarithmicAxisValueConverter which you could use to create your own log converter that supports both positive and negative values. The NumericalUtils.ConvertToDouble method simply checks if the given value is a number, and then casts it to a double, or returns null. If you don't want the negative points to be visible on the chart at all, then an easy option would be to not include them in the data that the chart plots, or another option would be for your custom log converter to position negative points at say -100, and then make sure the Minimum value of the Y axis only shows the points that you want. -Jason Fauchelle |
|