Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
UltraChart DataSeries using a DataTable populated by calling a Stored Procedure
posted

How do you create a data series when the Ultrachart is bound to a datatable that was

populated by calling a stored procedure?

  • 995
    posted

    I believe you already have DataTable from DataSource, so you can use Data property to create a series from this table: for example for the NumericSeries:

            NumericSeries series = new NumericSeries();

           series.Label = "Series A";

           DataTable table = SOME TABLE FROM DB

           series.Data.DataSource = table;

           series.Data.LabelColumn = "Label Column";

           series.Data.ValueColumn = "Value Column";

           return series;