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
40
Change datetime format AxisLabel on Ultrachart
posted

Hello,

I have created an Ultrachart compose by multiple series, each series have in common the horizontal axis which represent datetime values.

I have no problem to display data, my problem is on my Horizontal axis I want to display the date value in this way : dd/MM/yyyy hh .

This is the Horizontal axis code : 

AxisItem axisX = new AxisItem();
axisX.OrientationType = AxisNumber.X_Axis;
axisX.DataType = AxisDataType.String;
axisX.SetLabelAxisType = SetLabelAxisType.ContinuousData;
axisX.Labels.ItemFormat = AxisItemLabelFormat.ItemLabel;
axisX.RangeType = AxisRangeType.Custom;
axisX.RangeMax = 50;
axisX.Labels.Orientation = TextOrientation.VerticalLeftFacing;

I tried to changed the setLabelAxisType to DateData.The Labels.ItemFormat = AxisItemLabelFormat.Custom and Labels.ItemFormatString = ""

etc...

But nothing work unfortunately, I didn"t find the solution on internet.

I hope that you can help me.

You can see my Ultrachart on this link :

http://2.1m.yt/QZgZbnM.png

Parents
No Data
Reply
  • 2525
    posted

    Hello,

    You can look into the solution provided in this thread: http://ko.infragistics.com/community/forums/t/34421.aspx

Children