locked
lengthy x axis value in bar chart not displayed properly RRS feed

  • Question

  • i have created one column chart using .net chart control. it works well but the lengthy xaxis value is not properly displayed

    sample data:

    xaxis : jan,feb,march...........dec

    but it displays the odd xaxis  or even xaxis value..........

    like jan,mar..dec etc or feb,apr....nov

     

    but all the y axis value are binded in chart control

    how to solve this issue

     


    Sudhesh. G
    http:\\gurucoders.blogspot.com
    • Changed type Sudhesh.G Saturday, February 12, 2011 10:41 AM
    • Changed type Sudhesh.G Saturday, February 12, 2011 10:42 AM
    Friday, February 11, 2011 1:57 PM

Answers

  • first please change the thread type to Question (this is not a Discussion)

    you can set the AxisX interval property to 1 and it will display all the X axis labels

    Chart1.ChartAreas(0).AxisX.Interval = 1
    
    • Marked as answer by Sudhesh.G Saturday, February 12, 2011 10:42 AM
    Friday, February 11, 2011 5:41 PM
    Moderator

All replies

  • first please change the thread type to Question (this is not a Discussion)

    you can set the AxisX interval property to 1 and it will display all the X axis labels

    Chart1.ChartAreas(0).AxisX.Interval = 1
    
    • Marked as answer by Sudhesh.G Saturday, February 12, 2011 10:42 AM
    Friday, February 11, 2011 5:41 PM
    Moderator
  • thanks jwavlia,

    it works now after setting the x axis interval

     


    Sudhesh. G
    http://urucoders.blogspot.com
    Saturday, February 12, 2011 5:02 AM
  • glad it works

    again, please change the thread type to Question, and mark the post that provided you the answer as Answer

    Saturday, February 12, 2011 5:24 AM
    Moderator