Travis Feirtag wrote a visualizer for an accelerometer that displays the results using Managed DirectX. The 3d view is inside a Windows Form so those of you looking for code to do this will appreciate that he provides all of the source code.