Hi,
I'm using bollinger function and i want set different color for upper and lower lines, but after call CheckDataSource function that lines has one color - series color.Is it possible to set individual color for line ?
Bollinger function...
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Denis,
Yes, you can do something like this:
Yes, you can do something like this:
Code: Select all
Private Sub Form_Load()
'Bar Series
TChart1.Series(0).FillSampleValues 10
'Bollinger Bands
TChart1.Series(1).Color = vbRed
TChart1.Series(2).Color = vbBlue
End Sub
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 Denis,
Could you please send us a simple example we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
Thanks in advance.
Could you please send us a simple example we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Denis,
Thank you very much for the example. I could reproduce the problem here and added it (TV52011866) to our defect list to be fixed for future releases.
In the meantime, a workaround is setting the color again after executing CheckDataSource:
Thank you very much for the example. I could reproduce the problem here and added it (TV52011866) to our defect list to be fixed for future releases.
In the meantime, a workaround is setting the color again after executing CheckDataSource:
Code: Select all
private void _btnSetColor_Click(object sender, System.EventArgs e)
{
SetBollingerColor();
}
private void SetBollingerColor()
{
_axTChart1.Series(1).Color = (uint)ColorTranslator.ToOle(Color.Red);
_axTChart1.Series(2).Color = (uint)ColorTranslator.ToOle(Color.Blue);
}
private void _btnCheckDataSource_Click(object sender, System.EventArgs e)
{
_axTChart1.Series(1).CheckDataSource();
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 |