HotXLS BelgeleriİçindekilerXLSX FacadeAna sayfaİçindekilerTXLSXWorksheet

TXLSXChart and TXLSXCharts classes

TXLSXCharts is the embedded-chart collection exposed by TXLSXWorksheet.Charts and TXLSXChart owns the chart placement, axes and series

Declarations

function TXLSXCharts.Add: TXLSXChart; overload; function TXLSXCharts.Add(AChartType: TXLSXChartType; const ATitle: WideString; AFromRow, AFromCol, AToRow, AToCol: Integer): TXLSXChart; overload; function TXLSXChart.AddSeries(const AName, ACategories, AValues: WideString): TXLSXChartSeries; procedure TXLSXChart.ClearSeries; property TXLSXChart.ChartType: TXLSXChartType; property TXLSXChart.CategoryAxis, ValueAxis: TXLSXChartAxis; property TXLSXChart.Series[Index: Integer]: TXLSXChartSeries;

Chart üyeleri

Title, CategoryAxisTitle and ValueAxisTitleChart and axis caption textFromRow, FromCol, ToRow and ToColOne-based worksheet anchor rectangleCategoryAxis and ValueAxisAxis formatting and scaling objectsShowDataTable and ShowDataTableKeysData-table display controlsHasUpDownBars, UpDownGapWidth and HasHiLowLinesLine and stock chart display controlsRotation3DX, Rotation3DY, Elevation3D, Perspective3D and RightAngleAxes3DThree-dimensional chart view controls

Series, trendlines and error bars

function TXLSXChartSeries.AddTrendline(AType: TXLSXChartTrendlineType): TXLSXChartTrendline; function TXLSXChartSeries.AddErrorBar(ADir: TXLSXChartErrDir): TXLSXChartErrBar; property TXLSXChartSeries.Trendlines[Index: Integer]: TXLSXChartTrendline; property TXLSXChartSeries.ErrBarX, ErrBarY: TXLSXChartErrBar; property TXLSXChartTrendline.TrendlineType: TXLSXChartTrendlineType; property TXLSXChartTrendline.DispEq, DispRSqr: Boolean; property TXLSXChartTrendline.Order, Period: Integer; property TXLSXChartErrBar.ValueType: TXLSXChartErrValType; property TXLSXChartErrBar.Value, PlusValue, MinusValue: Double; TrendlineTypeLinear, exponential, logarithmic, polynomial, power or moving-average trendlineDispEq and DispRSqrShows the equation and R-squared value on the chartOrder and PeriodPolynomial order or moving-average period for the corresponding trendline typeValueTypeFixed, percentage, standard-deviation, standard-error or custom error magnitudeNoEndCapHides the cap at either end of an error bar

Axis and data-label üyeleri

LogBase and OrientationLogarithmic scale base and normal or reversed axis orderingMajorGridlines and MinorGridlinesGridline visibility controlsMinValue, MaxValue, MajorUnit and MinorUnitExplicit scaling bounds and tick spacing where supportedCrossesAt, TickLblPos and DispUnitsAxis crossing position, label placement and display unitsShowValue, ShowCategoryName, ShowSeriesName, ShowLegendKey, ShowPercent and ShowBubbleSizePer-series data-label componentsSeparatorText used between multiple displayed data-label components

Örnek

var Chart: TXLSXChart; begin Chart := Sheet.Charts.Add(xlsxChartColumn, 'Monthly sales', 2, 5, 18, 12); Chart.AddSeries('Sales', 'Sheet1!$A$2:$A$13', 'Sheet1!$B$2:$B$13'); Chart.ValueAxisTitle := 'Amount'; Chart.Series[0].AddTrendline(xlsxTrendLinear).DispRSqr := True; Chart.Series[0].ShowValue := True; end;

Ayrıca bkz.

Copyright © 2010-2026 losLab Software