Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1425
XamDataChart/XamChart to plot contour (heatmap) and mesh
posted

I have to implement a plotting solution to plot 2D fracture simulations, similar to the image shown via the link below.

I have a TecPlot formatted data file, which contains (among other data) x and y points and multiple values for that point, i.e, temperature, pressure, etc

I need to "plot" the x/y points and generate a 2D mesh (triangles), and a contour/heatmap based on the x/y point, and one of the properties, such as temperature, pressure.

The mesh and color contour should be visible together.

Does XamDataChart support this?

https://skydrive.live.com/#cid=474829871261F415&id=474829871261F415%21106

Parents
  • 1400
    Suggested Answer
    Offline posted

    Hello Michael

    I have look into your request for rendering heat map in XamDataChart and at this moment XamDataChart does not support this feature.

    You can request this feature in XamDataChart control on this website: http://ideas.infragistics.com and I strongly recommend you to do so because members of the Infragistics Community can vote for the features and suggestions they want to see added to the products, resulting in the most popular features bubbling up to the top. When planning new releases, our Product Management team will look at the most popular features and use your feedback to prioritize upcoming work.

    That being said, there is a workaround for rendering heat maps in the XamDataChart control. Namely, you could use ScatterAreaSeries and ScatterContourSeries (provided by XamGeographicMap control) in XamDataChart to accomplish your request. However, usage of these series was not tested in XamDataChart and they might be some issues with this method of rendering heat map.

    While developing a sample application to demonstrate usage of ScatterAreaSeries and ScatterContourSeries in XamDataChart, I found an issue that prevents rendering ScatterAreaSeries and I logged this behavior in our internal tracking system with a Development ID of 146581. This issue has already be resolved and is pending release. Therefore, you will be able to render heat map in the XamDataChart control in upcoming Service Release. Because of this issue, you can render colored contours and points of heat mesh.

    I attacked a sample application that shows how to render heat map as well as heat mesh in the XamDataChart control. When you run this application, the XamDataChart control will render four heat map data using four series:

    - ScatterAreaSeries – for rendering area of heat map*

    - ScatterContourSeries – for rendering contours of heat map

    - ScatterLineSeries – for rendering lines of heat mesh

    - ScatterSeries – for rendering points of heat mesh.

    *Note that XamDataChart will display ScatterAreaSeries only when the application is built against the next service release.

    Also, I added controls to toggle visibility of all series in the chart so you can quickly review them individually and decide which series you want to use in your application.

    In my application, I used TriangulationSource which converts scatter data items (with x/y point + value) to triangulated data structure consisting of triangles which are later used by ScatterAreaSeries and ScatterContourSeries. This process is fast for small data sets of scattered data but with tens of thousands of points this might take some time. TriangulationSource provides methods to save and later load triangulated data and thus improve the speed at which heat map data is loaded and rendered in XamDataChart control. Please refer to this help website for more information about this feature.

    I have created a private case (CAS-119906-N2W0G4) for you to track the issue #146581. You will be automatically notified when this issue is resolved in the next service release.

     -Martin

    HeatMapChart.zip
Reply Children