MonoTouch Panning beyond data limit
Posted: Tue May 01, 2012 3:02 am
Hello,
I am working with Steema TeeChart for iOS (Monotouch) and I am trying to get limit the panning of the Chart past the data points. My x-axis is a DateTime and my panning is set to horizontal only:
I am looking for help to put code to not allow me to pan past my data limit. I set pages with maximum data points per page and the panning works but I would like to stop after the data points are done.
I am working with Steema TeeChart for iOS (Monotouch) and I am trying to get limit the panning of the Chart past the data points. My x-axis is a DateTime and my panning is set to horizontal only:
Code: Select all
_chart.Header.Text = string.Format("{0} consumption usage", _resolution);
_chart.Axes.Bottom.Labels.DateTimeFormat = "d";
_chart.Axes.Bottom.Labels.Font.Size = 8;
_chart.Axes.Bottom.Labels.Angle = 0;
_chart.Axes.Bottom.Labels.Style = AxisLabelStyle.Value;
_chart.Axes.Left.Title.Text = "Consumption";
_chart.Axes.Left.Title.TextAlign = MonoTouch.CoreText.CTTextAlignment.Center;
_chart.Legend.Visible = false;
_chart.Aspect.View3D = false;
_chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;
_chart.Panning.Allow = ScrollModes.Horizontal;
Steema.TeeChart.Themes.ExcelTheme theme = new Steema.TeeChart.Themes.ExcelTheme(_chart.Chart);
theme.Apply();
_chart.ScrollMod += Handle_chartScrollMod;
_chart.Zoomed += Handle_chartZoomed;
_chart.UndoneZoom += Handle_chartUndoneZoom;