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
100
How to apply wrapText in X axis
posted

Hello,

I am using stacked column chart and i want to be able to wrap the text of my X axis labels. I tried implementing a custom behavior and set it to use behavior, but it doesn't seem to do anything. The sample Output like below 

 

my code looked like this

chartCOM.Axis.X.Labels.WrapText = True

chartCOM.Axis.X.Labels.ClipText = False

chartCOM.Axis.X.Labels.SeriesLabels.Orientation = Styles.TextOrientation.VerticalLeftFacing

chartCOM.Axis.X.Labels.Layout.Behavior = Styles.AxisLabelLayoutBehaviors.UseCollection

 

wrapText.UseOnlyToPreventCollisions = 

chartCOM.Axis.X.Labels.Layout.BehaviorCollection.Add(wrapText) 

 

 

Dim wrapText As New WrapTextAxisLabelLayoutBehavior False