Chart can be rendered from the code behind by initializing the required properties in controller and passing those properties via ViewData to client side.
The following code illustrates the initialization of chart properties in the controller.
Binding the chart properties passed via ViewData from the controller in the client side as below.
The following screenshot displays the line chart rendered by passing properties from server.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|