HotXLS ドキュメント

TXLSXChartAxis class

Unit: lxHandleX
Chart axis descriptor (orientation, log base, gridlines, min/max, major/minor units, cross point, tick-label position, display units)

Description

Chart axis descriptor (orientation, log base, gridlines, min/max, major/minor units, cross point, tick-label position, display units) The class is part of the XLSX facade (

Declaration

type
  TXLSXChartAxis = class
    property Kind: TXLSXChartAxisKind;
    property Position: TXLSXChartAxisPosition;
    property AxisId: Integer;
    property CrossAxisId: Integer;
    property Visible: Boolean;
    property Title: WideString;
    property LogBase: Double;
    property Orientation: TXLSXChartAxisOrientation;
    property MajorGridlines: Boolean;
    property MinorGridlines: Boolean;
    property MinValue: Double;
    property MaxValue: Double;
    property MajorUnit: Double;
    property MinorUnit: Double;
    property MajorUnitSet: Boolean;
    property MinorUnitSet: Boolean;
    property CrossesAt: Double;
    property TickLblPos: WideString;
    property Crosses: TXLSXChartCrosses;
    property CrossesSet: Boolean;
    property MajorTickMark: TXLSXChartTickMark;
    property MinorTickMark: TXLSXChartTickMark;
    property DispUnits: Double;
    property ShowDispUnitsLabel: Boolean;
    property BaseTimeUnit: TXLSXChartTimeUnit;
    property MajorTimeUnit: TXLSXChartTimeUnit;
    property MinorTimeUnit: TXLSXChartTimeUnit;
    property BaseTimeUnitSet: Boolean;
    property MajorTimeUnitSet: Boolean;
    property MinorTimeUnitSet: Boolean;
    property AutoDateAxis: Boolean;
    property AutoDateAxisSet: Boolean;
    property NumberFormat: WideString;
    property NumberFormatSourceLinked: Boolean;
    property NumberFormatSet: Boolean;
    property LabelInterval: Integer;
    property TickMarkInterval: Integer;
    property NoMultiLevelLabels: Boolean;
    property TextStyle: TXLSXChartTextStyle;
    property TitleTextStyle: TXLSXChartTextStyle;
    property TitleLayout: TXLSXChartLayout;
    procedure Assign(Source: TXLSXChartAxis);
    procedure AssignClassicDateAxis(Source: TXLSChartAxis);
  end;

Properties

Kind軸の種類 — automatic、category、value、date、series のいずれか
Positionプロット領域内の軸の位置 — normal、low、high のいずれか
AxisId保存サイクルをまたいで維持される、安定した軸識別子
CrossAxisId交差する軸が交わる相手の軸の識別子
VisibleWhether the axis is rendered
TitleAxis title text
LogBase対数スケールの底。0 を指定すると線形になります
Orientation軸の方向 — normal または reversed
MajorGridlines主単位の間隔で主要目盛線を表示します
MinorGridlines補助単位の間隔で補助目盛線を表示します
MinValue固定の最小値。NaN で自動になります
MaxValue固定の最大値。NaN で自動になります
MajorUnit主要目盛線の間隔。0 で自動になります
MinorUnit補助目盛線の間隔。0 で自動になります
MajorUnitSet主単位の正の値が明示的に存在するかどうか
MinorUnitSet補助単位の正の値が明示的に存在するかどうか
CrossesAt交差軸が交わる位置の値。NaN で自動になります
TickLblPos目盛ラベルの位置 — 'nextTo'、'low'、'high'、'none' のいずれか
CrossesAxis crossing mode. Assigning Crosses emits <c:crosses val="..."/> が自動交差の代わりに出力されます。明示的な CrossesAt を設定していればそちらが優先されます (両方を設定するのは無効な OOXML で、 CrossesAt takes precedence)
CrossesSet交差モードが明示的に設定されているかどうか
MajorTickMark主要目盛線の交点に描かれる主目盛のスタイル
MinorTickMark補助目盛線の交点に描かれる補助目盛のスタイル
DispUnits表示単位の倍率 (10、100、1000 など) または組み込み単位。0 で無効
ShowDispUnitsLabel軸の横に表示単位ラベル ('Thousands'、'Millions' など) を表示します
BaseTimeUnit日付軸の基本時間単位。代入すると、たとえ既定値でも値は明示的に設定されたものとして扱われます。たとえば xlsxChartTimeDays
MajorTimeUnit日付軸の主時間単位。代入すると、値は明示的に設定されたものとして扱われます
MinorTimeUnit日付軸の補助時間単位。代入すると、値は明示的に設定されたものとして扱われます
BaseTimeUnitSetControls whether baseTimeUnit を出力するかどうかを制御します。False の場合は、明示的な日単位を書き出す代わりに、ソースで省略された要素がそのまま維持されます
MajorTimeUnitSetControls whether majorTimeUnit is emitted independently of MajorUnit
MinorTimeUnitSetControls whether minorTimeUnit is emitted independently of MinorUnit
AutoDateAxis日付軸の自動項目検出値を明示的に保持します
AutoDateAxisSetControls whether the date-axis auto element is emitted
NumberFormat軸ラベルに適用される表示形式。代入すると、その形式は明示的に設定されたものとして扱われます
NumberFormatSourceLinked軸ラベルの形式がソース データに従うかどうか。代入すると、その設定は明示的に扱われます
NumberFormatSetControls whether the ChartML numFmt element is emitted
LabelIntervalInterval between category labels
TickMarkInterval項目軸上の目盛の間隔
NoMultiLevelLabelsTrue ではリーフの項目レベルのみを表示し、項目軸の noMultiLvlLbl switch
TextStyleText style of the tick labels
TitleTextStyleText style of the axis title
TitleLayoutPosition and size of the axis title

Axis selection

xlsxAxisAutomatic は、通常のチャート グループでは項目軸を、散布図/バブルのグループでは値軸として選択します。 xlsxAxisDate を時間単位のプロパティと組み合わせてカレンダー スケーリングに使い、 xlsxAxisSeries for a three-dimensional depth axis
日付軸の単位値とその存在フラグは互いに独立しています。そのため、インポートしたファイルでは省略された要素がそのまま維持され、単位を代入するとその値が明示的に書き込まれます AssignClassicDateAxis は、有効なクラシック日付軸の設定をマッピングし、マスクされたフィールドや無効な生フィールドはソース モデルに残します。これにより、クラシック形式のロスレス ラウンドトリップが可能になります
単位や間隔が省略されている場合、描画時にはすべての表示系列を 1 回走査し、日/月/年のスケーリングを推測して、表示範囲、軸の幅、測定したテキスト、表示形式、回転から、適度な範囲内のラベル密度を選択します。主/補助のラベル、座標、目盛、目盛線は、得られた共有コレクションを使用します
NumberFormat and NumberFormatSourceLinked は、ChartML のラベル形式の状態を保持します。日付軸は、描画される目盛ラベルにその形式を使用します。また、 Orientation は、重複する日付を潰したり、まばらな日付を等間隔に並べ替えたりすることなく、目盛とデータの両方の座標を反転させます
項目軸は、軸に最も近いリーフ レベルから上位の親レベルへ向かって、階層化された系列キャッシュを描画します NoMultiLevelLabels ) and is reached through the owning workbook or worksheet; instances are not normally created directly by application code.

Properties

TextStyle formats tick labels, while TitleTextStyle が軸タイトルを書式設定します。どちらも、名前、サイズ、色、強調、回転の型付き設定を公開します。ChartML の正の回転値は時計回りを意味し、各出力バックエンドのネイティブ規約に変換されます
TitleLayout は、正規化された ChartML 座標で軸タイトルの位置とサイズを決めます。 SetPositionAndSize を使うと、4 つの値すべてを 1 つの Office 互換グループとして有効化し、設定できます

Methods

procedure Assign

See also