Blazor Chart with Remote Data Example.
This sample demonstrates how to bind the Charts component to remote data services for dynamic data visualization.
The Charts component supports flexible data binding through the DataManager component, which acts as an interface between the service endpoint and the chart. The DataManager requires the following minimum configuration:
SfDataManager.Url- Specifies the service endpoint from which to fetch dataSfDataManager.Adaptor- Defines the adaptor type;ODataAdaptoris used by default
The adaptor is responsible for processing requests and responses between the application and service endpoint. The Syncfusion.Blazor.Data namespace provides predefined adaptors for different service scenarios:
- UrlAdaptor - For interaction with any remote service; serves as the base adaptor for remote-based scenarios
- ODataAdaptor - For OData endpoint integration
- ODataV4Adaptor - For OData V4 endpoint compatibility
- WebApiAdaptor - For Web API services created under OData standards
In this demo, remote data binding is achieved by assigning a DataManager instance with appropriate query configuration to the chart's data source.
More information about remote data binding can be found in this documentation section.