I created a graph with column series by using data visualization and in that i’ve taken DateTimeAxis as x-axis and i’ve one combo box with time intervals and based on selection of combo box i need to bind intervals into my graph at runtime. The problem is i’m getting error if i select intervals randomly like
var xAxis = countChart.ActualAxes.OfType<DateTimeAxis>().FirstOrDefault(ax => ax.Orientation == AxisOrientation.X);
xAxis.Minimum = DateTime.Parse(fromDt.ToString("HH:mm:ss"));
xAxis.Maximum = DateTime.Parse(toDt.ToString("HH:mm:ss"));
"The minimum value must be smaller than or equal to the maximum value."
so how can i overcome my problem plz help me.
Thanks,
@Nagaraju.
i found solution my self..
reset max with tomorrow and min with yesterday.. ‘ll fix the issue.. like..