I have a composite chart that I want to be able to scroll the X axis. I have set the following:
ultraChart1.Axis.X.ScrollScale.Visible = true;
ultraChart1.Axis.X.ScrollScale.Scroll = 0;
but that does not seem to work. The composite chart contains a single 2D Line chart (for now).
In the composite charts there are custom axis. You have to find the right one. This should be something like:
ScrollScaleAppearance scaleAppearance = this.ultraChart1.CompositeChart.ChartAreas[0].Axes[0].ScrollScale;
scaleAppearance.Scale = 0.2;
ScrollScale property for now is not public visible, because it's not tested well, but you can try to use this.
That worked. I also found I can add the information when I am setting up the axis so I don't have to guess which index it is.
axisX.OrientationType = AxisNumber.X_Axis;
axisX.SetLabelAxisType = SetLabelAxisType.ContinuousData;
axisX.Labels.Orientation = TextOrientation.VerticalLeftFacing;
axisX.ScrollScale.Scale = 0.2;
Thanks for your help.
PERFECT! Thanks so much!
Hi,
just set:
this.ultraChart1.LineChart.TreatDateTimeAsString = false;
You can provide a custom format string. Here in the screen capture I think the format is just the localized presentation of the default format.
Hope that helps.
What code did you use to get you dates to appear like they do in your chart screen capture? I am creating similar line numeric time series but have not been able to get the dates to display. Thanks for any advice.
Unfortunately, there isn’t a workaround for that. You can submit a feature request for this here:
http://devcenter.infragistics.com/protected/requestfeature.aspx