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
410
UltraChart x-axis labels
posted

I can't get my chart to display the x-axis labels. Whats wrong?

 

 

chartGwData.Axis.X.Labels.SeriesLabels.Orientation = TextOrientation.Horizontal;

chartGwData.Axis.X.Labels.SeriesLabels.Layout.Behavior = AxisLabelLayoutBehaviors.None;

chartGwData.Axis.X.Labels.Layout.Behavior = AxisLabelLayoutBehaviors.None;

chartGwData.Axis.X.RangeType = AxisRangeType.Automatic;

chartGwData.Axis.X.TickmarkStyle = AxisTickStyle.Smart;

chartGwData.Axis.X.TickmarkInterval = 7;

chartGwData.Axis.Y.TickmarkIntervalType = AxisIntervalType.Days;

chartGwData.Axis.X.RangeMax = maxXRange.Ticks;

chartGwData.Axis.X.RangeMin = minXRange.Ticks;

chartGwData.Axis.X.Labels.SeriesLabels.Format = DateTime;

chartGwData.Axis.X.Labels.SeriesLabels.Visible = true;

 

Parents
  • 53790
    posted

    Hello Jrubengb,

    I`m not familiar with your scenario, but when I look at the provided code, everything looks good, maybe except only this row:

    chartGwData.Axis.Y.TickmarkIntervalType = AxisIntervalType.Days; 

    Maybe the axis should be "X" insted of "Y". If you have a time could you please take a look at the attached sample. I try to reproduce your scenario in a small sample. Please let me know if you think that your scenario is different or if you have any questions. Please do not hesitate to modify my sample and revert it back to me. I`ll be glad to research the issue for you.

    Regards

    CompositeLineChart_4.zip
Reply Children