questions about ErrorBar Series

TeeChart for ActiveX, COM and ASP
Post Reply
Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

questions about ErrorBar Series

Post by Seth » Tue Jan 05, 2010 5:41 am

We are being used Teechart 7.0.1.4 ActiveX and development language is Viual C++ 6.0

There are three kinds of questions about ErrorBar Series

1. MarkText is Masked behind bar

2. How to express from Error bars'T' now to '|'

Please see the attached image file. how to express the same form like chart in excel

Image

3. Is it possible to debug error which MarkTip menu is not displayed on IE ?
( It successed in TeeChart6.0 but failed in TeeChart7.0)

please answer above questions

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: questions about ErrorBar Series

Post by Yeray » Tue Jan 05, 2010 11:21 am

Hi Seth,
Seth wrote:1. MarkText is Masked behind bar
That happens because of the order of drawing. If you want the marks to be drawn on the top of everything, you should draw them by yourself directly to the canvas as in the following example:

Code: Select all

Private Sub Form_Load()  
  TChart1.Aspect.View3D = False
  
  Dim i As Integer
  For i = 0 To 2
    TChart1.AddSeries scErrorBar
    TChart1.Series(i).asErrorBar.AddErrorBar 0, (((i + 1) Mod 2) + 1) * 1000, 200, "", clTeeColor
    TChart1.Series(i).asErrorBar.AddErrorBar 1, (((i + 1) Mod 2) + 1) * 1000, 200, "", clTeeColor
    TChart1.Series(i).asErrorBar.AddErrorBar 2, (((i + 1) Mod 2) + 1) * 1000, 200, "", clTeeColor
    'TChart1.Series(i).Marks.Visible = True
    'TChart1.Series(i).Marks.Font.Size = 20
  Next i
  
  TChart1.Axis.Left.MaximumOffset = 50
End Sub

Private Sub TChart1_OnAfterDraw()
  Dim i, j, XPos, YPos As Integer
  For i = 0 To 2
    For j = 0 To TChart1.Series(i).Count - 1
      TChart1.Canvas.Font.Size = 20
      XPos = TChart1.Series(i).CalcXPos(j) - (TChart1.Canvas.TextWidth(Str$(TChart1.Series(i).YValues.Value(j))) / 5)
      YPos = TChart1.Series(i).CalcYPos(j) - TChart1.Canvas.TextHeight(Str$(TChart1.Series(i).YValues.Value(j)))
      TChart1.Canvas.TextOut XPos, YPos, Str$(TChart1.Series(i).YValues.Value(j))
    Next j
  Next i
End Sub
Seth wrote:2. How to express from Error bars'T' now to '|'
This is possible in VCL but not yet in ActiveX. I've added it to the wish list to be implemented in future releases (TA05014618).
Seth wrote:3. Is it possible to debug error which MarkTip menu is not displayed on IE ?
I'm not sure too understand what are you exactly trying to do here. Could you please send us a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: questions about ErrorBar Series

Post by Seth » Fri Jan 08, 2010 4:56 am

Q: 3. Is it possible to debug error which MarkTip menu is not displayed on IE ?
A: I'm not sure too understand what are you exactly trying to do here. Could you please send us a simple example project we can run as-is to reproduce the problem here?

So, I'll show you an example.

1. You can execute this url. http://211.215.58.66/report/ymhl/teechart7cab.htm
2. Click Add a Series and fill values
3. Click Show TeeChart Editor dialog
4. Select Tools->Add->Mark Tips
5. Click or Move the mouse, You can't see Mark ToolTip

This problem occurs only on IE. In other Application ,such as VB or VC, it doesn't occur.

Can this problem be fixed?
If not, do you have other ways?

Test this problem, And answer soon please.

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: questions about ErrorBar Series

Post by Yeray » Fri Jan 08, 2010 2:48 pm

Hi Seth,

Is it happening in IE7/IE8? Take a look at this thread
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: questions about ErrorBar Series

Post by Seth » Wed Jan 13, 2010 7:22 am

I already looked into that thread.

In that article
For display Mark-Tip in IE7 or IE8, Do we have to use annotation in script?
ex) TChart1.Tools.Items(0).asAnnotation.Left = X

But we want to display Mark-Tips in Click Editor dialog->Tools->Add->Mark Tips .
Can't we do that?

Please Check our sample again, and answer as soon as possible.

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: questions about ErrorBar Series

Post by Yeray » Wed Jan 13, 2010 12:11 pm

Hi Seth,

Yes, there are some problems with MarkTips tool and IE7 and IE8. As Narcís suggested in the thread mentioned above, you can use Annotation tool instead of MarkTips.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: questions about ErrorBar Series

Post by Seth » Thu Jan 14, 2010 2:06 am

Thank you for your answer.

We have to Annotation for displaying Mark-Tip.

Our product is developed in VC++.
So, we need some samples using VC++.

Please send them to my e-mail.
I'll be waiting for your favor.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: questions about ErrorBar Series

Post by Narcís » Thu Jan 14, 2010 8:52 am

Hi Seth,
We have to Annotation for displaying Mark-Tip.
This issue was for web applications, not for desktop applications.
Our product is developed in VC++.
So, we need some samples using VC++.
For VC++ samples please look at Tutorial 15 - MS VC++ Applications and the examples included with the installation at C:\Program Files\Steema Software\TeeChart Pro v8 ActiveX Control\Examples\Visual C++ (Default English installations path).

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: questions about ErrorBar Series

Post by Seth » Tue Jan 19, 2010 5:47 am

Hi, Narcís.

I got your answer, but I don't want to this samples.

I need some examples for displaying Mark-Tips in VC++.
So, I'll ask you a favor again.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: questions about ErrorBar Series

Post by Narcís » Tue Jan 19, 2010 12:06 pm

Hi Seth,

You just need to do this in VC++:

Code: Select all

	m_Chart1.GetTools().Add(tcMarksTip);
or:

Code: Select all

	m_Chart1.GetTools().Add(8);
For its properties, component architecture in VC++ is the same as it's in VB6.
Best Regards,
Narcís Calvet / 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

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: questions about ErrorBar Series

Post by Seth » Wed Jan 27, 2010 7:54 am

Hello,

I have a another question for you.

In First Paragh, my question
: 2. How to express from Error bars'T' now to '|'

Your answer is :
This is possible in VCL but not yet in ActiveX. I've added it to the wish list to be implemented in future releases (TA05014618).
So, I wonder about a schedule that you'll this function.
Is it TeeChart version 7.0 or after version 8.0?

I'll waiting your answer soon.

Thank you.

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: questions about ErrorBar Series

Post by Yeray » Wed Jan 27, 2010 11:26 am

Hi Seth,

I can't tell you a date for the next TeeChart ActiveX maintenance release and I can't even assure you that this feature will be included on it but I don't think that it will be a v7 new feature.
I recommend you to be aware at this forum or subscribe to our RSS news feed for new release announcements and what's implemented on them.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply