Chart Url Data Source / Data Manager

I would like to pass data to my chart from an API/Controller call.

I am using the tag helper and trying to add the element  <e-datamanager> but I cant. I have noticed this is not available with Razor or JS either.

I have also tried to use the DataSource attribute in the series element.

I can pass is an object from the initial controller call and it works but I would like to use an url instead. 

 

 

  <ej-chart id="ServerFeedbacksChart">

            <e-datamanager url="/Home/DataSource" adaptor="UrlAdaptor"/>

// OR

            <e-datamanager url="@Url.Link("default", new {controller = "SyncFusion", action = "ServerFeedbacksData", restaurantId = "kel"})" adaptor="UrlAdaptor"></e-datamanager>

            <e-title text="Server Analysis"></e-title>

            <e-primary-y-axis>

                <e-title text="Server Feedbacks"></e-title>

            </e-primary-y-axis>

            <e-chart-series>

                <e-series name="Servers"

                          x-name="ServerName"

                          y-name="ServedCount"

                          type="Line">

                    <e-chart-tooltip visible="true"></e-chart-tooltip>

                </e-series>

            </e-chart-series>

        </ej-chart>

1 Reply

SK Saravana Kumar Kanagavel Syncfusion Team November 10, 2017 11:33 AM UTC

Hi John, 
 
Sorry for the inconvenience. 
 
We have analyzed your query and consider this is an issue. So we have logged bug report on “Data Manager tag helper doesn’t included into the chart for binding the data using Data Manager” on this. Fix for the reported issue will be included in our Essential Studio 2017 Volume 4 service pack 1 release, which is expected to be roll out on end of December,2017.  
 
Please let us know if you have any concern. 
 
Regards, 
Saravana Kumar K. 


Loader.
Up arrow icon