Chart for .NET / User's Guide / Miscellaneous / Services

Services

Services act as mediators between objects. Some services can be suspended. The following sections describe each service in detail.

 Axis, Axis Cursor and Range Selection Synchronization Services

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()
 Legend Update Service

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()
 Chart Calculate Service

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()
See Also