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
655
How to force the grid to show all x-axis labels?
posted

Hello,

Please see the attached image. The month names: Feb, Apr ... Dec are not show in the grid. How to force the grid to show all x-axis labels?

 

Best regards,

Zach_Shine

 

Parents
  • 2671
    Verified Answer
    Offline posted

    Hello Zach_Shine, 

     

    The chart auto-calculates the number of labels to show by default to fit the space(sometimes not that good with only a few points), but you can set that easily:

    //inside the chart definition: 
    axes: [{
                name: "xAxis",
                type: "numericX",

                interval: 1

            }]

    Found under axes settings in the API - https://www.igniteui.com/help/api/2019.1/ui.igDataChart#options

    Regards,

    Damyan

Reply Children
No Data