This sample illustrates how to retrieve remote data for chart.
The Chart supports data binding. The
dataSource property can be assigned with the instance of
to bind remote data.
The DataManager, which will act as an interface between the service endpoint and the chart, will require the below minimal information to interact with service endpoint properly.
DataManager->url- Defines the service endpoint to fetch data
DataManager->adaptor- Defines the adaptor option. By default,
ODataAdaptoris used for remote binding.
Adaptor is responsible for processing response and request from/to the service endpoint. They are,
UrlAdaptor- Use this to interact with any remote services. This is the base adaptor for all remote based adaptors.
ODataAdaptor- Use this to interact with OData endpoints.
ODataV4Adaptor- Use this to interact with OData V4 endpoints.
WebApiAdaptor- Use this to interact with Web API created under OData standards.
WebMethodAdaptor- Use this to interact with web methods.
In this demo, remote data is bound by assigning service data as an instance of