Answered X-axis labels are not showing properly?

  • Friday, February 24, 2012 9:44 AM
     
     

    Hi all,

    i'm using Asp.net 3.5 chart control,i have a bar chart,in that x-axis labels are not showing properly.label has long data to display.

    label should be display horizontally.

    can anyone help me out....


    moulani

All Replies

  • Friday, February 24, 2012 10:11 AM
     
     
    can anyone help me...???

    moulani

  • Friday, February 24, 2012 10:18 AM
     
     

    Hi,

    i attached the img...

    in that 1 label is not showing properly...

    what i need is 'unsupported assets' but currently it is showing 'd' in next line...

    my query is,is there any property to set x-axis label fit properly how much ever the data is?

    i tried 'IsLabelAutoFit =true' but nothing is happening..

    

    plz help me..

    thanks in adv


    moulani

  • Friday, February 24, 2012 10:54 AM
    Moderator
     
     Answered

    The chart will automatically try to resize the font of the label to a certain limit by default. Your chart simply does not have enough room on the axis. You have three options.

    1) Make the chart wider.

    2) Manually set the axis label font smaller. (Chart1.ChartAreas(0).AxisX.LabelStyle.Font)

    3) Show the labels at an angle. (Chart1.ChartAreas(0).AxisX.LabelStyle.Angle)