Tee Chart Annotations
Posted: Tue Dec 28, 2010 1:50 pm
Hi,
I have two graphs, one that depends on the left axis and the other on right axis and I would like to see simultaneously the coordinates of the two graphs on the respective axes on mouse move.
The problem is that I can not display the coordinates on the right axis (see attachment).
Here the code i used to add the annotations on the y-axis and x-axis :
I have two graphs, one that depends on the left axis and the other on right axis and I would like to see simultaneously the coordinates of the two graphs on the respective axes on mouse move.
The problem is that I can not display the coordinates on the right axis (see attachment).
Here the code i used to add the annotations on the y-axis and x-axis :
Code: Select all
.Tools.Add(TeeChart.EToolClass.tcCursor)
.Tools.Items(.Tools.Count - 1).asTeeCursor.FollowMouse = True
.Tools.Items(.Tools.Count - 1).asTeeCursor.Style = TeeChart.ECursorToolStyle.cssVertical
.Tools.Items(.Tools.Count - 1).asTeeCursor.Pen.Visible = False
.Tools.Add(TeeChart.EToolClass.tcAnnotate) 'one annotation for each series
.Tools.Items(.Tools.Count - 1).asAnnotation.Shape.Color = RGB(255, 255, 255)
.Tools.Items(.Tools.Count - 1).asAnnotation.Shape.Font.Color = .Series(IntSerie).Color
.Tools.Items(.Tools.Count - 1).asAnnotation.Shape.CustomPosition = True
.Tools.Items(.Tools.Count - 1).asAnnotation.Shape.Shadow.Visible = False
.Tools.Add(TeeChart.EToolClass.tcAnnotate) 'one annotation for X values.
.Tools.Items(.Tools.Count - 1).asAnnotation.Shape.Color = RGB(255, 255, 255)
.Tools.Items(.Tools.Count - 1).asAnnotation.Shape.CustomPosition = True
.Tools.Items(.Tools.Count - 1).asAnnotation.Shape.Shadow.Visible = False