Scaling Silverlight toolkit diagrams?

I need to enable zooming in the Silverlight charts that I use - currently it is the Silverlight Toolkit. As far as I understand, SL Toolkit graphs do not support scaling, however, I am studying the implementation of this function. So far, I have not been able to go far: applying ScaleTransforms to Series elements does not work properly.

Can someone provide me some sample code when implementing scaling in the Silverlight Toolkit?

+3
source share
3 answers

I previously explored the possibilities of scaling Silverlight Toolkit diagrams, but failed due to (possibly) the following reasons:

  • The Silverlight Toolkit charts do not seem to be designed to scale up . There are no interceptions that you could easily attack some kind of scaling logic, if you want to create scaling on them, you have to go a lot deeper.
  • The easiest way to implement scaling is to use the ScaleTransform and RenderTransform elements. In the case of the Silverlight Toolkit, you want to apply this to the series. However, simply calculating the correct form of ScaleTransform and OffsetTransform is difficult
  • , . 4 , , 4x , 4 . , ScaleTransforms RenderTransforms , , , - , .

SL , API . , ( , ):

, , - , + Silverlight Toolkit.

+6

Telerik:

Zoom XAML.

<charting:ChartArea.ZoomScrollSettingsX>
    <charting:ZoomScrollSettings ScrollMode="ScrollAndZoom" MinZoomRange="0.005"/>
</charting:ChartArea.ZoomScrollSettingsX>

demo, , .

0

Source: https://habr.com/ru/post/1775871/


All Articles