Chart Data Markers

Fully implemented BCGControlBar Pro (MFC)

Fully implemented BCGSuite (MFC)

Not available BCGControlBar for .NET

Data marker formatting includes the following customizable elements:

  • Visibility
  • Fill color
  • Line color, width, and stroke style
  • Shape
  • Size

Currently, data markers have the following predefined shapes:

  • Circle
  • Box
  • Triangle
  • Diamond
  • Pentagon
  • Hexagon
  • Star
  • Rhombus
  • Cross

You can customize data marker appearance, including shape, size, and visibility, for each data point separately.

By overriding some virtual methods in the chart control, you can completely replace the default data marker appearance.

Chart Data Markers

Sample code:

CBCGPChartVisualObject chart;
CBCGPChartSeries* pSeries1 = chart.CreateSeries(_T("Series 1"));
....

// Change marker shapes:
pSeries1->SetMarkerShape(BCGPChartMarkerOptions::MS_CIRCLE, 0);
pSeries1->SetMarkerShape(BCGPChartMarkerOptions::MS_TRIANGLE, 1);
pSeries1->SetMarkerShape(BCGPChartMarkerOptions::MS_RECTANGLE, 2);
pSeries1->SetMarkerShape(BCGPChartMarkerOptions::MS_RHOMBUS, 3);

// 3-rd marker is red:
pSeries1->SetMarkerFill(CBCGPBrush(CBCGPColor::Red), 2);