Chartコントロールは、各系列にマーカーを表示することができます。マーカーは系列のMakerプロパティに設定します。

以下のサンプルコードは、実行時にMakerオブジェクトを作成し、それをSeriesオブジェクトのMarkerプロパティに割り当てる方法を示します。結果は上の図のようになります。
Visual Basic
    
        
            
                
                    | Visual Basicコード | 
                    
                         
                            コードのコピー
                         
                     | 
                
                
                    | 
                         ' マーカーオブジェクトを作成します。 
                        Dim marker1 As New GrapeCity.ActiveReports.Chart.Marker 
                         
                        ' マーカーのプロパティを設定します。 
                        marker1.Backdrop = New Chart.Graphics.Backdrop(Chart.Graphics.GradientType.Horizontal, Color.Navy, Color.Black) 
                        marker1.Line = New Chart.Graphics.Line(Color.White) 
                        marker1.Label = New Chart.LabelInfo(New Chart.Graphics.Line(Color.Transparent, 0, Chart.Graphics.LineStyle.None), _ 
                            New Chart.Graphics.Backdrop(Chart.Graphics.BackdropStyle.Transparent, Color.White, Color.White, _ 
                            Chart.Graphics.GradientType.Vertical, System.Drawing.Drawing2D.HatchStyle.DottedGrid, Nothing, _ 
                            Chart.Graphics.PicturePutStyle.Stretched), New Chart.FontInfo(Color.White, New Font("Arial", 8.0F)), _ 
                            "{Value}", Chart.Alignment.Center) 
                        marker1.Size = 24 
                        marker1.Style = Chart.MarkerStyle.Diamond 
                         
                        ' マーカーを系列のMarkerプロパティに割り当てます。 
                        Me.ChartControl1.Series(0).Marker = marker1 
                     | 
                
            
        
     
 
C#
    
        
            
                
                    | C#コード | 
                    
                         
                            コードのコピー
                         
                     | 
                
                
                    | 
                         // マーカーオブジェクトを作成します。 
                        GrapeCity.ActiveReports.Chart.Marker marker1 = new GrapeCity.ActiveReports.Chart.Marker(); 
                         
                        // マーカーのプロパティを設定します。 
                        marker1.Backdrop = new GrapeCity.ActiveReports.Chart.Graphics.Backdrop( 
                            GrapeCity.ActiveReports.Chart.Graphics.GradientType.Horizontal, System.Drawing.Color.Navy, 
                            System.Drawing.Color.Black); 
                        marker1.Line = new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.White); 
                        marker1.Label = new GrapeCity.ActiveReports.Chart.LabelInfo( 
                            new GrapeCity.ActiveReports.Chart.Graphics.Line(System.Drawing.Color.Transparent, 0, 
                            GrapeCity.ActiveReports.Chart.Graphics.LineStyle.None), 
                            new GrapeCity.ActiveReports.Chart.Graphics.Backdrop( GrapeCity.ActiveReports.Chart.Graphics.BackdropStyle.Transparent, 
                            System.Drawing.Color.White, System.Drawing.Color.White, GrapeCity.ActiveReports.Chart.Graphics.GradientType.Vertical, 
                            System.Drawing.Drawing2D.HatchStyle.DottedGrid, null, GrapeCity.ActiveReports.Chart.Graphics.PicturePutStyle.Stretched), 
                            new GrapeCity.ActiveReports.Chart.FontInfo(System.Drawing.Color.White, new System.Drawing.Font("Arial", 8F)), "{Value}", 
                            GrapeCity.ActiveReports.Chart.Alignment.Center); 
                         
                        marker1.Size = 24; 
                        marker1.Style = GrapeCity.ActiveReports.Chart.MarkerStyle.Diamond; 
                         
                        // マーカーを系列のMarkerプロパティに割り当てます。 
                        this.chartControl1.Series[0].Marker = marker1; 
                     |