Page 1 of 1

Scale Increment Query

Posted: Tue Jul 10, 2012 1:21 pm
by 15662902
Have a line graph with 2 plots, both the same values 7 and one for Month 11 & one for Month 12 (so 11 & 12 on scale), the scale is adding numbers ie 11.1 11.2 11.3 I simply want 11 and 12 appearing, see sample, I have tried the following

WebChart1.Chart.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Value; //Fix value style
WebChart1.Chart.Axes.Bottom.Automatic = false;
WebChart1.Chart.Axes.Bottom.Minimum = 11;
WebChart1.Chart.Axes.Bottom.Maximum = 12;
WebChart1.Chart.Axes.Bottom.Increment = 0;

Re: Scale Increment Query

Posted: Thu Jul 12, 2012 12:39 pm
by 10050769
Hello mikethelad,

I recomend you do somenthing as next code to achieve as you want:

Code: Select all

    private void InitializeChart()
    {
        Steema.TeeChart.Styles.Line line = new Line(tChart1.Chart);
        line.Add(11, 7);
        line.Add(12, 7);
        line.Add(0, 7);
        tChart1.Axes.Bottom.Labels.Style = AxisLabelStyle.PointValue;
    }
Can you tell us if previous code works as you want?

I hope will helps.

Thanks,

Re: Scale Increment Query

Posted: Fri Jul 13, 2012 10:06 am
by 15662902
Working now, thanks