Scale Increment Query

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
mikethelad
Newbie
Newbie
Posts: 58
Joined: Thu Jul 05, 2012 12:00 am

Scale Increment Query

Post by mikethelad » Tue Jul 10, 2012 1:21 pm

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;
Attachments
Graph.JPG
Graph.JPG (24.07 KiB) Viewed 3754 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Scale Increment Query

Post by Sandra » Thu Jul 12, 2012 12:39 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

mikethelad
Newbie
Newbie
Posts: 58
Joined: Thu Jul 05, 2012 12:00 am

Re: Scale Increment Query

Post by mikethelad » Fri Jul 13, 2012 10:06 am

Working now, thanks

Post Reply