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
175
Set a minimum value on x axis which displays string data.
posted

Hi,

My xamchart of type Area displays balance(y axis) for end of every month(x axis) in a specific year. I want my x axis to start from January and dont want to show that gap between starting point and January.

I guess i can manually set the range of an axis with the help of  minimum and maximum properties but they are of type double where as my x axis displays month name in string.

How do i set minimum = January and Maximum = December with Unit as 1.

Any help will be greatly appreciated.

Thanks. 

 

 xamchart

 

Parents
No Data
Reply
  • 17605
    Verified Answer
    posted

    You can try using:

    <igChart:XamChart>

    <igChart:XamChart.Axes>

    <igChart:Axis AxisType="PrimaryX" Minimum="1" Maximum="12" Unit="1" AutoRange="False" />

    </igChart:XamChart.Axes>

     ...

Children