Chart for .NET > User's Guide > Miscellaneous > Services |
Services act as mediators between objects. Some services can be suspended. The following sections describe each service in detail.
These three services maintain master/slave relationships between axes, axis cursors and range selections. You may stop a certain relationship by invoking the Stop() method of the service. The following code suspends all synchronization:
C# |
Copy Code
|
---|---|
chartControl.ServiceManager.AxisSyncService.Stop(); chartControl.ServiceManager.AxisCursorSyncService.Stop(); chartControl.ServiceManager.RangeSelectionSyncService.Stop(); |
Visual Basic |
Copy Code
|
---|---|
chartControl.ServiceManager.AxisSyncService.Stop() chartControl.ServiceManager.AxisCursorSyncService.Stop() chartControl.ServiceManager.RangeSelectionSyncService.Stop() |
This service maintains automatic legends that are populated from chart data and/or series. The following code stops the automatic legend update service:
C# |
Copy Code
|
---|---|
chartControl.ServiceManager.LegendUpdateService.Stop(); |
Visual Basic |
Copy Code
|
---|---|
chartControl.ServiceManager.LegendUpdateService.Stop() |
The chart calculate service builds the internal caches of the charts when they present data. The following code stops the automatic chart calculate service:
C# |
Copy Code
|
---|---|
chartControl.ServiceManager.LegendUpdateService.Stop(); |
Visual Basic |
Copy Code
|
---|---|
chartControl.ServiceManager.LegendUpdateService.Stop() |