Series Format->Marks->Format question.

TeeChart for ActiveX, COM and ASP
Post Reply
TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Series Format->Marks->Format question.

Post by TonyVSUK » Thu Oct 14, 2010 1:20 pm

Hello,

I have a line series.

If you edit the series in the editor, select the "Marks" tab, then select "Format" there are options for "Colour", "Transparency", "Pattern" and "Transparent".

How do I access these in code? I cannot find the settings. I know it must be part of the "Marks" class, I just cannot figure out which settings.

Thanks in advance,

Tony.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Series Format->Marks->Format question.

Post by Sandra » Thu Oct 14, 2010 2:35 pm

Hello Tony,

If you want change Format of Marks to running time you need do next:

Transaprent property:

Code: Select all

 TCahrt1.Series(0).Marks.Transparent = True
Percentage of transparency

Code: Select all

TChart1.Series(0).Marks.Transparency = 50
Change Color of Marks:

Code: Select all

 TChart1.Series(0).Color = vbBlack
Change pattern of marks using brush propriety: In this one you are need assign for each mark its brush style, because at the moment isn't possible assign for all marks their style at once. I have added it in wish-list with number (TA05015209) to be considered as an enhancement for future releases.

Code: Select all

 Dim i As Integer
 For i = 0 To TChart1.Series(0).Count
  TCahrt1.Series(0).Marks.Item(i).Brush.Style = bsCross
 Next
I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Series Format->Marks->Format question.

Post by TonyVSUK » Thu Oct 14, 2010 3:16 pm

Sorry, hit submit instead of preview for this message.
Last edited by TonyVSUK on Thu Oct 14, 2010 3:21 pm, edited 1 time in total.

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Series Format->Marks->Format question.

Post by TonyVSUK » Thu Oct 14, 2010 3:21 pm

The transparent and transparency work ok. Thanks for those.

But I don't want to change the colour of the marks. The setting is the background colour of the surrounding box around the marks, its the background of the box that the mark is in (if that makes sense). I can change it using the editor, but I need to be able to do it in code.

If you look at the attached, the marks box has a colour white, pattern colour light blue and the pattern is "fill 80%".

Does that make sense?
Attachments
MarksBackground.jpg
MarksBackground.jpg (62.41 KiB) Viewed 7773 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Series Format->Marks->Format question.

Post by Sandra » Fri Oct 15, 2010 8:52 am

Hello Tony,

I fear its that this is a bug known of the brush object (TV52015167). I have increased its priority and we try to fix it for next maintenance releases.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply