Bottom subaxis manual text is not added
Posted: Thu Sep 05, 2024 9:22 am
Only the first sublaxis will be added and the rest will not work.
Is it possible to add subaxis label in Text rather than Datetime?
My environment is .net8 and wpf.
var line = new Steema.TeeChart.Styles.Line(Chart1.Chart);
Chart1.Axes.Bottom.Increment = 3;
var rnd = new Random();
for (var i = 0; i < 50; i++)
{
line.Add(i, rnd.Next(1000), i.ToString());
}
line.Pointer.Visible = true;
line.Pointer.VertSize = 2;
line.Pointer.HorizSize = 2;
var axis = Chart1.Axes.Bottom.SubAxes.Add();
axis.Visible = true;
axis.Grid.Visible = true;
axis.Increment = 1;
for (var i = 0; i < 50; i++)
{
axis.Labels.Items.Add(i, i.ToString() +"_Sub");
}
axis.Grid.DrawEvery = 1;
axis.Labels.Angle = 90;
axis.Grid.Color = System.Drawing.Color.Red;
Is it possible to add subaxis label in Text rather than Datetime?
My environment is .net8 and wpf.
var line = new Steema.TeeChart.Styles.Line(Chart1.Chart);
Chart1.Axes.Bottom.Increment = 3;
var rnd = new Random();
for (var i = 0; i < 50; i++)
{
line.Add(i, rnd.Next(1000), i.ToString());
}
line.Pointer.Visible = true;
line.Pointer.VertSize = 2;
line.Pointer.HorizSize = 2;
var axis = Chart1.Axes.Bottom.SubAxes.Add();
axis.Visible = true;
axis.Grid.Visible = true;
axis.Increment = 1;
for (var i = 0; i < 50; i++)
{
axis.Labels.Items.Add(i, i.ToString() +"_Sub");
}
axis.Grid.DrawEvery = 1;
axis.Labels.Angle = 90;
axis.Grid.Color = System.Drawing.Color.Red;