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
1004
Column Chart X labels, Display Problem
posted

Hello,

i have Column Chart which display each day of Month, that is to say 30-31 Day on the X Axis and it work fine but if i try to display the last 3 Month 90-93  on the X Axis, Labels are nt display. I suppose to much the font-size are to small. is it possible that for too much data to display some day (and another day not) and so set the visibility? i dont know if my problem is understanding.

[  string ShortDateString = dataPoint.Label.Date.ToShortDateString();
    ColumnData.Rows.Add(ShortDateString, dataPoint.Value);  add all the 90-93 Day and in X Labels just displaying for example the begin from each month or week ]

Thanks very very much

  • 26458
    Suggested Answer
    Offline posted

    There are several things you can do:

    1. for the x axis, set TickmarkStyle to DataInterval and set TickmarkInterval to some number (10 for example). This will display every tenth label, skipping the ones in between.

    2. go into the chart.Axis.X.Labels.Layout property and set Behavior to None.

    3. Implement IRenderLabel interface to completely customize the labels. There should be multiple examples of this in other forum posts.

    You can use either scenario or both at once.