<p>How do I draw procedural graphics in a Vista Sidebar gadget?  </p>

<p>I have a gadget that collects data over time and I want to draw animating graphs.  My current approach is to draw the graph with VML that I update from JScript on a timer tick.  Is this the best way?  Can I return bitmap bits from a DLL function as the srouce to an <code>&lt;IMG&gt;</code>?  Embed bitmap bits into the HTML itself (and again update it via JScript)?  I'd love to hear some ideas.</p>

<p>Thanks!</p>

The way I currently do it is with Javascript and Adobe Flash Player communicating via the ExternalInterface in ActionScript. It seamlessly integrates local Javascript instances with an instance of a Flash Player and you can communicate just about anything between the two. You can use the fantastic drawing API in ActionScript and really get some power into you hands for charting or just embed some tools off the net.
But then, if the sandbox permits it, generating data by targeting DLLs would be great! I don't have anything functional at hand to test it, so I leave it to other contributors.