Skip to main content
All docs
V25.1
  • TdxChartLineSeriesPointDrawParameters.Appearance Property

    Provides access to the appearance settings of the line segment associated with the currently processed series point.

    Declaration

    property Appearance: TdxChartXYSeriesLineAppearance read;

    Property Value

    Type Description
    TdxChartXYSeriesLineAppearance

    Stores general line appearance settings for Line and Area series Views.

    Remarks

    Use MarkerAppearance and Appearance properties to customize the appearance of the point marker and line segment associated with the currently processed series point.

    Code Example: Customize Individual Series Points

    The following code example demonstrates a diagram’s OnGetSeriesPointDrawParameters event handler that changes the appearance settings of points with peak values in a Simple Line series.

    procedure TMyForm.cdLineGetSeriesPointDrawParameters(Sender: TdxChartCustomDiagram;
      AArgs: TdxChartGetSeriesPointDrawParametersEventArgs);
    var
      ALineDrawParameters: TdxChartLineSeriesPointDrawParameters;
      ASeries: TdxChartCustomSeries;
      AIndex: Integer;
    begin
      if AArgs.SeriesPoint.Series.Caption = 'Europe' then
      begin
        if AArgs.DrawParameters.ClassType <> TdxChartLineSeriesPointDrawParameters then Exit;
        ALineDrawParameters := AArgs.DrawParameters as TdxChartLineSeriesPointDrawParameters;
        AIndex := AArgs.SeriesPoint.Index;
        ASeries := AArgs.SeriesPoint.Series;
        if ((AIndex = 0) and (ASeries.Points.Values[AIndex] > ASeries.Points.Values[AIndex + 1])) or
           ((AIndex > 0) and (AIndex < ASeries.Points.Count - 1) and
           (ASeries.Points.Values[AIndex] > ASeries.Points.Values[AIndex + 1]) and
            (ASeries.Points.Values[AIndex] > ASeries.Points.Values[AIndex - 1])) then
        begin
          ALineDrawParameters.MarkerAppearance.FillOptions.Color := TdxAlphaColors.Red;
          ALineDrawParameters.Appearance.BeginUpdate;
          ALineDrawParameters.Appearance.StrokeOptions.Color := TdxAlphaColors.Red;
          ALineDrawParameters.Appearance.StrokeOptions.Style := TdxStrokeStyle.Solid;
          ALineDrawParameters.Appearance.EndUpdate;
        end;
      end;
    end;
    

    VCL Chart Control: A Custom Series Point in a Simple Line View

    See Also