I am trying to create multiple y-axis with common x-axis. I have used the example code from tutorial, i am able to succeed to create multiple axis and adding series to each line. for example.
Code: Select all
Line line1 = new Line();
Line line2 = new Line();
tChart1.Series.Add(line1);
tChart1.Series.Add(line2);
Code: Select all
_chart.Legend.Visible = true;
tChart1.Legend.Visible = true;
tChart1.Legend.CheckBoxes = true;
tChart1.Legend.Gradient.Visible = true;
tChart1.Legend.Gradient.StartColor = Color.LightGray;
tChart1.Legend.Gradient.MiddleColor = Color.White;
tChart1.Legend.LegendStyle = LegendStyles.Series;
tChart1.Legend.Alignment = LegendAlignments.Bottom;
tChart1.Legend.Shadow.Visible = false;
tChart1.Legend.ShapeStyle = Steema.TeeChart.Drawing.TextShapeStyle.RoundRectangle;
tChart1.Legend.HorizMargin = 0;
tChart1.Legend.VertMargin = 0;
tChart1.Legend.VertSpacing = 0;
for (int i = 0; i < tChart1.Series.Count; i++)
{
tChart1.Series[i].Active = true;
}
how to change those names line1 to some other name? because i want to display sensor name instead of line1,line2....?
I am creating several axis so how to create common grid for all axis?
Thanks,
biji.