SharpPlot Reference > SharpPlot Methods > RenderXaml Method

SharpPlot.RenderXaml Method

This method returns the chart expressed as a XAML Canvas at target resolution (defaults to 96dpi). The chart can be viewed on the web in most common browsers with the SilverLight plugin.


string xaml = sp.RenderXaml(96);    // Save as bare Canvas at 96 dpi



To make use of this format on the internet you can wrap the XAML content in HTML by setting the html flag to true. The page will reference the silverlight.js file supplied with the plugin, and also the silverplot.js file supplied with SharpPlot. This is very convenient for initial testing, but you will probably want to make your own wrapper page for production use. In any case, the web browser will need a SilverLight plugin.

See also ...

SharpPlot Members | SharpPlot.SaveXaml Method

Send comments on this topic
© Dyalog Ltd 2016