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 ?
Hello Henning,
You can use tickmarks to customize the X and Y axis values.
I suggest you to go through the following forum post and documentation for more information.
http://help.infragistics.com/Doc/ASPNET/Current/CLR4.0/?page=Chart_Display_Data_on_a_Time_Scale_Axis.html
http://ko.infragistics.com/community/forums/t/59469.aspx
If you are looking something different than this, please provide me the screenshot of the issue.
Please let me know if you have any further questions regarding this matter.