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;
Scale Increment Query
-
- Newbie
- Posts: 58
- Joined: Thu Jul 05, 2012 12:00 am
Scale Increment Query
- Attachments
-
- Graph.JPG (24.07 KiB) Viewed 3791 times
Re: Scale Increment Query
Hello mikethelad,
I recomend you do somenthing as next code to achieve as you want:
Can you tell us if previous code works as you want?
I hope will helps.
Thanks,
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;
}
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 58
- Joined: Thu Jul 05, 2012 12:00 am
Re: Scale Increment Query
Working now, thanks