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 trying to follow the example of using the Tracking Element for heatmap series but I'm stuck. The example TrackingElement assumes the dataseries is a LineAreaSeriesBase which allows for functions such as getY and ConvertLogicalToPhysicalPoint, etc. But HeatmapSeries is not a LineAreaSeriesBase nor any other SeriesBase types. I'm assuming I won't be able to get the right data object from the chart without the ability to get the logical Y first? Is there another way I could get the x and y without doing this? Thanks in advance, Andy |
|
|
Hello Andy Sorry I did not mention before. You'll want to ignore the parts related to the GetY method in the TrackingElement. Instead, in the chart mouse events (mouse-move or mouse-down or whatever you want to use), the event args will give you the logical X and Y position of the mouse over the potting area. You should be able to use these logical values as lookup indices in your raw heatmap data. Try this out, and if you get stuck, you can send me a sample project of what you have so far and I'll be able to assist. Or ask me any questions you have. -Jason Fauchelle |
|
|
Thanks Jason, I was able to get the tracking element to work with the data as you had described. But now I'm getting another issue. I have some data that needs to be displayed on the heatmap with the Y reversed (0 at top and max at bottom). I was able to display it normally but when I set the IsReversed, nothing is displayed anymore. Do you happen to know what this could be? Thanks again, Andy |
|
|
Hello Andy Good to hear the custom foreground element is working well, and thanks for brining this new issue to our attention. The way the heatmap is implemented is quite different to the other Cartesian series and was not respecting the IsReversed properties. I've fixed this up for you which you can get through the next nightly build. This will be available at around 1200 GMT (about 12 hours from now). Nightly builds can be downloaded from here: http://www.mindscapehq.com/products/wpfelements/nightly-builds Once installed, the problem will be resolved. Let me know if you run into any trouble. -Jason Fauchelle |
|
|
Thanks Jason it worked great. Andy |
|
|
Hi Jason, I'm not sure if this is a bug or if I'm doing something incorrectly but when obtaining the PhysicalPoints from the ChartMouseElementEventArgs, the X values don't seem to be correct. My X value range from 0 to 120 but I'm getting back 0 to 750 from the Physical Pionts. The Y values seem to match with the graph 1 to 1. Could you look into this when you get a chance? Thanks, Andy |
|
|
Hello Andy I have had a look at this but have not been able to reproduce this. Could it be possible that you are wanting to get the logical axis range, but actually getting the physical/pixel range of the axis, or vice versa? If not, please send a repro project, or the code of your event handler, as well as the values of the current state of the axis - min/max values and any properties you have manually set. -Jason Fauchelle |
|
|
Hi Jason, You're right its the logical values that I needed.. Thanks again. |
|