Hi,
I'm using Steema Silverlight version. I'm displaying a curve for each consecutive number on Bottom Axis. I've set
increment property of bottom Axis to 1 by using the following statment.
TeeChart.Axes.Bottom.Increment = 1;
But this is not working when number of values are large. Plz refer the attached screenshot. notice the gap between
13 & 15
18 & 20
23 & 25
28 & 30
Setting the Increment value of Axis not working.
Setting the Increment value of Axis not working.
- Attachments
-
- Bottom Axis values.PNG (42.44 KiB) Viewed 6495 times
Re: Setting the Increment value of Axis not working.
Hello Neelam,
I suggest use next code where I am using custom labels to draw all values:
Can you tell us if previous code solve your problem?
Thanks,
I suggest use next code where I am using custom labels to draw all values:
Code: Select all
Steema.TeeChart.Silverlight.Style.Line Series1;
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Series1 = new Steema.TeeChart.Silverlight.Styles.Line(tChart1.Chart);
Random rnd = new Random();
for (int i = 0; i < 40; i++)
{
Series1.Add(i, rnd.Next(10000));
}
tChart1.Axes.Bottom.Labels.Style = AxisLabelStyle.PointValue;
tChart1.Axes.Bottom.Labels.Angle = 90;
AddLabels();
}
private void AddLabels()
{
tChart1.Axes.Bottom.Labels.Items.Clear();
for(int i=0; i< Series1.Count;i++)
{
tChart1.Axes.Bottom.Labels.Items.Add(i, i.ToString());
}
}
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 |