how to draw digital on-off signal
how to draw digital on-off signal
How can I draw like this picture
http://img507.imageshack.us/img507/677/46495697wc1.png
I use Area to draw but Area is hard to use.
I also draw two line and set width but can't do very well.
Is there other Object easy to use?
http://img507.imageshack.us/img507/677/46495697wc1.png
I use Area to draw but Area is hard to use.
I also draw two line and set width but can't do very well.
Is there other Object easy to use?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi scott,
What about using horizontal bar series (Steema.TeeChart.Styles.HorizBar)?
What about using horizontal bar series (Steema.TeeChart.Styles.HorizBar)?
Best Regards,
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi scott,
Yes, you can try something like this:
You'll also find some more examples at the features demo available at TeeChart's program group.
Yes, you can try something like this:
Code: Select all
Steema.TeeChart.Styles.HorizBar hBar1 = new Steema.TeeChart.Styles.HorizBar(tChart1.Chart);
hBar1.Add(38, 0);
Best Regards,
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi scott,
In that case you can combine HorizBar series with ColorLine tool as shown here:
In that case you can combine HorizBar series with ColorLine tool as shown here:
Code: Select all
private Steema.TeeChart.Styles.HorizBar horizBar1;
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
horizBar1 = new Steema.TeeChart.Styles.HorizBar(tChart1.Chart);
horizBar1.Add(38, 0);
horizBar1.Add(25, 1);
horizBar1.Add(32, 2);
if (horizBar1.Count == 1)
{
tChart1.Axes.Left.SetMinMax(horizBar1.MinYValue()-1,horizBar1.MaxYValue()+1);
}
else
{
tChart1.Axes.Left.Automatic = true;
}
horizBar1.GetBarStyle += new Steema.TeeChart.Styles.CustomBar.GetBarStyleEventHandler(horizBar1_GetBarStyle);
}
void horizBar1_GetBarStyle(Steema.TeeChart.Styles.CustomBar sender, Steema.TeeChart.Styles.CustomBar.GetBarStyleEventArgs e)
{
Steema.TeeChart.Tools.ColorLine cl = new Steema.TeeChart.Tools.ColorLine(tChart1.Chart);
cl.Axis = horizBar1.GetVertAxis;
cl.Pen.Color = horizBar1.Pen.Color;
cl.Value = horizBar1.GetVertAxis.CalcPosPoint(horizBar1.BarBounds.Bottom);
}
Best Regards,
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi scott,
Yes, you can set bottom axis minimum and maximum values like this:
Yes, you can set bottom axis minimum and maximum values like this:
Code: Select all
tChart1.Axes.Bottom.SetMinMax(-50, 50);
Best Regards,
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi scott,
In that case, having another series in the chart you can use UseOrigin and Origin properties of HorizBar, for example:
In that case, having another series in the chart you can use UseOrigin and Origin properties of HorizBar, for example:
Code: Select all
horizBar1.UseOrigin = true;
horizBar1.Origin = 5;
Best Regards,
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 |