Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I've previously looked into implementing zooming on the Silverlight Toolkit charts, however failed because of (probably) the following reasons:</p> <ul> <li>Silverlight Toolkit charts <strong>don't seem to have been designed to be able to extend for zooming</strong>. There are no hooks that you could easily attack some zooming logic to, if you want to create zooming on them, you have to go much deeer.</li> <li>The simplest way of implementing zooming is using ScaleTransform and RenderTransform to elements. In case of Silverlight Toolkit you want to apply this to the series. However just <strong>calculating the correct ScaleTransform and OffsetTransform are difficult</strong> enough</li> <li>When scaling, <strong>you don't want everything to scale</strong>. If you zoom in 4x on a line series with points on it, you don't want the line to be 4x thicker and the points to be 4x larger. This means that even if you did implement applying the ScaleTransforms and RenderTransforms correctly, all you would get is a magnifying glass, which is still far from ideal.</li> </ul> <p>After a few hours I gave up on adding this kind of support to the SL toolkit charts and instead looked for other components that support zooming and have a decent API to deal with it. These are the components I've found (though I'm sure there's more):</p> <ul> <li><a href="http://visiblox.com" rel="nofollow">Visiblox Charts free version</a>: it has a nice API and implenting zooming takes only a few lines of XAML according to <a href="http://www.visiblox.com/blog/2010/11/zooming-panning-in-silverlight-using-visiblox-charts" rel="nofollow">this blog post</a> (also see a post on a <a href="http://www.scottlogic.co.uk/blog/colin/2010/11/visiblox-charts-vs-silverlight-toolkit-charts-a-test-of-performance-2/" rel="nofollow">comparison with SL toolkit charts</a>). <strong><em>Full disclosure:</em></strong> I have been heavily involved in development of this library.</li> <li><a href="http://www.infragistics.com/dotnet/netadvantage/silverlight/xam-web-chart.aspx#Overview" rel="nofollow">Infragistics xamWebChart</a> also claim to have support for zoom in the premium version of their charts</li> <li><a href="http://www.telerik.com/products/silverlight.aspx" rel="nofollow">Telerik RadCharts</a> also seem to allow zooming <a href="http://www.telerik.com/products/silverlight/chart.aspx#data-virtualization-and-data-sampling" rel="nofollow">based on this example</a> - though it's not clear to me whether you'd have to implement this functionality yourself.</li> </ul> <p>Summing it up, I think the easiest way for you to go it with a component that already has zooming implemented - from my experience it would take a <em>lot</em> of investment to add proper zooming + panning to Silverlight Toolkit charts.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload