Code: Select all
private void Window_Loaded(object sender, RoutedEventArgs e)
{
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
Steema.TeeChart.Styles.Error error1 = new Steema.TeeChart.Styles.Error(tChart1.Chart);
Steema.TeeChart.Styles.Line line2 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
Steema.TeeChart.Styles.Error error2 = new Steema.TeeChart.Styles.Error(tChart1.Chart);
error1.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;
error2.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;
line2.Pointer.Visible = true;
error2.Color = line2.Color;
line1.Pointer.Visible = true;
error1.Color = line1.Color;
error1.ShowInLegend = false;
error2.ShowInLegend = false;
tChart1.Legend.CheckBoxes = true;
tChart1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Series;
for (int i = 1; i < 20; i++)
{
double value1 = (i * 10);
double sem1 = (i);
line1.Add(i, value1);
error1.Add(i, value1, sem1);
double value2 = (i * 100);
double sem2 = (i);
line2.Add(i, value2);
error2.Add(i, value2, sem2);
}
}
Thanks,
Mike