Code: Select all
Dim barserieHormigonYAcero As New Steema.TeeChart.Styles.Bar()
Code: Select all
chGraficoObrasFabrica.Series.Add(barserieHormigonYAcero)
independently of the serie
Thanks
Code: Select all
Dim barserieHormigonYAcero As New Steema.TeeChart.Styles.Bar()
Code: Select all
chGraficoObrasFabrica.Series.Add(barserieHormigonYAcero)
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
bar1.FillSampleValues();
tChart1.Panel.Gradient.StartColor = Color.Black;
tChart1.Panel.Gradient.EndColor = Color.White;
tChart1.Walls.Back.Gradient.StartColor = tChart1.Panel.Gradient.StartColor;
tChart1.Walls.Back.Gradient.EndColor = tChart1.Panel.Gradient.EndColor = Color.White;
}
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 |
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
for (int i = 0; i < 3; i++)
{
TChart ch1 = new TChart();
ch1.Name = "ch" + (i + 1).ToString();
SetChart(ch1);
ch1.Top = ch1.Height * i;
this.Controls.Add(ch1);
}
}
private void SetChart(TChart chart)
{
chart.Aspect.View3D = false;
chart.Series.Add(new Bar()).FillSampleValues();
chart.Panel.Gradient.StartColor = Color.Black;
chart.Panel.Gradient.EndColor = Color.White;
chart.Walls.Back.Gradient.StartColor = chart.Panel.Gradient.StartColor;
chart.Walls.Back.Gradient.EndColor = chart.Panel.Gradient.EndColor = Color.White;
}
Narcís Calvet / 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 |
Code: Select all
Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
Steema.TeeChart.Styles.Bar bar2 = new Steema.TeeChart.Styles.Bar(tChart2.Chart);
Steema.TeeChart.Styles.Bar bar3 = new Steema.TeeChart.Styles.Bar(tChart3.Chart);
bar1.FillSampleValues();
bar2.FillSampleValues();
bar3.FillSampleValues();
SetChart(bar1);
SetChart(bar2);
SetChart(bar3);
Narcís Calvet / 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 |
Code: Select all
Steema.TeeChart.Chart Chart1;
Steema.TeeChart.Chart Chart2;
Steema.TeeChart.Chart Chart3;
Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
Steema.TeeChart.Styles.Bar bar2 = new Steema.TeeChart.Styles.Bar(tChart2.Chart);
Steema.TeeChart.Styles.Bar bar3 = new Steema.TeeChart.Styles.Bar(tChart3.Chart);
bar1.FillSampleValues();
bar2.FillSampleValues();
bar3.FillSampleValues();
Chart1.Series.Add(bar1);
Chart2.Series.Add(bar2);
Chart3.Series.Add(bar3);
SetChart(Chart1);
SetChart(Chart2);
SetChart(Chart3);
Narcís Calvet / 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 |
Narcís Calvet / 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 |
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
for (int i = 0; i < 3; i++)
{
TChart ch1 = new TChart();
ch1.Name = "ch" + (i + 1).ToString();
SetChart(ch1);
ch1.Top = ch1.Height * i;
ch1.Series.Add(new Bar()).FillSampleValues();
this.Controls.Add(ch1);
}
}
private void SetChart(TChart chart)
{
chart.Aspect.View3D = false;
chart.Panel.Gradient.StartColor = Color.Black;
chart.Panel.Gradient.EndColor = Color.White;
chart.Walls.Back.Gradient.StartColor = chart.Panel.Gradient.StartColor;
chart.Walls.Back.Gradient.EndColor = chart.Panel.Gradient.EndColor = Color.White;
}
Narcís Calvet / 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 |
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
for (int i = 0; i < 3; i++)
{
TChart ch1 = new TChart();
ch1.Name = "ch" + (i + 1).ToString();
ch1.Top = ch1.Height * i;
ch1.Series.Add(new Bar()).FillSampleValues();
SetChart(ch1);
this.Controls.Add(ch1);
}
}
private void SetChart(TChart chart)
{
chart.Aspect.View3D = false;
chart.Panel.Gradient.StartColor = Color.Black;
chart.Panel.Gradient.EndColor = Color.White;
chart.Walls.Back.Gradient.StartColor = chart.Panel.Gradient.StartColor;
chart.Walls.Back.Gradient.EndColor = chart.Panel.Gradient.EndColor = Color.White;
Bar bar = (Bar)chart[0];
bar.BarStyle = BarStyles.RectGradient;
bar.Gradient.StartColor = Color.Red;
bar.Gradient.MiddleColor = Color.Blue;
bar.Gradient.EndColor = Color.Yellow;
}
Narcís Calvet / 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 |
Code: Select all
Dim bar As Steema.TeeChart.Styles.Bar = DirectCast(Steema.TeeChart.Chart(0), Steema.TeeChart.Styles.Bar)
bar.BarStyle = Steema.TeeChart.Styles.BarStyles.RectGradient
bar.Gradient.StartColor = Color.Red
bar.Gradient.MiddleColor = Color.Blue
bar.Gradient.EndColor = Color.Yellow