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
125
Date/time X axis labelling
posted

I am trying to get my X axis labelled in a readable fashion. I have tried this setup: 

    axisX.DataType =

AxisDataType.Time;

 

    axisX.TickmarkStyle = AxisTickStyle.Smart;

    axisX.Labels.ItemFormat =

 

AxisItemLabelFormat.Custom;

     axisX.Labels.ItemFormatString = "<ITEM_LABEL:dd/MM/yy HH:mm>";  

 

 Which results in this labelling:

I then tried adding these 2 lines:

    axisX.Labels.Layout.Behavior = AxisLabelLayoutBehaviors.UseCollection;

    axisX.Labels.Layout.BehaviorCollection.Add(

 

Which turns out like this:

new StaggerAxisLabelLayoutBehavior { UseOnlyToPreventCollisions = true, Enabled = true });

 How should I achieve readable labelling on my CompositeChart with added NumericTimeSeries?

 

AxisDataType.Time;