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
520
Series interpolation and x axis for multiple Series
posted

I currently have a line chart that displays multiple numeric Series with the following code:

List<string> Plans = new List<string>();
int o;

for (o = 0; o < WebDropDownPlans.SelectedItems.Count; o++)
{

Plans.Add(WebDropDownPlans.SelectedItems[o].Value.ToString());
}

foreach (string pl in Plans ) {

string Plan = pl;
DataTable tblFiltered = SeriesTable.AsEnumerable()
.Where(row => row.Field<String>("Planning") == pl)
.CopyToDataTable();

NumericSeries Series = new NumericSeries();
Series.DataBind(tblFiltered, KPIValue, "Time");
Series.Label = pl;
UltraChart1.Series.Add(Series);


}
this.UltraChart1.DataBind();

The problem is, due to the linq filtering, the x axis (Time) naturally has different values for each series (Series 1 for example has dates 1,2,3,4 while Series 2 only has  day 2 and 3 because it only happened on these days)

However if i display these two series, I only get the matching days displayed on the x axis of each Series ( 2,3) while the  datapoints of day for 1 and 4 of series 1 are lost.  Is it possible to for example interpolate so that the x axis shows the entire timerange ( day 1-4)  with values for Series 2 interpolated ? 

Parents
No Data
Reply Children
No Data