Angular 軸タイプ

    Ignite UI for Angular カテゴリ チャートは、IgxCategoryXAxisComponent および IgxNumericYAxisComponent タイプを 1 つだけ使用します。同様に、Ignite UI for Angular ファイナンシャル チャートは、IgxTimeXAxisComponent タイプと IgxNumericYAxisComponent タイプを 1 つだけ使用します。ただし、Ignite UI for Angular データ チャートは複数の軸タイプをサポートしており、軸の位置を設定してチャートの任意の側に配置したり、軸交差プロパティを使用してチャートの内部に配置したりできます。このトピックでは、相互に互換性のある軸とシリーズ、および固有の軸に対するいくつかの特定のプロパティについて、それぞれについて説明します。

    デカルト軸

    デカルト軸を持つ IgxDataChartComponent では 3 つのタイプの X 軸を使用して水平 (X 軸) および垂直 (X 軸) 方向にデータをプロットすることが可能です。 (IgxCategoryXAxisComponentIgxNumericXAxisComponent、および IgxTimeXAxisComponent) と 2 つのタイプの Y 軸 (IgxCategoryYAxisComponent および IgxNumericYAxisComponent)。

    カテゴリ X 軸

    IgxCategoryXAxisComponent は、そのデータを一連のカテゴリ データ項目として扱います。文字列や数値など、ほぼすべてのタイプのデータを表示できます。この軸に数値をプロットする場合、この軸は離散軸であり、連続ではないことに注意してください。これは、各カテゴリ データ項目がその前のデータ項目から等距離に配置されることを意味します。また、項目は軸のデータ ソースに表示される順序でプロットされます。

    IgxCategoryXAxisComponent では、データをプロットするために DataSourcelabel を提供する必要があります。通常、次のタイプの系列をプロットするために IgxNumericYAxisComponent と共に使用されます。

    カテゴリ シリーズ 積層型シリーズ ファイナンシャル シリーズ
    - IgxAreaSeriesComponent
    - IgxColumnSeriesComponent
    - IgxLineSeriesComponent
    - IgxPointSeriesComponent
    - IgxSplineSeriesComponent
    - IgxSplineAreaSeriesComponent
    - IgxStepLineSeriesComponent
    - IgxStepAreaSeriesComponent
    - IgxRangeAreaSeriesComponent
    - IgxRangeColumnSeriesComponent
    - IgxWaterfallSeriesComponent
    - IgxStackedAreaSeriesComponent
    - IgxStackedColumnSeriesComponent
    - IgxStackedLineSeriesComponent
    - IgxStackedSplineSeriesComponent
    - IgxStacked100AreaSeriesComponent
    - IgxStacked100ColumnSeriesComponent
    - IgxStacked100LineSeriesComponent
    - IgxStacked100SplineSeriesComponent



    - IgxFinancialPriceSeriesComponent
    - IgxBollingerBandsOverlayComponent
    - IgxForceIndexIndicatorComponent
    - IgxMedianPriceIndicatorComponent
    - IgxMassIndexIndicatorComponent
    - IgxRelativeStrengthIndexIndicatorComponent
    - IgxStandardDeviationIndicatorComponent
    - IgxTypicalPriceIndicatorComponent



    次の例は、上記のスタイル設定プロパティの使用法を示しています:

    カテゴリ Y 軸

    IgxCategoryYAxisComponent は、上記の IgxCategoryXAxisComponent と非常によく似た働きをしますが、水平ではなく垂直に配置されます。また、この軸では、データをプロットするために DataSourcelabel を提供する必要があります。IgxCategoryYAxisComponent は通常 IgxNumericXAxisComponent と組み合わせて次のタイプのシリーズをプロットするために使用されます。

    次の例は、IgxCategoryYAxisComponent タイプの使用法を示しています:

    数値 X 軸

    IgxNumericXAxisComponent は、そのデータを連続的に変化する数値データ項目として扱います。この軸のラベルは、X 軸に沿って水平に配置されます。IgxNumericXAxisComponent ラベルの位置は、IgxNumericYAxisComponent と組み合わせた場合にサポートされるさまざまな ScatterSeries (散布シリーズ) の XMemberPath プロパティに依存します。または、IgxCategoryXAxisComponent と組み合わせた場合、これらのラベルは、IgxBarSeriesComponentIgxStackedBarSeriesComponent、および IgxStacked100BarSeriesComponentValueMemberPath に対応して配置されます。

    IgxNumericXAxisComponent は、次のタイプのシリーズと互換性があります:

    次の例は、IgxNumericXAxisComponent の使用法を示しています:

    数値 Y 軸

    IgxNumericYAxisComponent は、そのデータを連続的に変化する数値データ項目として扱います。この軸のラベルは、Y 軸に沿って垂直に配置されます。IgxNumericYAxisComponent ラベルの位置は、IgxNumericXAxisComponent と組み合わせた場合にサポートされるさまざまな ScatterSeries (散布シリーズ) の YMemberPath プロパティに依存します。または、IgxCategoryYAxisComponent と組み合わせた場合、これらのラベルは、上記の表に記載されているカテゴリまたは積層シリーズの ValueMemberPath に対応して配置されます。財務シリーズのいずれかを使用している場合、Open/High/Low/Close のパスと使用しているシリーズ タイプに対応して配置されます。

    IgxNumericYAxisComponent は、次のタイプのシリーズと互換性があります:

    カテゴリ シリーズ 積層型シリーズ ファイナンシャル シリーズ 散布シリーズ
    - IgxAreaSeriesComponent
    - IgxColumnSeriesComponent
    - IgxLineSeriesComponent
    - IgxPointSeriesComponent
    - IgxSplineSeriesComponent
    - IgxSplineAreaSeriesComponent
    - IgxStepLineSeriesComponent
    - IgxStepAreaSeriesComponent
    - IgxRangeAreaSeriesComponent
    - IgxRangeColumnSeriesComponent
    - IgxWaterfallSeriesComponent
    - IgxStackedAreaSeriesComponent
    - IgxStackedColumnSeriesComponent
    - IgxStackedLineSeriesComponent
    - IgxStackedSplineSeriesComponent
    - IgxStacked100AreaSeriesComponent
    - IgxStacked100ColumnSeriesComponent
    - IgxStacked100LineSeriesComponent
    - IgxStacked100SplineSeriesComponent
    - IgxFinancialPriceSeriesComponent
    - IgxBollingerBandsOverlayComponent
    - IgxForceIndexIndicatorComponent
    - IgxMedianPriceIndicatorComponent
    - IgxMassIndexIndicatorComponent
    - IgxRelativeStrengthIndexIndicatorComponent
    - IgxStandardDeviationIndicatorComponent
    - IgxTypicalPriceIndicatorComponent
    - IgxBubbleSeriesComponent
    - IgxHighDensityScatterSeriesComponent
    - IgxScatterSeriesComponent
    - IgxScatterLineSeriesComponent
    - IgxScatterSplineSeriesComponent
    - IgxScatterAreaSeriesComponent
    - IgxScatterContourSeriesComponent
    - IgxScatterPolylineSeriesComponent
    - IgxScatterPolygonSeriesComponent

    次の例は、IgxNumericYAxisComponent の使用法を示しています:

    時間 X 軸

    IgxTimeXAxisComponent は、そのデータを、日付でソートされた一連のデータ項目として扱います。この軸タイプのラベルは日付であり、日付間隔に従ってフォーマットおよび配置できます。この軸の日付範囲は、DateTimeMemberPath を使用してマップされたデータ列の日付値によって決定されます。これは、DataSource とともに、この軸タイプでデータをプロットするために必要です。

    IgxTimeXAxisComponent は、IgxFinancialChartComponent コンポーネントの X 軸タイプです。

    時間 X 軸のブレーク

    IgxTimeXAxisComponent には、breaks (ブレーク) を使用してデータの間隔を除外するオプションがあります。その結果、ラベルとプロットされたデータは除外された間隔では表示されません。たとえば、勤務日/休業日、休日、週末などです。IgxTimeAxisBreakComponent のインスタンスを軸の Breaks コレクションに追加し、一意の startend、および interval を使用して構成できます。

    時間 X 軸の書式設定

    IgxTimeXAxisComponent には、IgxTimeAxisLabelFormatComponent オブジェクトのコレクションを表す LabelFormats プロパティがあります。コレクションに追加された各 IgxTimeAxisLabelFormatComponent は、一意の format (書式) と range (範囲) を割り当てる役割を果たします。これは、データを年からミリ秒にドリルダウンし、チャートに表示される時間の範囲に応じてラベルを調整する場合に特に役立ちます。

    IgxTimeAxisLabelFormatComponentformat プロパティは、特定の表示範囲に使用する形式を指定します。IgxTimeAxisLabelFormatComponentrange プロパティは、軸ラベルの形式が別の形式に切り替わる表示範囲を指定します。たとえば、範囲が 10 日と 5 時間に設定された 2 つの IgxTimeAxisLabelFormatComponent 要素がある場合、軸の表示範囲が 10 日未満になるとすぐに、5 時間形式に切り替わります。

    時間 X 軸の間隔

    IgxTimeXAxisComponent は、カテゴリ軸と数値軸の従来の interval プロパティを IgxTimeAxisIntervalComponent 型の Intervals コレクションに置き換えます。コレクションに追加された各 IgxTimeAxisIntervalComponent は、一意の intervalrange、および intervalType を割り当てる役割を果たします。これは、データを年単位からミリ秒単位にドリルダウンして、チャートに表示される時間の範囲に応じてラベル間に一意の間隔を設ける場合に特に役立ちます。これらのプロパティの説明は次のとおりです。

    • interval: 使用する間隔を指定します。intervalType プロパティに関連付けられています。たとえば、intervalTypeDays に設定されている場合、interval で指定される数値は日数になります。
    • range: 軸間隔が別の間隔に切り替わる可視範囲を指定します。たとえば、範囲が 10 日間および 5 時間に設定された 2 つの TimeAxisInterval がある場合、軸の表示範囲が 10 日間より短くなる際に 5 時間範囲の間隔に変更します。
    • intervalType: interval プロパティの時間単位を指定します。

    極座標軸

    極座標軸を持つ IgxDataChartComponent により、チャートの中心から外側 (半径軸) およびチャートの中心の周り (角度軸) にデータをプロットできます。

    カテゴリ角度軸

    IgxCategoryAngleAxisComponent は、そのデータを一連のカテゴリ データ項目として扱います。この軸のラベルは、その順序での位置に従って円の端に沿って配置されます。この軸のタイプでは、数字、文字列などのほぼすべてのデータのタイプを表示できます。

    IgxCategoryAngleAxisComponent は通常、ラジアル シリーズをプロットするために IgxNumericRadiusAxisComponent と共に使用されます。

    次の例は、IgxCategoryAngleAxisComponent タイプの使用法を示しています:

    比例カテゴリ角度軸

    IgxProportionalCategoryAngleAxisComponent は、そのデータを一連のカテゴリ データ項目として扱います。この軸のラベルは、シーケンス内の位置に応じて円の端に沿って配置されます。この軸の種類では、数字、文字列などのほぼすべてのデータのタイプを表示できます。

    IgxProportionalCategoryAngleAxisComponent は通常、IgxNumericRadiusAxisComponent と一緒に使用され、円チャートをプロットします (例: ラジアル シリーズ)。

    次の例は、IgxProportionalCategoryAngleAxisComponent タイプの使用方法を示しています。

    数字角度軸

    IgxNumericAngleAxisComponent は、そのデータを連続的に変化する数値データ項目として扱います。この軸領域のラベルは、円形プロットの中心から始まる半径線に沿って配置されます。IgxNumericAngleAxisComponent のラベルの位置は、極座標シリーズ オブジェクトの RadiusMemberPath プロパティまたはラジアル シリーズ オブジェクトの ValueMemberPath プロパティを使用してマップされたデータ列の値によって異なります。

    IgxNumericAngleAxisComponent は、IgxCategoryAngleAxisComponent と共に使用してラジアル シリーズをプロットするか、IgxNumericRadiusAxisComponent と共に使用して極座標シリーズをプロットすることができます。

    次の例は、IgxNumericAngleAxisComponent タイプの使用法を示しています:

    数字半径軸

    IgxNumericRadiusAxisComponent は、データを連続的に変化する数値データ項目として扱います。この軸のラベルは、円形プロットの周りに配置されます。ラベルの位置は、対応する極座標シリーズの AngleMemberPath プロパティを使用してマップされたデータ列の値によって異なります。

    IgxNumericRadiusAxisComponentIgxNumericRadiusAxisComponent と共に使用して、極座標シリーズをプロットできます。

    次の例は、IgxNumericRadiusAxisComponent タイプの使用法を示しています:

    その他のリソース

    関連するチャート機能の詳細については、次のトピックを参照してください: