I'm trying creating a Heatmap chart and I am using a DataChart with a CustomSeries.
I overrido the RenderSeriesOverride method, and provided my own rendering for the heatmap. This works great when my rows and columns are all numeric, as with NumericXAxis, I can calculate the value on the canvas by doing:
double scaledXCoord = XAxis.GetScaledValue(myDataPoint.MyIntValue, params);
and plot by heatmap square on the grid at the desired coordinate.
However, my data is not numeric, and I'd like to use Category, where my axis (rows and colums) are textual values. By default, the Axis figure out which labels go where, but the CategoryXAxis doesn't seem to give me a method where I can find out to what coordinate on the grid the label falls, so I can figure out where I should map my squares to.
In other words, what I'd like to do is be able to pass a string, and get the coordinate on the grid based on where the string matches the label on the axisdouble scaledXCoord = XAxis.GetScaledValue(myDataPoint.MyTextValue, params);
How can I do this?
Thanks
Thanks Stefan,
I have looked at that sample, but I have some unique requirements, and looks like a chart would do what I'd like it to do. In any case, in a different part of the application, I will be using a chart with a custom series that also has labels, and I am still not clear how to map the values to the label values and get them scaled to grid coordinates inside the RenderSeriesOverride method.
Obviously something in the CategoryXAxis is mapping a coordinate to the string value of the label, and I'd like to know how I can get to that logic.
Thanks!
Hello,
After some research HeatMap has been determine as a new Product Idea. I have sent your Product Idea directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this Product Idea is PI12120052
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Also I can suggest you try our XamTreemap control, which can be used as HeatMap. In the Samples Browser under xamTreemap / Data / Heat Treemap section there is a sample showing this functionality.