Use of heat map / coloured grid

May 16, 2011 at 5:12 PM


I am trying to implement a heat map using D3. I do this by adding rectangle highlights to the plotter at regular intervals and setting their colours accordingly. The problem is that for larger plots (e.g. 200 x 200 cells), the time taken to draw the plot is very high. The issue seems to be with Add() or AddMany() to the chart plotter's children - these methods take a long time to add so many rectangle highlights. Is there a way to speed this process up at all? Alternatively, is there a more efficient approach to setting up such a heat map (I'm sure there is - I'm still finding my way with D3...)?

Thanks in advance for any advice.


May 19, 2011 at 7:49 PM

WPF rendering is indeed very slow. you might want to render directly to the bitmap. See WriteableBitmapEx or agg-sharp projects.

May 20, 2011 at 8:23 AM

Thanks for your help.