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
1730
igDataChart axes margin and padding
posted

Hi,

Is there any way to add margin and spacing to the chart axes. Basically I want some space between Y-Axis line and edge of Canvas.

Can that be controlled by CSS or any other way ??

  • 1775
    Suggested Answer
    posted

    Hi, sanjaysutar

    This aspect can be controlled with the help of the leftMargin option of the igDataChart, or with the LeftMargin() method of the DataChart MVC helper. The value passed is the amount of space b/n the left edge of the canvas and the chart content.

    Cheers, Lazar