User (Legacy) Posted November 7, 2000 Report Share Posted November 7, 2000 Steve, Here's a way to annotate your chart using VB. Make sure you set a reference to the Annotation Extension. Private Sub Form_Load() Dim obj As ChartFX Dim AnnotX As AnnotationX Dim c As AnnCircle Dim i As Integer, j As Integer Dim strAttach As String 'set reference to chart object on the form Set obj = Me.ChartFX1.Object 'instanciate the annotation object Set AnnotX = New AnnotationX 'turn off toolbar (unless you want it on) Annotx.Toolbar = False 'add AnnotX to chart obj obj.AddExtension AnnotX 'add an annotation circle Set c = AnnotX.Add(OBJECT_TYPE_CIRCLE) 'turn off series point markers obj.MarkerShape = MK_NONE 'pick you point to mark i = 0 'series j = 7 'point index 'size the circle c.Width = 10 c.Height = 10 'set attach coordinates strAttach = CStr(j + 1) & "," & CStr(obj.ValueEx(i, j)) c.Attach ATTACH_CENTER, CStr(strAttach) 'what good is it without color c.BkColor = obj.Series(i).Color 'back color c.Color = obj.Series(i).Color 'border color Set c = Nothing Set obj = Nothing End Sub Steve Steve Schreiner (VBLogic, Inc.) <steve@vblogic.com> wrote in message news:2#$JnEQSAHA.2944@sfxserver.softwarefx.com... > For a particular series, I want a marker to appear only on a particular > point in the series (ie point 8 0f 10), how can I do this? I tried setting > the marker step to occur on the 8th point, but a marker always appears on > the very last point of the series. Is there any way to turn off the last > marker in the series? > > Thanks, > Steve > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.