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
390
Column chart label position
posted

Hi,

I use a column chart and I want to remove all the blank fields between the columns and the blank field between the first column and left edge of GridArea.

I use the following codes to implement this:

            this.xamWebChart1.Axes[0].AutoRange = false;
            this.xamWebChart1.Axes[0].Maximum = 10.5;
            this.xamWebChart1.Axes[0].Minimum = 0.5;
            this.xamWebChart1.Axes[0].Unit = 1;
            this.xamWebChart1.Axes[0].RangeFromZero = false;

            this.xamWebChart1.Series[0].ChartParameters.Add(new ChartParameter(ChartParameterType.PointWidth, 1.25));

But the label position under the columns are incorrect now. Each label is supposed to be under the corresponding column and in middle("Label0" is supposed to be in the red-edged rectangle as in the picture). How can I fix it? I atttached my program.

 

SilverlightApplication5.rar