# Controlling Transformation

## Content



The transformations applied to the chart can be tuned by using Transform event of [C1Chart](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.C1Chart.html). When scaling, rotating or zooming occurs, the [Transform](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.C1Chart.Transform.html) event fires. Adding a handler to this event allows adjusting limits of axes or to cancel the action.

The following example limits the range of x-axis from -10 to 10 by canceling action when axis minimum or maximum is beyond the range.

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
Private Sub C1Chart1_Transform(ByVal sender As Object, _      ByVal e As C1.Win.C1Chart.TransformEventArgs) Handles C1Chart1.Transform 
  If e.MinX < -10 Or e.MaxX > 10 Then
    e.Cancel = True  
  End If
End Sub
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
private void c1Chart1_Transform(object sender,C1.Win.C1Chart.TransformEventArgs e)
{    
  if( e.MinX < -10 || e.MaxX > 10)    
     e.Cancel = true;  
}
```

DOC-DETAILS-TAG-CLOSE

## See Also

[Creating a Zoom Effect](/componentone/docs/win/online-chart2d/enduserinteraction/rotatingscalingtrans/creatingazoomeffect)