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
440
Axis Smart TickStyle not working for Stacked Column Chart in na5.3
posted

I am  using AxisTickStyle.Smart for my charts so that the labels for the x axis (in this case Dates) do not bunch up and overlap. This works fine for other charts (stack line charts etc.),but doesn't work for a Stacked Column chart (also the labels will not appear vertically as set using Axis.X.Labels.SeriesLabels.Orientation).

ultraChart.Axis.X.TickmarkStyle = AxisTickStyle.Smart;
ultraChart.Axis.Y.TickmarkStyle = AxisTickStyle.Smart;

 I'm using NetAdvantage 5.3 for .NET 1.1

Thanks 

 

Parents
  • 28496
    Offline posted

    you should be able to change the series labels' orientation without any problem using this code:

    this.ultraChart1.Axis.X.Labels.SeriesLabels.Orientation = TextOrientation.VerticalLeftFacing;

    however, the TickmarkStyle does not affect Series labels, so setting that property will be ineffective in this case.  if you want to implement an "every nth label" solution, you can do so by implementing IRenderLabel (and returning an empty string for most labels), or through a custom layer (by removing excessive labels from the SceneGraph or setting their text to an empty string.

Reply Children