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 currently have a line chart with multiple series and checkbox for each line series so the user can pick which line series to display on the graph. My question is, is there a way to tell the graph to automatically scale the min/max of the x and y axis based on whats being shown? For example, Lets say the user wish to display 10 line series. The graph will scale to fit all 10. Then lets say the user only pick 1 out of the 10 line series. I would like the graph to scale so that the finer details of that series is shown. Also, I also noticed that when adding a lot of data (live data) to the line chart, the refresh rate will slow down significantly. Could you see if you're experiencing this as well? I'm adding around 10000 to 20000 points for each line series. Thanks in advance, Andy |
|
|
Hello Andy In the next nightly build, setting the Visibility of a series to Collapsed will both hide the series, as well as remove it from the automatic axis calculations. Setting the Visibility to Hidden will hide the series, but still include it in the axis ranges. I have also noticed a slow down in the refresh rate when dynamically adding data. Make sure not to display chart symbols when displaying this much data on many line series. Regardless, I have made a note to look into the performance issue, possibly next week. -Jason Fauchelle |
|
|
Hi Jason, Thanks, collapsed worked very well. Could you also add something additional to rescale the y axis so that if there's only 1 series, that the line is centered and better scaled? I have multiple series, so one of the series could be in the 12k for Y and another thats around 500. When I deselect all but the lowest line series (500), it displays the line at the top of the graph and it just a line because the graph goes from 0 to 500. It would be nice if it rescale the Y so that its closer to the min/max of the current line series being displayed? Thanks again, Andy |
|
|
Hi Jason, I was playing with more heatmap and line graph chart and noticed something interesting. I currently have 1 Y axis and 2 Alternative Y axis. I provided the user to toggle which one to see and also provided a dual slider to allow them to zoom in/out of the graph. I'm only showing one at a time and will hide or collapse the other two. What I'm seeing is, when I hide the Y axis and toggle between them, the min/max value are not updating the graph anymore, hence I can't zoom anymore. When I collapse the Y axis that aren't used, I'm able to zoom but no data will be display on the graph. Could you see if you can reproduce this behavior? Thanks, Andy |
|
|
Hello Andy To scale the line nicely when it is far away from the X axis line, you can set the series AlwaysShowYAxisZero property to false. This will automatically set the minimum of the axis based on the minimum value of the rendered data, rather than always making the Y axis show zero. You may need to set this value to true on all rendered series if there are multiple series being rendered, and then set it to false when there is only 1 series rendered. Alternatively, if always keeping it set to false (So that zero on Y axis is never shown in your case) works for you, then that would save the trouble of continuously manipulating this option on all series. It is usually best not to completely collapse an axis. The height or width of the axis is used when converting between pixel positions and logical plot positions. Collapsing an element in WPF will set the actual width and height to 0, which is why nothing will render any more. Either set the visibility to Hidden, or set the width to 0 (for Y axes) if you want it to be hidden but not take up any horizontal space. I have not been able to reproduce the issue where the min/max values stop updating. Let me know if you have questions about any of this. -Jason Fauchelle |
|
|
Hi Jason, That solved it. Thanks. Now I'm getting an odd array out of bound error in the heatmap and was wondering if there's a easy way to debug it? The following is the exception I'm getting. I got this when I changed the Y axis maximum? which then triggered everything to be redrawn. But the odd thing is, when had it set to this on startup, it also gave the same error. I'm thinking something isn't set properly but I'm unable to debug it without more information. This doesn't always crash when data is drawn. Some times it will run for awhile and then all of a sudden it crash with this error. Thanks again, Andy
|
|
|
Hello Andy This may be a bug within the heatmap series, but I have not been able to reproduce this. I have made some improvements to the heatmap series recently, so It's possible that I ended up solving the issue. So just in case, first try using the latest nightly build. If the problem remains, please send a repro project or describe how to reproduce the problem, and I'll work out what's wrong. -Jason Fauchelle |
|
|
Hi Jason, I can't give you the repo because its tied to a lot of other components and its not easy to just take out. What I've noticed is that this crash happen with the most recent nightly build 20140422 (v 6.0.2815.23207). I tried it with the previous one and it didn't crash 20140417 (v 6.0.2808.23205). Not sure if that helps.. Andy |
|
|
Hello Andy I made some fixes on the 24th which may have resolved the issue, but I still have not been able to reproduce the out of bounds error. Get the latest nightly build and see if the issue has been resolved. If not, please let me know:
-Jason Fauchelle |
|
|
Hi Jason, I tried the new build and the issue is still there. Here's some info as to how its set up.
Thanks again, Andy |
|
|
Hello Andy Thanks for the information. I have reproduced this issue which will be resolved in the next nightly build. -Jason Fauchelle |
|
|
Thanks Jason, it works like a charm.. Andy |
|