Hello
I have a problem with Line (then I replaced it with FastLine which works) and Area class. Appearance properties could not be set if I add transparent value.
for example:
Area area = new Area(tChart1);
area.Brush.Color = Color.Red;
area.Brush.Transparency = 80;
area.AreaLines.Transparency = 90;
area.LinePen.Transparency = 90;
area.AreaLines.Color = Color.Red;
area.Transparency = 80;
area.AreaBrush.Transparency = 80;
After I add transparent values like:
area.Add(new double?[10]);
or
area.Add();
all these properties set before (or set after), became random (and transparent became zero?).
Or is there any other way to set start position of some charts to be moved to the right?
Good example of valid behaviour is Financial function MovingAverage which added to the Line creates blank space for size of period. My custom funcions would like to do the same
Thanks,
Goran
Appearance problem if adding transparent values (Line, Area)
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Goran,
I'm not sure about which is the exact problem here. Using code below works fine for me here. Which is the exact problem do you have with it?
Thanks in advance.
I'm not sure about which is the exact problem here. Using code below works fine for me here. Which is the exact problem do you have with it?
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
Steema.TeeChart.Styles.Area area = new Steema.TeeChart.Styles.Area(tChart1.Chart);
area.Brush.Color = Color.Red;
area.Brush.Transparency = 80;
area.AreaLines.Transparency = 90;
area.LinePen.Transparency = 90;
area.AreaLines.Color = Color.Red;
area.Transparency = 80;
area.AreaBrush.Transparency = 80;
area.Add(10);
area.Add(5);
area.Add(7);
area.Add();
area.Add(6);
area.Add(8);
area.Add(5);
area.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint;
}
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 Goran,
Yes, this works fine for me here using latest TeeChart for .NET v3 maintenance release.
Can you please check if this solves the problem at your end?
Thanks in advance.
Yes, this works fine for me here using latest TeeChart for .NET v3 maintenance release.
Can you please check if this solves the problem at your end?
Thanks in advance.
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 |