Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Marker Interface

Represents a data marker displayed at each data point in the series on the line, scatter or radar chart.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

public interface Marker :
    ShapeFormat,
    ShapeFormatBase

The following members return Marker objects:

#Remarks

The Marker interface contains properties that allow you to specify the size (Marker.Size) and shape (Marker.Symbol) of data markers indicating each data point in the series.

#Example

The example below demonstrates how to create a line chart with custom data markers. To access the Marker object, use the Series.Marker property, and then specify the shape (Marker.Symbol) and size (Marker.Size) of markers displayed at each data point in the series.

View Example

Worksheet worksheet = workbook.Worksheets["chartTask5"];
workbook.Worksheets.ActiveWorksheet = worksheet;

// Create a chart and specify its location.
Chart chart = worksheet.Charts.Add(ChartType.Line, worksheet["B2:C8"]);
chart.TopLeftCell = worksheet.Cells["F2"];
chart.BottomRightCell = worksheet.Cells["L15"];

// Display markers and specify the marker style and size.
chart.Series[0].Marker.Symbol = MarkerStyle.Circle;
chart.Series[0].Marker.Size = 15;
// Hide the legend.
chart.Legend.Visible = false;
See Also