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
|
Is there any way to filter out the points which are with overflow value? Overflow value means values which are far greater or less than the value it's supposed to be. such as 9.7e+37. Currently this kind of value will make the graph not readable because the overflow value will stretch the line so much by making the maximum/minimum value so beyond away the base line range. So I need a way you know to filter the bad points which is overflow, or to replace the value with some special value (such as 0) and mark this point on the line or on the x axis to tell user that these marked point is bad one with overflow value. Is it possible? any comments will do me great help, thanks a lot! |
|
|
Hello Yaron, Unfortunately these isn't a way to tell the Chart control that certain values are considered to be bad. The best way to solve the stretching issue would be to remove the bad value from the ItemsSource that you give to the Chart control, or change the value to 0. Another way may be to manually specify the viewport (ActualMinimum and ActualMaximum axis properties) so that the bad points are plotted out of the viewport which users can still zoom or pan to view. Visually displaying points as being bad is certainly possible. You could use a custom class that hold the X and Y plot values as well as a bool to say whether or not that point is bad. Then you could use a custom point style that renders the point differently depending on if it's bad. Custom point styles can be set with the SymbolStyle property on the line series. If you want to render the point at some special place such as 0, then you could also display a tooltip of the actual value. Marking the axis is also possible, but isn't a build in feature so requires a bit of custom axis implementation and styling. Hope that helps! -Jason Fauchelle |
|