BoxPlot

推奨

- 推奨フィールド構成: 1個の指標、1個の次元

- データリシェイプをサポート: 少なくとも 1個の指標、0個の次元

エンコードマッピング

箱ひげ図は以下の視覚チャネルをサポートします:

xAxis : X軸チャネル、複数の次元をサポートし、次元値に基づいてX軸へマッピングします

yAxis : Y軸チャネル、複数の指標をサポートし、指標値に基づいてY軸へマッピングします

color : 色チャネル、複数の次元または1つの指標をサポートします。次元の色はデータ系列の区別に使い、指標の色は値をマーク色へ線形マッピングします

tooltip: ツールチップチャネル、複数の次元複数の指標をサポートし、データ点にマウスを合わせたときに表示されます

label : ラベルチャネル、複数の次元複数の指標をサポートし、データ点にデータラベルを表示します

説明

箱ひげ図はデータ分布の表示に適しています。X軸はカテゴリ軸(分類データ)、Y軸は数値軸(連続データ)で、箱は縦方向に配置されます。

適用シーン:

- データ項目名が短い場合

- 異なるカテゴリ間の数値を直感的に比較する必要がある場合

- 時系列データの変化傾向を表示する場合

Warning

データ要件:

- 少なくとも1つの数値フィールド(指標)

- 最初の次元はX軸に配置されます。残りの次元は指標名(複数指標が存在する場合)と結合され、凡例項目として表示されます。

- すべての指標は自動的に1つの指標へ統合されます

デフォルトで有効な機能:

- 凡例、軸、データラベル、ツールチップがデフォルトで有効です。

chartType

Type: "boxPlot"

説明

箱ひげ図はデータ分布の表示に適しています。X軸はカテゴリ軸(分類データ)、Y軸は数値軸(連続データ)で、箱は縦方向に配置されます。

'boxPlot'

dataset

Type: Record[]

説明

TidyData 仕様に準拠した集計済みデータセットで、チャートのデータソースと構造を定義します。ユーザー入力データセットは事前処理不要です。VSeed の強力なデータリシェイプ機能が自動的に整形を行います。箱ひげ図のデータは最終的に2つの次元と1つの指標に変換されます。

[{category:'A', value:100}, {category:'B', value:200}]

dimensions

Type: BoxPlotDimension[] | undefined

説明

箱ひげ図の最初の次元はX軸にマッピングされます。残りの次元は指標名(複数指標が存在する場合)と結合され、凡例項目として表示されます。

[{id: "category", alias: "Category"}]

id

Type: string

説明

次元に対応するフィールドID

alias

Type: string | undefined

説明

次元の別名

timeFormat

Type: TimeFormat | undefined

説明

次元の日付フォーマット設定

type

Type: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second"

説明

時間粒度。日付の表示精度を決定します

encoding

Type: "xAxis" | "color" | "tooltip" | "label" | "row" | "column" | undefined

説明

次元をマッピングするチャネル

- xAxis: 複数の次元をX軸にマッピングできます

- color: 複数の次元を色チャネルにマッピングできます

- tooltip: 複数の次元をツールチップチャネルにマッピングできます

- label: 複数の次元をラベルチャネルにマッピングできます

- row: 複数の次元を行チャネルにマッピングできます

- column: 複数の次元を列チャネルにマッピングできます

measures

Type: BoxPlotMeasure[] | undefined

説明

箱ひげ図のすべての指標は自動的に1つの指標に統合され、Y軸へマッピングされます。複数指標が存在する場合、指標名は残りの次元と結合されて凡例項目として表示されます。

[{id: "value", alias: "Value"}]

id

Type: string

説明

指標ID。重複できません

alias

Type: string | undefined

説明

指標の別名。重複可能です。未設定の場合、alias は id になります

autoFormat

Type: boolean | undefined

説明

数値の自動フォーマット。デフォルトで有効で、最優先です

autoFormat=true の場合、numFormat のすべての設定を上書きします

有効にすると、チャートのデータラベルとツールチップは指標値と言語環境に応じて適切なフォーマットを自動選択します

フォーマット規則: 10進数値で compact notation を有効にし、小数部は最小0桁、最大2桁、自動丸めを行い、ブラウザの Intl.NumberFormat 実装を使用します

例:

- locale=zh-CN: 749740.264 → 74.45万

- locale=en-US: 749740.264 → 744.5K

numFormat

Type: NumFormat | undefined

説明

指標のカスタム数値フォーマット。label と tooltip に自動適用されます

注意: カスタムフォーマットを使うには autoFormat=false を明示する必要があります。そうしないと autoFormat がこの設定を上書きします

type

Type: "number" | "percent" | "permille" | "scientific" | undefined

説明

数値フォーマットのタイプ。number(10進数)、percent(%)、permille(‰)、scientific(科学表記)に対応します

ratio

Type: number | undefined

説明

数値フォーマットの倍率。0にはできません

- 100000 は 10万 に変換, ratio:10000, symbol:"万" - 100000 は 10K に変換, ratio:1000, symbol:"K"

symbol

Type: string | undefined

説明

数値フォーマットの記号。例: %, ‰

- 100000 は 10万 に変換, ratio:10000, symbol:"万" - 100000 は 10K に変換, ratio:1000, symbol:"K"

thousandSeparator

Type: boolean | undefined

説明

数値フォーマットの桁区切り

suffix

Type: string | undefined

説明

数値フォーマットの接尾辞

prefix

Type: string | undefined

説明

数値フォーマットの接頭辞

fractionDigits

Type: number | undefined

説明

数値フォーマットの小数桁数。ブラウザの Intl.NumberFormat の minimumFractionDigits と maximumFractionDigits を使用します。significantDigits より優先度は低くなります

- 1234.5678 は 1235 に変換されます。fractionDigits:0 (roundingMode:halfCeil) - 1234.5678 は 1234.6 に変換されます。fractionDigits:1 (roundingMode:halfCeil) - 1234.5678 は 1234.57 に変換されます。fractionDigits:2 (roundingMode:halfCeil) - 1234.5678 は 1230.568 に変換されます。fractionDigits:3 (roundingMode:halfCeil) - 1234.5678 は 1234.5678 に変換されます。fractionDigits:4 (roundingMode:halfCeil) - 1234.5678 は 1234.56780 に変換されます。fractionDigits:5 (roundingMode:halfCeil)

significantDigits

Type: number | undefined

説明

数値フォーマットの有効数字。ブラウザの Intl.NumberFormat の minimumSignificantDigits と maximumSignificantDigits を使用します。fractionDigits より優先度が高くなります

- 1234.5678 は 1000 に変換されます。significantDigits:1 - 1234.5678 は 1200 に変換されます。significantDigits:2 - 1234.5678 は 1230 に変換されます。significantDigits:3 - 1234.5678 は 1234 に変換されます。significantDigits:4 - 1234.5678 は 1234.6 に変換されます。significantDigits:5 (roundingMode:halfCeil) - 1234.5678 は 1234.57 に変換されます。significantDigits:6 (roundingMode:halfCeil) - 1234.5678 は 1234.568 に変換されます。significantDigits:7 (roundingMode:halfCeil) - 1234.5678 は 1234.5678 に変換されます。significantDigits:8 (roundingMode:halfCeil)

roundingPriority

Type: "morePrecision" | "lessPrecision" | undefined

説明

significantDigits と fractionDigits の両方が設定された場合の数値フォーマットの丸め優先度。ブラウザの Intl.NumberFormat を使用し、Intl.NumberFormat の roundingPriority と同じ規則に従います

- 1234.5678 は 1230 に変換されます。significantDigits:3 (roundingPriority:lessPrecision) - 1234.5678 は 1234.5678 に変換されます。significantDigits:3 (roundingPriority:morePrecision)

roundingMode

Type: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined

説明

数値フォーマットの丸めモード。ブラウザの Intl.NumberFormat を使用し、Intl.NumberFormat の roundingMode と同じ規則に従います

format

Type: NumFormat | undefined

type

Type: "number" | "percent" | "permille" | "scientific" | undefined

説明

数値フォーマットのタイプ。number(10進数)、percent(%)、permille(‰)、scientific(科学表記)に対応します

ratio

Type: number | undefined

説明

数値フォーマットの倍率。0にはできません

- 100000 は 10万 に変換, ratio:10000, symbol:"万" - 100000 は 10K に変換, ratio:1000, symbol:"K"

symbol

Type: string | undefined

説明

数値フォーマットの記号。例: %, ‰

- 100000 は 10万 に変換, ratio:10000, symbol:"万" - 100000 は 10K に変換, ratio:1000, symbol:"K"

thousandSeparator

Type: boolean | undefined

説明

数値フォーマットの桁区切り

suffix

Type: string | undefined

説明

数値フォーマットの接尾辞

prefix

Type: string | undefined

説明

数値フォーマットの接頭辞

fractionDigits

Type: number | undefined

説明

数値フォーマットの小数桁数。ブラウザの Intl.NumberFormat の minimumFractionDigits と maximumFractionDigits を使用します。significantDigits より優先度は低くなります

- 1234.5678 は 1235 に変換されます。fractionDigits:0 (roundingMode:halfCeil) - 1234.5678 は 1234.6 に変換されます。fractionDigits:1 (roundingMode:halfCeil) - 1234.5678 は 1234.57 に変換されます。fractionDigits:2 (roundingMode:halfCeil) - 1234.5678 は 1230.568 に変換されます。fractionDigits:3 (roundingMode:halfCeil) - 1234.5678 は 1234.5678 に変換されます。fractionDigits:4 (roundingMode:halfCeil) - 1234.5678 は 1234.56780 に変換されます。fractionDigits:5 (roundingMode:halfCeil)

significantDigits

Type: number | undefined

説明

数値フォーマットの有効数字。ブラウザの Intl.NumberFormat の minimumSignificantDigits と maximumSignificantDigits を使用します。fractionDigits より優先度が高くなります

- 1234.5678 は 1000 に変換されます。significantDigits:1 - 1234.5678 は 1200 に変換されます。significantDigits:2 - 1234.5678 は 1230 に変換されます。significantDigits:3 - 1234.5678 は 1234 に変換されます。significantDigits:4 - 1234.5678 は 1234.6 に変換されます。significantDigits:5 (roundingMode:halfCeil) - 1234.5678 は 1234.57 に変換されます。significantDigits:6 (roundingMode:halfCeil) - 1234.5678 は 1234.568 に変換されます。significantDigits:7 (roundingMode:halfCeil) - 1234.5678 は 1234.5678 に変換されます。significantDigits:8 (roundingMode:halfCeil)

roundingPriority

Type: "morePrecision" | "lessPrecision" | undefined

説明

significantDigits と fractionDigits の両方が設定された場合の数値フォーマットの丸め優先度。ブラウザの Intl.NumberFormat を使用し、Intl.NumberFormat の roundingPriority と同じ規則に従います

- 1234.5678 は 1230 に変換されます。significantDigits:3 (roundingPriority:lessPrecision) - 1234.5678 は 1234.5678 に変換されます。significantDigits:3 (roundingPriority:morePrecision)

roundingMode

Type: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined

説明

数値フォーマットの丸めモード。ブラウザの Intl.NumberFormat を使用し、Intl.NumberFormat の roundingMode と同じ規則に従います

encoding

Type: "value" | "color" | "tooltip" | "label" | "q1" | "median" | "q3" | "min" | "max" | "outliers" | undefined

説明

指標をマッピングするチャネル

- value: 離散値に対応する指標。箱ひげ図の表示に使う統計値を計算するために使用します

- q1: 統計値の25パーセンタイルに対応する指標マッピング

- q3: 統計値の75パーセンタイルに対応する指標マッピング

- min: ひげの最小値に対応する指標マッピング

- max: ひげの最大値に対応する指標マッピング

- meadian: 統計値の中央値に対応する指標マッピング

- outliers: 外れ値に対応する指標マッピング

- detail: 詳細チャネルにマッピングされる指標

- color: 色チャネルにマッピングされる指標

- label: label チャネルにマッピングされる指標

- tooltip: tooltip チャネルにマッピングされる指標

parentId

Type: string | undefined

説明

フラットな指標設定形式でツリー状の指標グループを構築します。parentId は親指標グループの id を指し、指標ツリーの構築に使います

Tip

指標ツリーの設定方法は2つあります。方法1は children を持つ指標ツリーを直接設定すること、方法2は parentId を持つフラットな指標リストを設定することです。この2つは同時に使用できません

page

Type: Page | undefined

説明

ページネーション設定。ページネーションに使用するフィールド名を指定します。このフィールドは次元である必要があります。

field

Type: string

説明

ページネーションフィールド。ページネーションに使うフィールド名を指定します。必ず次元である必要があります

currentValue

Type: string

説明

現在のページネーション値。現在のページを判定するための値を指定します

'2023-01-01'

backgroundColor

Type: BackgroundColor

説明

チャートの背景色。色文字列を指定でき、デフォルトは透明背景です。例: 'red'、'blue'。hex、rgb、rgba(例: '#ff0000'、'rgba(255,0,0,0.5)')も指定できます。

color

Type: Color | undefined

説明

チャートの配色を定義する色設定。色リスト、色マッピング、カラーグラデーションを含みます。

colorScheme

Type: string[] | undefined

説明

チャート内の異なる要素の色を定義する離散カラースキーム

['#FFCDD2,#F8BBD0,#E1BEE7,#D1C4E9,#C5CAE9,#BBDEFB,#B3E5FC,#B2EBF2,#B2DFDB,#C8E6C9,#DCEDC8,#F0F4C3,#FFF9C4,#FFECB3,#FFE0B2']

linearColorScheme

Type: string[] | undefined

説明

チャート内の異なる要素の色を定義する線形グラデーションカラースキーム

['#FFCDD2, #F8BBD0]

colorMapping

Type: Record<string, string> | undefined

説明

データ値を特定の色にマッピングする色マッピング

{ 'profit': 'red', 'sales': 'blue', }

positiveColor

Type: string | undefined

説明

正負色設定。チャート内の正の値の色を定義します

negativeColor

Type: string | undefined

説明

正負色設定。チャート内の負の値の色を定義します

label

Type: Label | undefined

説明

チャートのデータラベル設定。位置、フォーマット、スタイルを含みます。

enable

Type: false | true

説明

ラベル機能を有効にするかどうか

wrap

Type: boolean | undefined

説明

ラベルを折り返すかどうか

showValue

Type: boolean | undefined

説明

ラベルに指標値を表示するかどうか

複数指標のシーンでは値の衝突を心配する必要はありません。描画に関連するすべての指標は foldMeasures 処理を通り、単一データ点を表す1つの指標にマージされます

注意: encoding の label は優先度が高いため、この設定は encoding の label には影響しません

showValuePercent

Type: boolean | undefined

説明

ラベルに指標値の割合を表示するかどうか

複数指標のシーンでは値の衝突を心配する必要はありません。描画に関連するすべての指標は foldMeasures 処理を通り、単一データ点を表す1つの指標にマージされます

注意: encoding の label は優先度が高いため、この設定は encoding の label には影響しません

showDimension

Type: boolean | undefined

説明

ラベルに次元ラベルを表示するかどうか

すべての次元ラベルを表示します

注意: encoding の label は優先度が高いため、この設定は encoding の label には影響しません

autoFormat

Type: boolean | undefined

説明

ラベル値を自動フォーマットするかどうか。autoFormat が true の場合、numFormat 設定は無視されます

numFormat

Type: NumFormat | undefined

説明

ラベル値のフォーマット設定。measureformat とマージされ、measureformat の優先度が高くなります。numFormat の優先度は autoFormat より低くなります

type

Type: "number" | "percent" | "permille" | "scientific" | undefined

説明

数値フォーマットのタイプ。number(10進数)、percent(%)、permille(‰)、scientific(科学表記)に対応します

ratio

Type: number | undefined

説明

数値フォーマットの倍率。0にはできません

- 100000 は 10万 に変換, ratio:10000, symbol:"万" - 100000 は 10K に変換, ratio:1000, symbol:"K"

symbol

Type: string | undefined

説明

数値フォーマットの記号。例: %, ‰

- 100000 は 10万 に変換, ratio:10000, symbol:"万" - 100000 は 10K に変換, ratio:1000, symbol:"K"

thousandSeparator

Type: boolean | undefined

説明

数値フォーマットの桁区切り

suffix

Type: string | undefined

説明

数値フォーマットの接尾辞

prefix

Type: string | undefined

説明

数値フォーマットの接頭辞

fractionDigits

Type: number | undefined

説明

数値フォーマットの小数桁数。ブラウザの Intl.NumberFormat の minimumFractionDigits と maximumFractionDigits を使用します。significantDigits より優先度は低くなります

- 1234.5678 は 1235 に変換されます。fractionDigits:0 (roundingMode:halfCeil) - 1234.5678 は 1234.6 に変換されます。fractionDigits:1 (roundingMode:halfCeil) - 1234.5678 は 1234.57 に変換されます。fractionDigits:2 (roundingMode:halfCeil) - 1234.5678 は 1230.568 に変換されます。fractionDigits:3 (roundingMode:halfCeil) - 1234.5678 は 1234.5678 に変換されます。fractionDigits:4 (roundingMode:halfCeil) - 1234.5678 は 1234.56780 に変換されます。fractionDigits:5 (roundingMode:halfCeil)

significantDigits

Type: number | undefined

説明

数値フォーマットの有効数字。ブラウザの Intl.NumberFormat の minimumSignificantDigits と maximumSignificantDigits を使用します。fractionDigits より優先度が高くなります

- 1234.5678 は 1000 に変換されます。significantDigits:1 - 1234.5678 は 1200 に変換されます。significantDigits:2 - 1234.5678 は 1230 に変換されます。significantDigits:3 - 1234.5678 は 1234 に変換されます。significantDigits:4 - 1234.5678 は 1234.6 に変換されます。significantDigits:5 (roundingMode:halfCeil) - 1234.5678 は 1234.57 に変換されます。significantDigits:6 (roundingMode:halfCeil) - 1234.5678 は 1234.568 に変換されます。significantDigits:7 (roundingMode:halfCeil) - 1234.5678 は 1234.5678 に変換されます。significantDigits:8 (roundingMode:halfCeil)

roundingPriority

Type: "morePrecision" | "lessPrecision" | undefined

説明

significantDigits と fractionDigits の両方が設定された場合の数値フォーマットの丸め優先度。ブラウザの Intl.NumberFormat を使用し、Intl.NumberFormat の roundingPriority と同じ規則に従います

- 1234.5678 は 1230 に変換されます。significantDigits:3 (roundingPriority:lessPrecision) - 1234.5678 は 1234.5678 に変換されます。significantDigits:3 (roundingPriority:morePrecision)

roundingMode

Type: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined

説明

数値フォーマットの丸めモード。ブラウザの Intl.NumberFormat を使用し、Intl.NumberFormat の roundingMode と同じ規則に従います

labelFontSize

Type: number | undefined

説明

ラベルのフォントサイズ

labelFontWeight

Type: string | number | undefined

説明

ラベルのフォントウェイト

labelBackgroundColor

Type: string | undefined

説明

ラベルの背景色

labelStroke

Type: string | undefined

説明

ラベルの枠線色

labelColor

Type: string | undefined

説明

ラベルのフォント色

labelColorSmartInvert

Type: boolean | undefined

説明

要素の色に基づいてフォント色を自動反転するかどうか

labelPosition

Type: "inside" | "outside" | undefined

説明

ラベル位置

labelOverlap

Type: boolean | undefined

説明

ラベルの重なり回避機能を有効にするかどうか

selector

Type: Selector | Selectors | undefined

説明

ラベルフィルタリング。セレクタ間のデフォルト関係は Or です

field

Type: string

説明

次元フィールド。次元項目のID

operator

Type: "in" | "not in" | undefined

説明

演算子

- in: 次元フィールドの値が value に含まれるデータ項目を選択します

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

op

Type: "in" | "not in" | undefined

説明

演算子

- in: 次元フィールドの値が value に含まれるデータ項目を選択します

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

4

value

Type: string | number | (string | number)[]

説明

次元フィールドの値。配列に対応します

dynamicFilter

Type: ChartDynamicFilter | undefined

説明

アニメーションフィルタ(AI生成コード実行)

AI生成の JavaScript コードで複雑なデータフィルタリングロジックを実装します

主な機能:

- 任意の複雑なデータフィルタリング条件に対応します

- データ操作用の組み込みユーティリティ関数を使用します

- ブラウザ環境(Web Worker サンドボックス)で安全に実行します

環境要件: ブラウザ環境のみ対応します。Node.js 環境ではフォールバックを使用します

注意: selector と dynamicFilter は同時に使用できません。dynamicFilter の優先度が高くなります

チャートのアニメーションフィルタ設定

AI生成の JavaScript コードでチャートマーカー(棒、点など)のフィルタリングを実装します

type

Type: "row-with-field"

description

Type: string | undefined

説明

ユーザーのフィルタリング要件説明(自然言語)

チャートのアニメーションフィルタ設定

AI生成の JavaScript コードでチャートマーカー(棒、点など)のフィルタリングを実装します

code

Type: string

説明

AI生成のJavaScriptフィルタリングコード

- 組み込みユーティリティ関数(_ または R からアクセス)のみ使用できます

- 入力パラメータ: data(配列)。各 item は行番号を表す __row_index フィールドを含みます

- 行インデックスとフィールドの組み合わせの配列を返す必要があります: Array<{ __row_index: number, field: string }>

- __row_index は元データ項目の行番号、field はハイライトするフィールドを表します

- 使用禁止: eval, Function, 非同期操作, DOM API, ネットワークリクエスト

sales が 1000 を超えるデータ項目の sales フィールドをハイライト

const filtered = _.filter(data, item => item.sales > 1000);
return _.map(filtered, item => ({
__row_index: item.__row_index,
field: 'sales'
}));

各エリアで利益率が最も高いデータ項目をハイライト

const grouped = _.groupBy(data, 'area');
const maxItems = _.map(grouped, group =>
_.maxBy(group, item => item.profit / item.sales)
);
return _.flatten(
_.map(maxItems, item => [
{ __row_index: item.__row_index, field: 'product' },
{ __row_index: item.__row_index, field: 'profit' }
])
);

複数条件で絞り込んだデータ項目をハイライト

const filtered = _.filter(data, item => {
const profitRate = item.profit / item.sales;
return profitRate > 0.2 && item.sales > 5000;
});
return _.flatten(
_.map(filtered, item => [
{ __row_index: item.__row_index, field: 'product' },
{ __row_index: item.__row_index, field: 'sales' }
])
);

fallback

Type: Selector | Selectors | undefined

説明

複数条件フィルタリングでデータ項目をハイライトします

field

Type: string

説明

コード実行に失敗した場合、または環境が対応していない場合のフォールバック方案

operator

Type: "in" | "not in" | undefined

説明

次元フィールド。次元項目のID

演算子

- in: 次元フィールドの値が value に含まれるデータ項目を選択します

op

Type: "in" | "not in" | undefined

説明

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

演算子

- in: 次元フィールドの値が value に含まれるデータ項目を選択します

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

value

Type: string | number | (string | number)[]

説明

次元フィールド値でデータ項目を選択します。配列に対応します

result

Type: DynamicFilterExecutionResult<RowWithFieldRes> | undefined

説明

動的フィルター実行結果(ランタイムフィールド)

prepare() フェーズで書き込まれ、実行時は読み取り専用です

success

Type: false | true

data

Type: T[] | undefined

error

Type: string | undefined

legend

Type: Legend | undefined

説明

prepare() フェーズで書き込まれ、実行時は読み取り専用です

enable

Type: boolean | undefined

説明

凡例機能を有効にするかどうか

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

border

Type: boolean | undefined

説明

凡例の枠線を有効にするかどうか

Warning

次元フィールドの値。配列に対応します

アニメーションフィルタ実行結果(ランタイムフィールド)

labelColor

Type: string | undefined

説明

legend font color

pagerIconColor

Type: string | undefined

説明

legend font color

pagerIconDisableColor

Type: string | undefined

説明

Pagination icon disabled color

labelFontSize

Type: number | undefined

説明

凡例のフォントサイズ

labelFontSize: 10

labelFontColor

Type: string | undefined

説明

legend font color

labelFontWeight

Type: string | number | undefined

説明

legend font color

legend font color

shapeType

Type: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine" | undefined

説明

凡例の形状

Warning

離散凡例でのみ有効です

凡例のフォントサイズ

position

Type: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br" | undefined

説明

凡例の位置

legend font color

maxSize

Type: number | undefined

説明

Maximum number of columns or rows when there are many legends

If position is horizontal (bottom, bottomLeft, bottomRight, bl, br, top, topLeft, topRight, tl, tr), maxSize controls the number of columns displayed

If position is vertical (left, leftTop, leftBottom, lt, lb, right, rightTop, rightBottom, rt, rb), maxSize controls the number of rows displayed

Warning

離散凡例でのみ有効です

maxSize: 2

tooltip

Type: Tooltip | undefined

説明

ブラシ選択を有効にするかどうか

enable

Type: false | true

説明

チャートのツールチップ設定。位置、フォーマット、スタイルなどを定義します。

brush

Type: Brush | undefined

説明

ツールチップ機能を有効にするかどうか

ブラシ選択枠の形状と選択方向を定義します

- polygon: 多角形選択。複数の点をクリックして任意の多角形を描画して選択できます

enable

Type: boolean | undefined

説明

ブラシ選択モード: 単一または複数

brushType

Type: "rect" | "x" | "y" | "polygon" | undefined

説明

選択されたデータ点のスタイルを定義します。

brushtype

不透明度

選択されたデータ点の不透明度。範囲は 0-1 です

- polygon: 多角形ブラシ選択。複数の点をクリックして任意の多角形を描画して選択します

- x: X軸方向のみのブラシ選択。Y軸方向は制限されません

brushMode

Type: "single" | "multiple" | undefined

説明

- y: Y軸方向のみのブラシ選択。X軸方向は制限されません

選択されたデータ点の不透明度。範囲は 0-1 です

未選択データ項目のスタイル

選択されたブラシ範囲外のデータ点のスタイルを定義します

removeOnClick

Type: boolean | undefined

説明

- multiple: 複数選択モード。複数のブラシ範囲を同時に存在させることができます

inBrushStyle

Type: { opacity?: number; stroke?: string; lineWidth?: number; } | undefined

説明

ブラシ選択終了後に選択範囲をクリアするかどうか

未選択データ点の不透明度。範囲は 0-1 です

opacity

Type: number | undefined

説明

ブラシ選択されたデータ点のスタイルを定義します

未選択データ項目のスタイル

stroke

Type: string | undefined

説明

ブラシ選択外のデータ点のスタイルを定義します

lineWidth

Type: number | undefined

説明

カテゴリ軸(X軸)設定。チャートのX軸を定義し、位置、フォーマット、スタイルなどを含みます。

outOfBrushStyle

Type: { opacity?: number; stroke?: string; lineWidth?: number; } | undefined

説明

枠線幅

X軸、カテゴリ軸、X軸設定。チャートのX軸を定義し、位置、フォーマット、スタイルなどを含みます。

opacity

Type: number | undefined

説明

ブラシ選択外のデータ点のスタイルを定義します

未選択データ項目のスタイル

stroke

Type: string | undefined

説明

ブラシ選択範囲外のデータ点の不透明度。範囲は 0-1 です

lineWidth

Type: number | undefined

説明

カテゴリ軸(X軸)設定。チャートのX軸を定義し、位置、フォーマット、スタイルなどを含みます。

xAxis

Type: XBandAxis | undefined

説明

X軸カテゴリ軸設定。チャートのX軸を定義し、位置、フォーマット、スタイル、および関連設定を含みます。

visible

Type: boolean | undefined

説明

グリッド線タイプ

inverse

Type: boolean | undefined

説明

X軸アニメーション設定

zero

Type: boolean | undefined

説明

数値軸(Y軸)設定。チャートのY軸を定義し、位置、フォーマット、スタイルなどを含みます。

labelAutoHide

Type: boolean | undefined

説明

order: 'asc'

labelAutoHideGap

Type: number | undefined

説明

軸ラベルの自動非表示間隔。2つのラベルの間隔が autoHideGap より小さい場合、重なったラベルは自動的に非表示になります。カテゴリ軸にのみ適用されます。

Y軸、数値軸、Y軸設定。チャートのY軸を定義し、位置、フォーマット、スタイルなどを含みます。

When autoHide is disabled, use sampling and configure it through minGap.

labelAutoRotate

Type: boolean | undefined

説明

軸ラベルの自動回転。ラベル幅が軸の長さを超えると、ラベルは自動的に回転します。カテゴリ軸にのみ適用されます。

labelAutoRotateAngleRange

Type: number[] | undefined

説明

'dark'

labelAutoLimit

Type: boolean | undefined

説明

軸ラベルの自動省略。ラベル幅が軸の長さを超えると、はみ出した部分は省略記号で表示され、ホバー時に完全なラベルが表示されます。カテゴリ軸にのみ適用されます。

labelAutoLimitLength

Type: number | undefined

説明

軸ラベル自動省略の最大長。ラベルテキストがこの長さを超えると省略記号で表示され、ホバー時に完全なラベルが表示されます。カテゴリ軸にのみ適用されます。

label

Type: { visible?: boolean; labelColor?: string; labelFontSize?: number; labelFontWeight?: number; labelAngle?: number; } | undefined

説明

- orderBy:'date'

visible

Type: boolean | undefined

説明

カテゴリ軸に直接適用されるカスタムソート順

labelColor

Type: string | undefined

説明

value: 'tool'

labelFontSize

Type: number | undefined

説明

orderBy: 'profit',

labelFontWeight

Type: number | undefined

説明

or

labelAngle

Type: number | undefined

説明

ラベルの回転角度

line

Type: { visible?: boolean; lineColor?: string; lineWidth?: number; } | undefined

説明

X軸線

visible

Type: boolean | undefined

説明

- orderBy:'date'

lineColor

Type: string | undefined

説明

ラベルのフォントサイズ

lineWidth

Type: number | undefined

説明

ラベルのフォントウェイト

tick

Type: { visible?: boolean; tickInside?: boolean; tickColor?: string; tickSize?: number; } | undefined

説明

X軸の目盛り

visible

Type: boolean | undefined

説明

数値フォーマットの接尾辞

tickInside

Type: boolean | undefined

説明

数値フォーマットの接頭辞

tickColor

Type: string | undefined

説明

数値フォーマットの小数桁数。ブラウザの Intl.NumberFormat の minimumFractionDigits と maximumFractionDigits を使用します。significantDigits より優先度は低くなります

tickSize

Type: number | undefined

説明

- 1234.5678 は 1234.5678 に変換されます。fractionDigits:4 (roundingMode:halfCeil)

title

Type: { visible?: boolean; titleText?: string; titleColor?: string; titleFontSize?: number; titleFontWeight?: number; } | undefined

説明

X軸タイトル

visible

Type: boolean | undefined

説明

- 1234.5678 は 1234.6 に変換されます。significantDigits:5 (roundingMode:halfCeil)

titleText

Type: string | undefined

説明

sort order, optional values 'asc' or 'desc'

titleColor

Type: string | undefined

説明

- 1234.5678 は 1234.5678 に変換されます。significantDigits:3 (roundingPriority:morePrecision)

titleFontSize

Type: number | undefined

説明

数値フォーマットの丸めモード。ブラウザの Intl.NumberFormat を使用し、Intl.NumberFormat の roundingMode と同じ規則に従います

titleFontWeight

Type: number | undefined

説明

X軸目盛ラベル

grid

Type: { visible?: boolean; gridColor?: string; gridWidth?: number; gridLineDash?: number[]; } | undefined

説明

Includes built-in light and dark themes. Custom themes can be added via registerTheme.

visible

Type: boolean | undefined

gridColor

Type: string | undefined

説明

selector = [{ profit: 100 }, { profit: 200 }]

gridWidth

Type: number | undefined

説明
  • not in: 次元フィールド値が value 配列に含まれないデータ項目を選択します。

gridLineDash

Type: number[] | undefined

説明

グリッド線タイプ

animation

Type: { duration?: number; easing?: string; } | undefined

説明

X軸アニメーション設定

duration

Type: number | undefined

説明

operator: 'not in',

easing

Type: string | undefined

説明

}

yAxis

Type: YLinearAxis | undefined

説明

Y軸数値軸設定。チャートのY軸を定義し、位置、フォーマット、スタイル、および関連設定を含みます。

visible

Type: boolean | undefined

説明

グリッド線タイプ

min

Type: number | undefined

説明

Axis line width

max

Type: number | boolean | undefined

説明

Y軸目盛

log

Type: boolean | undefined

説明

対数軸を使用するかどうか。数値軸にのみ適用されます

logBase

Type: number | undefined

説明

アニメーションのイージング関数。

nice

Type: boolean | undefined

説明

Y軸(カテゴリ軸)設定。Y軸を定義し、位置、フォーマット、スタイルなどを含みます。

inverse

Type: boolean | undefined

説明

X軸アニメーション設定

zero

Type: boolean | undefined

説明

数値軸(Y軸)設定。チャートのY軸を定義し、位置、フォーマット、スタイルなどを含みます。

autoFormat

Type: boolean | undefined

説明

数値軸の目盛ラベルを自動フォーマットするかどうか。数値軸にのみ適用されます。autoFormat が true の場合、numFormat は無視されます。

numFormat

Type: NumFormat | undefined

説明

数値軸の数値フォーマット。数値軸にのみ有効で、autoFormat より優先度は低くなります

type

Type: "number" | "percent" | "permille" | "scientific" | undefined

説明

数値フォーマットのタイプ。number(10進数)、percent(%)、permille(‰)、scientific(科学表記)に対応します

ratio

Type: number | undefined

説明

数値フォーマットの倍率。0にはできません

- 100000 は 10万 に変換, ratio:10000, symbol:"万" - 100000 は 10K に変換, ratio:1000, symbol:"K"

symbol

Type: string | undefined

説明

数値フォーマットの記号。例: %, ‰

- 100000 は 10万 に変換, ratio:10000, symbol:"万" - 100000 は 10K に変換, ratio:1000, symbol:"K"

thousandSeparator

Type: boolean | undefined

説明

数値フォーマットの桁区切り

suffix

Type: string | undefined

説明

数値フォーマットの接尾辞

prefix

Type: string | undefined

説明

数値フォーマットのタイプ。number(10進数)、percent(%)、permille(‰)、scientific(科学表記)に対応します

fractionDigits

Type: number | undefined

説明

数値フォーマットの倍率。0にはできません

- 1234.5678 は 1235 に変換されます, fractionDigits:0 (roundingMode:halfCeil) - 1234.5678 は 1234.6 に変換されます, fractionDigits:1 (roundingMode:halfCeil) - 1234.5678 は 1234.57 に変換されます, fractionDigits:2 (roundingMode:halfCeil) - 1234.5678 は 1230.568 に変換されます, fractionDigits:3 (roundingMode:halfCeil) - 1234.5678 は 1234.5678 に変換されます, fractionDigits:4 (roundingMode:halfCeil) - 1234.5678 は 1234.56780 に変換されます, fractionDigits:5 (roundingMode:halfCeil)

significantDigits

Type: number | undefined

説明

数値フォーマットの記号。例: %, ‰

- 1234.5678 は 1000 に変換されます, significantDigits:1 - 1234.5678 は 1200 に変換されます, significantDigits:2 - 1234.5678 は 1230 に変換されます, significantDigits:3 - 1234.5678 は 1234 に変換されます, significantDigits:4 - 1234.5678 は 1234.6 に変換されます, significantDigits:5 (roundingMode:halfCeil) - 1234.5678 は 1234.57 に変換されます, significantDigits:6 (roundingMode:halfCeil) - 1234.5678 は 1234.568 に変換されます, significantDigits:7 (roundingMode:halfCeil) - 1234.5678 は 1234.5678 に変換されます, significantDigits:8 (roundingMode:halfCeil)

roundingPriority

Type: "morePrecision" | "lessPrecision" | undefined

説明

数値フォーマットの桁区切り

- 1234.5678 は 1230 に変換されます, significantDigits:3 (roundingPriority:lessPrecision) - 1234.5678 は 1234.5678 に変換されます, significantDigits:3 (roundingPriority:morePrecision)

roundingMode

Type: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined

説明

数値フォーマットの接頭辞

label

Type: { visible?: boolean; labelColor?: string; labelFontSize?: number; labelFontWeight?: number; labelAngle?: number; } | undefined

説明

数値フォーマットの小数桁数。ブラウザの Intl.NumberFormat の minimumFractionDigits と maximumFractionDigits を使用します。significantDigits より優先度は低くなります

visible

Type: boolean | undefined

説明

カテゴリ軸に直接適用されるカスタムソート順

labelColor

Type: string | undefined

説明

数値フォーマットの有効数字。ブラウザの Intl.NumberFormat の minimumSignificantDigits と maximumSignificantDigits を使用します。fractionDigits より優先度が高くなります

labelFontSize

Type: number | undefined

説明

orderBy: 'profit',

labelFontWeight

Type: number | undefined

説明

significantDigits と fractionDigits の両方が設定された場合の数値フォーマットの丸め優先度。ブラウザの Intl.NumberFormat を使用し、Intl.NumberFormat の roundingPriority と同じ規則に従います

labelAngle

Type: number | undefined

説明

ラベルの回転角度

line

Type: { visible?: boolean; lineColor?: string; lineWidth?: number; } | undefined

説明

X軸線

visible

Type: boolean | undefined

説明

- orderBy:'date'

lineColor

Type: string | undefined

説明

数値フォーマットの丸めモード。ブラウザの Intl.NumberFormat を使用し、Intl.NumberFormat の roundingMode と同じ規則に従います

lineWidth

Type: number | undefined

説明

- 100000 は 10万 に変換, ratio:10000, symbol:"万"

tick

Type: { visible?: boolean; tickInside?: boolean; tickColor?: string; tickSize?: number; } | undefined

説明

X軸の目盛り

visible

Type: boolean | undefined

説明

数値フォーマットの接尾辞

tickInside

Type: boolean | undefined

説明

数値フォーマットの接頭辞

tickColor

Type: string | undefined

説明

ラベルのフォントサイズ

tickSize

Type: number | undefined

説明

ラベルのフォントウェイト

title

Type: { visible?: boolean; titleText?: string; titleColor?: string; titleFontSize?: number; titleFontWeight?: number; } | undefined

説明

X軸タイトル

visible

Type: boolean | undefined

説明

- 1234.5678 は 1234.6 に変換されます。significantDigits:5 (roundingMode:halfCeil)

titleText

Type: string | undefined

説明

sort order, optional values 'asc' or 'desc'

titleColor

Type: string | undefined

説明

- 1234.5678 は 1234.5678 に変換されます。significantDigits:3 (roundingPriority:morePrecision)

titleFontSize

Type: number | undefined

説明

数値フォーマットの丸めモード。ブラウザの Intl.NumberFormat を使用し、Intl.NumberFormat の roundingMode と同じ規則に従います

titleFontWeight

Type: number | undefined

説明

X軸目盛ラベル

grid

Type: { visible?: boolean; gridColor?: string; gridWidth?: number; gridLineDash?: number[]; } | undefined

説明

Includes built-in light and dark themes. Custom themes can be added via registerTheme.

visible

Type: boolean | undefined

gridColor

Type: string | undefined

説明

selector = [{ profit: 100 }, { profit: 200 }]

gridWidth

Type: number | undefined

説明
  • not in: 次元フィールド値が value 配列に含まれないデータ項目を選択します。

gridLineDash

Type: number[] | undefined

説明

グリッド線タイプ

animation

Type: { duration?: number; easing?: string; } | undefined

説明

selector = [{ profit: 100 }, { profit: 200 }]

duration

Type: number | undefined

説明

operator: 'not in',

easing

Type: string | undefined

説明

}

sort

Type: Sort | undefined

説明

X軸のソート設定。次元または指標によるソート、およびカスタムソート順をサポートします

カテゴリ軸のソート設定。次元または指標によるソート、およびカスタムソート順をサポートします

sort: { orderBy: 'profit', order: 'asc', } sort: { customOrder:['2019', '2020', '2021'] }

- order:'asc' - orderBy:'date' or - customOrder:['2019', '2020', '2021']

order

Type: "asc" | "desc" | undefined

説明

])

order:'asc'

orderBy

Type: string | undefined

説明

AI が生成した JavaScript フィルターコード

- orderBy:'date' - orderBy:'profit'

customOrder

Type: string[] | undefined

説明

Suitable for scenarios complex for static selectors, such as Top N, statistical analysis, or complex combined conditions.

sortLegend

Type: SortLegend | undefined

説明

環境要件: ブラウザ環境のみ対応します。Node.js 環境では fallback を使用します

チャート動的フィルター設定: AI が生成した JavaScript コードでチャートマーク(棒、点など)をフィルタリングします。

sortLegend: { orderBy: 'profit', order: 'asc', } sortLegend: { customOrder:['2019', '2020', '2021'] }

- order:'asc' - orderBy:'date' or - customOrder:['2019', '2020', '2021']

order

Type: "asc" | "desc" | undefined

説明

])

order:'asc'

orderBy

Type: string | undefined

説明

AI が生成した JavaScript フィルターコード

- orderBy:'date' - orderBy:'profit'

customOrder

Type: string[] | undefined

説明

_.maxBy(group, item => item.profit / item.sales)

theme

Type: Theme | undefined

説明

Operator

const maxItems = _.map(grouped, group =>

_.map(maxItems, item => [

'dark'

'light'

'customThemeName'

length

Type: number

brand

Type: brand

crosshairRect

Type: CrosshairRect | undefined

説明

コード実行に失敗した場合、または環境が対応していない場合の fallback 方案。

ローカルデータセレクタ

visible

Type: boolean | undefined

説明

selector = {

rectColor

Type: string | undefined

説明

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

labelColor

Type: string | undefined

説明

Operator

labelVisible

Type: boolean | undefined

説明

チャートテーマ。テーマは優先度の低い設定で、すべてのチャートタイプで共有される共通設定と、各チャートタイプ固有の設定を含みます。組み込みテーマには 'light' と 'dark' があり、Builder でカスタマイズできます。

labelBackgroundColor

Type: string | undefined

説明

テーマ

boxPlotStyle

Type: BoxPlotStyle | BoxPlotStyle[] | undefined

説明

Box Plot の箱スタイル設定。グローバルまたは selector レベルで適用できます

selector

Type: Selector | Selectors | undefined

説明

Data selector

selector を設定すると、数値セレクター、部分データセレクター、条件付き次元 selector、条件付き指標 selectorの 4 種類のデータマッチングを利用できます。

If no selector is configured, the style applies globally.

Numeric selector selector = "tool" selector = ["tool", "book"] selector = 100 selector = [100, 200]

Local data selector selector = { profit: 100 } selector = [{ profit: 100 }, { profit: 200 }]

Conditional dimension selector selector = { field: 'category', operator: 'in', value: 'tool' } selector = { field: 'category', operator: 'not in', value: 'book' }

条件付き指標 selector selector = { field: 'profit', operator: '>=', value: 100 } selector = { field: 'profit', operator: 'between' value: [100, 300] }

field

Type: string

説明
  • not in: 次元フィールド値が value 配列に含まれないデータ項目を選択します。

operator

Type: "in" | "not in" | undefined

説明

selector を設定すると、数値セレクター、部分データセレクター、条件付き次元 selector、条件付き指標 selectorの 4 種類のデータマッチングを利用できます。

selector が設定されていない場合、このスタイルは全体に適用されます。

- not in: Select data items where the value of the dimension field is not in the value

op

Type: "in" | "not in" | undefined

説明

Operator

- in: Select data items where the value of the dimension field is in the value

- not in: Select data items where the value of the dimension field is not in the value

次元フィールド。次元項目のID

value

Type: string | number | (string | number)[]

説明

演算子

boxVisible

Type: boolean | undefined

説明

- in: 次元フィールドの値が value に含まれるデータ項目を選択します

boxColor

Type: string | undefined

説明

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

boxColorOpacity

Type: number | undefined

説明

演算子

boxBorderColor

Type: string | undefined

説明

- in: 次元フィールドの値が value に含まれるデータ項目を選択します

boxBorderWidth

Type: number | undefined

説明

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

boxBorderOpacity

Type: number | undefined

説明

箱ひげ図要素の枠線不透明度

boxCornerRadius

Type: number | undefined

説明

次元フィールドの値。配列に対応します

medianBorderColor

Type: string | undefined

説明

Median line color

whiskerBorderColor

Type: string | undefined

説明

Whisker line color

outlierStyle

Type: OutlierStyle | OutlierStyle[] | undefined

説明

Outlier style configuration, supports global or selector-level application

selector

Type: Selector | Selectors | undefined

説明

Data selector

selector を設定すると、数値セレクター、部分データセレクター、条件付き次元 selector、条件付き指標 selectorの 4 種類のデータマッチングを利用できます。

If no selector is configured, the style applies globally.

Numeric selector selector = "tool" selector = ["tool", "book"] selector = 100 selector = [100, 200]

Local data selector selector = { profit: 100 } selector = [{ profit: 100 }, { profit: 200 }]

Conditional dimension selector selector = { field: 'category', operator: 'in', value: 'tool' } selector = { field: 'category', operator: 'not in', value: 'book' }

条件付き指標 selector selector = { field: 'profit', operator: '>=', value: 100 } selector = { field: 'profit', operator: 'between' value: [100, 300] }

field

Type: string

説明
  • not in: 次元フィールド値が value 配列に含まれないデータ項目を選択します。

operator

Type: "in" | "not in" | undefined

説明

selector を設定すると、数値セレクター、部分データセレクター、条件付き次元 selector、条件付き指標 selectorの 4 種類のデータマッチングを利用できます。

selector が設定されていない場合、このスタイルは全体に適用されます。

- not in: Select data items where the value of the dimension field is not in the value

op

Type: "in" | "not in" | undefined

説明

Operator

- in: Select data items where the value of the dimension field is in the value

- not in: Select data items where the value of the dimension field is not in the value

次元フィールド。次元項目のID

value

Type: string | number | (string | number)[]

説明

演算子

pointVisible

Type: boolean | undefined

説明

- in: 次元フィールドの値が value に含まれるデータ項目を選択します

pointSize

Type: number | undefined

説明

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

pointColor

Type: string | undefined

説明

演算子

pointColorOpacity

Type: number | undefined

説明

- in: 次元フィールドの値が value に含まれるデータ項目を選択します

pointBorderColor

Type: string | undefined

説明

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

pointBorderWidth

Type: number | undefined

説明

Point element border width

pointBorderStyle

Type: "solid" | "dashed" | "dotted" | undefined

説明

次元フィールドの値。配列に対応します

solid

dashed

dotted

whiskers

Type: number | number[] | undefined

説明

箱ひげ図のひげ長設定。単一値または長さ 2 の配列をサポートします。

When the value is a scalar, whiskers * IQR is used to calculate the upper and lower bounds.

When the value is an array of length 2, whiskers[0] must be between [0, 0.25), representing the percentile for the lower bound;

whiskers[1] must be between (0.75, 1], representing the percentile for the upper bound.

annotationPoint

Type: AnnotationPoint | AnnotationPoint[] | undefined

説明

注釈点設定。選択したデータに基づき、注釈点の位置、形式、スタイルなどを定義します。

selector

Type: Selector | Selectors | undefined

説明

アニメーションフィルタ実行結果(ランタイムフィールド)

field

Type: string

説明

prepare() フェーズで書き込まれ、実行時は読み取り専用です

operator

Type: "in" | "not in" | undefined

説明

テキストの垂直揃え。通常は 'top' に設定し、テキストを注釈点の下側に表示して、チャートの可視領域内に収めます。

const profitRate = item.profit / item.sales;

});

op

Type: "in" | "not in" | undefined

説明

テキストの垂直揃え。通常は 'top' に設定し、テキストを注釈点の下側に表示して、チャートの可視領域内に収めます。

const profitRate = item.profit / item.sales;

});

4

value

Type: string | number | (string | number)[]

説明

次元フィールド値でデータ項目を選択します。配列に対応します

measureId

Type: string | undefined

説明

注釈点が属する指標 id を指定します。複数 measure の場合、selector と組み合わせて対象指標に対応する注釈点を一意に特定できます。

dynamicFilter

Type: ChartDynamicFilter | undefined

説明

動的フィルター(AI 生成コード実行)

- in: 次元フィールドの値が value に含まれるデータ項目を選択します

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

Key capabilities:

- Supports any complex data filtering conditions

- Uses built-in utility functions for data manipulation

- Executes safely in the browser environment (Web Worker sandbox)

次元フィールド。次元項目のID

演算子

- in: 次元フィールドの値が value に含まれるデータ項目を選択します

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

type

Type: "row-with-field"

description

Type: string | undefined

説明

演算子

- in: 次元フィールドの値が value に含まれるデータ項目を選択します

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

code

Type: string

説明

AI生成のJavaScriptフィルタリングコード

- 組み込みユーティリティ関数(_ または R からアクセス)のみ使用できます

- 入力パラメータ: data(配列)。各 item は行番号を表す __row_index フィールドを含みます

- 行インデックスとフィールドの組み合わせの配列を返す必要があります: Array<{ __row_index: number, field: string }>

- __row_index は元データ項目の行番号、field はハイライトするフィールドを表します

- 使用禁止: eval, Function, 非同期操作, DOM API, ネットワークリクエスト

sales が 1000 を超えるデータ項目の sales フィールドをハイライト

const filtered = _.filter(data, item => item.sales > 1000);
return _.map(filtered, item => ({
__row_index: item.__row_index,
field: 'sales'
}));

各エリアで利益率が最も高いデータ項目をハイライト

const grouped = _.groupBy(data, 'area');
const maxItems = _.map(grouped, group =>
_.maxBy(group, item => item.profit / item.sales)
);
return _.flatten(
_.map(maxItems, item => [
{ __row_index: item.__row_index, field: 'product' },
{ __row_index: item.__row_index, field: 'profit' }
])
);

複数条件で絞り込んだデータ項目をハイライト

const filtered = _.filter(data, item => {
const profitRate = item.profit / item.sales;
return profitRate > 0.2 && item.sales > 5000;
});
return _.flatten(
_.map(filtered, item => [
{ __row_index: item.__row_index, field: 'product' },
{ __row_index: item.__row_index, field: 'sales' }
])
);

fallback

Type: Selector | Selectors | undefined

説明

- データ操作用の組み込みユーティリティ関数を使用します

field

Type: string

説明

- ブラウザ環境(Web Worker サンドボックス)で安全に実行します

operator

Type: "in" | "not in" | undefined

説明

環境要件: ブラウザ環境のみ対応します。Node.js 環境ではフォールバックを使用します

注意: selector と dynamicFilter は同時に使用できません。dynamicFilter の優先度が高くなります

チャートのアニメーションフィルタ設定

op

Type: "in" | "not in" | undefined

説明

AI生成の JavaScript コードでチャートマーカー(棒、点など)のフィルタリングを実装します

ユーザーのフィルタリング要件説明(自然言語)

});

4

value

Type: string | number | (string | number)[]

説明

AI生成の JavaScript フィルタリングコード

result

Type: DynamicFilterExecutionResult<RowWithFieldRes> | undefined

説明

動的フィルター実行結果(ランタイムフィールド)

prepare() フェーズで書き込まれ、実行時は読み取り専用です

success

Type: false | true

data

Type: T[] | undefined

error

Type: string | undefined

text

Type: string | string[] | undefined

説明

- 行番号とフィールドの組み合わせの配列を返す必要があります: Array<{ __row_index: number, field: string }>

- 組み込みユーティリティ関数(_ または R からアクセス)のみ使用できます

textColor

Type: string | undefined

説明

- 禁止: eval、Function、非同期操作、DOM API、ネットワークリクエスト

- 行番号とフィールドの組み合わせの配列を返す必要があります: Array<{ __row_index: number, field: string }>

textFontSize

Type: number | undefined

説明

各エリアで利益率が最も高いデータ項目をハイライトします

- 禁止: eval、Function、非同期操作、DOM API、ネットワークリクエスト

textFontWeight

Type: number | undefined

説明

コード実行に失敗した場合、または環境が対応していない場合のフォールバック方案

各エリアで利益率が最も高いデータ項目をハイライトします

textAlign

Type: "left" | "right" | "center" | undefined

説明

テキストの配置。通常は right に設定し、テキストを注釈点の左側に表示して、チャートの表示領域内に収めます

right に設定することを推奨します。これによりテキストを注釈点の左側に配置できます

right: テキストは注釈点の左側にあり、テキストの右端が注釈点に揃います

left: テキストは注釈点の右側にあり、テキストの左端が注釈点に揃います

center: テキストは注釈点の中央にあり、テキストの中心が注釈点に揃います

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

textBaseline

Type: "top" | "bottom" | "middle" | undefined

説明

テキストの垂直配置です。通常は top に設定し、テキストを注釈点の下側に表示して、グラフの可視領域内に収めます

'top' を推奨します。これによりテキスト全体をグラフの可視領域内に表示できます

top: テキストは注釈点の下側にあり、テキストの上端が注釈点に揃います

middle: テキストは注釈点の中央にあり、テキストの中心が注釈点に揃います

bottom: テキストは注釈点の上側にあり、テキストの下端が注釈点に揃います

'top'

textBackgroundVisible

Type: boolean | undefined

説明

背景を表示するかどうか

true

textBackgroundColor

Type: string | undefined

説明

背景色

'red'

textBackgroundBorderColor

Type: string | undefined

説明

background padding

'red'

textBackgroundBorderWidth

Type: number | undefined

説明

注釈領域 color

2

textBackgroundBorderRadius

Type: number | undefined

説明

背景の角丸

4

textBackgroundPadding

Type: number | undefined

説明

背景の内側余白

4

offsetY

Type: number | undefined

説明

注釈点全体のY方向のピクセルオフセットです。注釈点がグラフ上側(値が大きい場合)にある場合は正の値、下側(値が小さい場合)にある場合は負の値を推奨します。

負の値では全体が上へ移動します。たとえば -10 にすると、テキストと背景を含む注釈点コンポーネント全体が上へ10ピクセル移動します

正の値では全体が下へ移動します。たとえば 10 にすると、テキストと背景を含む注釈点コンポーネント全体が下へ10ピクセル移動します

offsetY: 5, 注釈点全体を下へ5ピクセル移動

offsetX

Type: number | undefined

説明

注釈点全体のX方向のピクセルオフセットです。注釈点がグラフ左側(カテゴリ軸の開始点)にある場合は正の値、右側(カテゴリ軸の終了点)にある場合は負の値を推奨します。

負の値では全体が左へ移動します。たとえば -10 にすると、テキストと背景を含む注釈点コンポーネント全体が左へ10ピクセル移動します

正の値では全体が右へ移動します。たとえば 10 にすると、テキストと背景を含む注釈点コンポーネント全体が右へ10ピクセル移動します

offsetX: 5, 注釈点全体を右へ5ピクセル移動

annotationVerticalLine

Type: AnnotationVerticalLine | AnnotationVerticalLine[] | undefined

説明

次元値の注釈線です。垂直方向に表示され、注釈線の位置、スタイル、関連設定を構成できます。

xValue

Type: string | number | (string | number)[] | undefined

説明

);

dynamicFilter

Type: ValueDynamicFilter | undefined

説明

動的フィルター(AI 生成コード実行)

背景枠線の角丸

Line visibility.

true

type

Type: "value"

description

Type: string | undefined

説明

Background padding

"注釈線の基準として最大売上値を取得"

"Calculate the average sales for the annotation line"

code

Type: string

説明

AI生成のJavaScriptフィルタリングコード

- 組み込みユーティリティ関数(_ または R からアクセス)のみ使用できます

- 入力パラメータ: data(配列)

- 単一の数値または文字列を返す必要があります: number | string

- 適用シーン: 注釈線(水平線、垂直線)に必要な動的値

- 使用禁止: eval, Function, 非同期操作, DOM API, ネットワークリクエスト

売上の最大値を注釈線の値として取得

const maxSales = _.maxBy(data, 'sales')?.sales;
return maxSales || 0;

平均値を計算して注釈線に使用

const avgSales = _.meanBy(data, 'sales');
return _.round(avgSales, 2);

分位値を注釈線として取得

const sorted = _.sortBy(data, 'sales');
const index = Math.floor(sorted.length * 0.75);
return sorted[index]?.sales || 0;

条件に基づいて目標値を計算

const currentYearTotal = _.sumBy(
_.filter(data, item => item.year === 2024),
'sales'
);
return currentYearTotal;

fallback

Type: string | number | undefined

説明

field: 'sales'

result

Type: { success: boolean; data?: number | string; } | undefined

説明

動的フィルター実行結果(ランタイムフィールド)

prepare() フェーズで書き込まれ、実行時は読み取り専用です

success

Type: false | true

data

Type: string | number | undefined

text

Type: string | string[] | undefined

説明

Written during the prepare() phase, read-only at runtime

'Annotation text'

textPosition

Type: "outsideStart" | "outsideEnd" | "outsideMiddle" | "insideStart" | "insideMiddle" | "insideEnd" | undefined

説明

_.filter(data, item => item.year === 2024),

'outsideEnd'

textColor

Type: string | undefined

説明

center: Text is centered in the annotation area; the center of the text aligns with the area.

'red'

textFontSize

Type: number | undefined

説明

テキストの垂直揃え。通常は 'top' に設定し、テキストを注釈領域の下側に表示して、チャートの可視領域内に収めます。

12

textFontWeight

Type: number | undefined

説明

0

400

textAlign

Type: "left" | "right" | "center" | undefined

説明

テキストの配置です。通常は設定不要です

'right' を推奨します。これによりテキストを注釈線の左側に配置できます

right: テキストは参照線の左側にあり、テキストの右端が(垂直)注釈線に揃います

left: テキストは参照線の右側にあり、テキストの左端が(垂直)注釈線に揃います

center: テキストは参照線の中央にあり、テキストの中心が(垂直)注釈線に揃います

'right'

textBaseline

Type: "top" | "bottom" | "middle" | undefined

説明

テキストの垂直配置です。通常は設定不要です

'top' を推奨します。これによりテキスト全体をグラフの可視領域内に表示できます

top: テキストは参照線の下側にあり、テキストの上端が(垂直)注釈線の終点に揃います

middle: テキストは参照線の中央にあり、テキストの中心が(垂直)注釈線の終点に揃います

bottom: テキストは参照線の上側にあり、テキストの下端が(垂直)注釈線の終点に揃います

'top'

lineVisible

Type: boolean | undefined

説明

線を表示するかどうか

true

lineColor

Type: string | undefined

説明

線の色

'red'

lineWidth

Type: number | undefined

説明

- 禁止: eval、Function、非同期操作、DOM API、ネットワークリクエスト

2

lineStyle

Type: "solid" | "dashed" | "dotted" | undefined

説明

テキスト全体をチャートの可視領域内に表示するため、'top' に設定することを推奨します。

'solid'

textBackgroundVisible

Type: boolean | undefined

説明

背景を表示するかどうか

true

textBackgroundColor

Type: string | undefined

説明

背景色

'red'

textBackgroundBorderColor

Type: string | undefined

説明

background padding

'red'

textBackgroundBorderWidth

Type: number | undefined

説明

アニメーションフィルタ実行結果(ランタイムフィールド)

2

textBackgroundBorderRadius

Type: number | undefined

説明

背景の角丸

4

textBackgroundPadding

Type: number | undefined

説明

背景の内側余白

4

annotationHorizontalLine

Type: AnnotationHorizontalLine | AnnotationHorizontalLine[] | undefined

説明

4

yValue

Type: string | number | (string | number)[] | undefined

説明

水平線を注釈するための固定Y値です。カテゴリ軸がY方向の場合は次元値を、数値軸がY方向の場合は具体的な数値を入力できます。

dynamicFilter

Type: ValueDynamicFilter | undefined

説明

動的フィルター(AI 生成コード実行)

背景枠線の角丸

Line visibility.

true

type

Type: "value"

description

Type: string | undefined

説明

Background padding

"注釈線の基準として最大売上値を取得"

"Calculate the average sales for the annotation line"

code

Type: string

説明

AI生成のJavaScriptフィルタリングコード

- 組み込みユーティリティ関数(_ または R からアクセス)のみ使用できます

- 入力パラメータ: data(配列)

- 単一の数値または文字列を返す必要があります: number | string

- 適用シーン: 注釈線(水平線、垂直線)に必要な動的値

- 使用禁止: eval, Function, 非同期操作, DOM API, ネットワークリクエスト

売上の最大値を注釈線の値として取得

const maxSales = _.maxBy(data, 'sales')?.sales;
return maxSales || 0;

平均値を計算して注釈線に使用

const avgSales = _.meanBy(data, 'sales');
return _.round(avgSales, 2);

分位値を注釈線として取得

const sorted = _.sortBy(data, 'sales');
const index = Math.floor(sorted.length * 0.75);
return sorted[index]?.sales || 0;

条件に基づいて目標値を計算

const currentYearTotal = _.sumBy(
_.filter(data, item => item.year === 2024),
'sales'
);
return currentYearTotal;

fallback

Type: string | number | undefined

説明

field: 'sales'

result

Type: { success: boolean; data?: number | string; } | undefined

説明

動的フィルター実行結果(ランタイムフィールド)

prepare() フェーズで書き込まれ、実行時は読み取り専用です

success

Type: false | true

data

Type: string | number | undefined

text

Type: string | string[] | undefined

説明

Written during the prepare() phase, read-only at runtime

'Annotation text'

textPosition

Type: "outsideStart" | "outsideEnd" | "outsideMiddle" | "insideStart" | "insideMiddle" | "insideEnd" | undefined

説明

テキスト位置

注釈線のラベル位置(線に対する相対位置)。

'outsideEnd'

textColor

Type: string | undefined

説明

center: Text is centered in the annotation area; the center of the text aligns with the area.

'red'

textFontSize

Type: number | undefined

説明

テキストの垂直揃え。通常は 'top' に設定し、テキストを注釈領域の下側に表示して、チャートの可視領域内に収めます。

12

textFontWeight

Type: number | undefined

説明

0

400

textAlign

Type: "left" | "right" | "center" | undefined

説明

テキストの配置。通常は設定不要です

right に設定することを推奨します。これによりテキストを注釈線の左側に配置できます

right: テキストは参照線の左側にあり、テキストの右端が水平注釈線の終点に揃います

left: テキストは参照線の右側にあり、テキストの左端が水平注釈線の終点に揃います

center: テキストは参照線の中央にあり、テキストの中心が水平注釈線の終点に揃います

'right'

textBaseline

Type: "top" | "bottom" | "middle" | undefined

説明

テキストの垂直配置です。通常は設定不要です

'top' を推奨します。これによりテキスト全体をグラフの可視領域内に表示できます

top: テキストは参照線の下側にあり、テキストの上端が(水平)注釈線に揃います

middle: テキストは参照線の中央にあり、テキストの中心が(水平)注釈線に揃います

bottom: テキストは参照線の上側にあり、テキストの下端が(水平)注釈線に揃います

'top'

textBackgroundVisible

Type: boolean | undefined

説明

背景を表示するかどうか

true

textBackgroundColor

Type: string | undefined

説明

背景色

'red'

textBackgroundBorderColor

Type: string | undefined

説明

background padding

コード実行に失敗した場合、または環境が対応していない場合のフォールバック方案

textBackgroundBorderWidth

Type: number | undefined

説明

注釈領域 color

アニメーションフィルタ(AI生成コード実行)

2

textBackgroundBorderRadius

Type: number | undefined

説明

背景の角丸

4

textBackgroundPadding

Type: number | undefined

説明

背景の内側余白

4

lineVisible

Type: boolean | undefined

説明

線を表示するかどうか

線を表示するかどうか

true

lineColor

Type: string | undefined

説明

線の色

'red'

lineWidth

Type: number | undefined

説明

線の幅

2

lineStyle

Type: "solid" | "dashed" | "dotted" | undefined

説明

テキスト全体をチャートの可視領域内に表示するため、'top' に設定することを推奨します。

'solid'

splitLine

Type: boolean | { positiveColor?: string; negativeColor?: string; } | undefined

説明

AI生成の JavaScript フィルタリングコード

positiveColor

Type: string | undefined

説明

- 組み込みユーティリティ関数(_ または R からアクセス)のみ使用できます

negativeColor

Type: string | undefined

説明

注釈値より小さい部分に対応する主色

annotationArea

Type: AnnotationArea | AnnotationArea[] | undefined

説明

注釈領域設定。選択したデータに基づき、注釈領域の位置やスタイルなどを定義します。

selector

Type: AreaSelector | AreaSelectors | undefined

説明

4

field

Type: string

説明

return _.flatten(

operator

Type: "in" | "not in" | undefined

説明

テキストの垂直揃え。通常は 'top' に設定し、テキストを注釈点の下側に表示して、チャートの可視領域内に収めます。

- 禁止: eval、Function、非同期操作、DOM API、ネットワークリクエスト

});

op

Type: "in" | "not in" | undefined

説明

テキストの垂直揃え。通常は 'top' に設定し、テキストを注釈点の下側に表示して、チャートの可視領域内に収めます。

const profitRate = item.profit / item.sales;

});

コード実行に失敗した場合、または環境が対応していない場合のフォールバック方案

value

Type: string | number | (string | number)[]

説明

アニメーションフィルタ実行結果(ランタイムフィールド)

text

Type: string | string[] | undefined

説明

prepare() フェーズで書き込まれ、実行時は読み取り専用です

'Annotation text'

textPosition

Type: "left" | "top" | "topLeft" | "topRight" | "right" | "bottom" | "bottomLeft" | "bottomRight" | undefined

説明

テキスト位置

'top'

textColor

Type: string | undefined

説明

center: Text is centered in the annotation area; the center of the text aligns with the area.

'red'

textFontSize

Type: number | undefined

説明

テキストの垂直揃え。通常は 'top' に設定し、テキストを注釈領域の下側に表示して、チャートの可視領域内に収めます。

12

textFontWeight

Type: number | undefined

説明

0

400

textAlign

Type: "left" | "right" | "center" | undefined

説明

テキストの配置。通常は right に設定します。テキストは注釈領域の中央に表示され、チャートの表示領域内に収まります

center に設定することを推奨します。これによりテキストを注釈領域の中央に配置できます

right: テキストは注釈領域の左側にあり、テキストの右端が注釈領域に揃います

left: テキストは注釈領域の右側にあり、テキストの左端が注釈領域に揃います

center: テキストは注釈領域の中央にあり、テキストの中心が注釈領域に揃います

'center' Text is in the middle of the annotation area

textBaseline

Type: "top" | "bottom" | "middle" | undefined

説明

Text vertical alignment. Generally set it to top so text appears at the bottom of the annotation area and remains inside the visible chart area.

top: Text is at the bottom of the reference line; the top edge aligns with the endpoint of the (vertical) annotation line.

top: text is at the bottom of the annotation area; the top edge of the text aligns with the annotation area

middle: text is centered in the annotation area; the center of the text aligns with the annotation area

Order of the polynomial regression

'top' Text is at the bottom of the annotation area

textBackgroundVisible

Type: boolean | undefined

説明

背景を表示するかどうか

true

textBackgroundColor

Type: string | undefined

説明

背景色

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

textBackgroundBorderColor

Type: string | undefined

説明

background padding

background padding

- not in: 次元フィールドの値が value に含まれないデータ項目を選択します

textBackgroundBorderWidth

Type: number | undefined

説明

注釈領域 color

次元フィールドの値。配列に対応します

textBackgroundBorderRadius

Type: number | undefined

説明

背景の角丸

背景の角丸

4

textBackgroundPadding

Type: number | undefined

説明

背景の内側余白

4

areaColor

Type: string | undefined

説明

注釈領域の塗りつぶし色

'red'

areaColorOpacity

Type: number | undefined

説明

注釈領域の塗りつぶし不透明度

0.5

areaBorderColor

Type: string | undefined

説明

注釈領域の枠線色

'red'

areaBorderWidth

Type: number | undefined

説明

注釈領域の枠線幅

2

areaBorderRadius

Type: number | undefined

説明

注釈領域の枠線角丸

4

areaLineDash

Type: number[] | undefined

説明

注釈領域の枠線スタイル

[2, 2]

outerPadding

Type: number | undefined

説明

注釈領域の余白

0

dimensionLinkage

Type: DimensionLinkage | undefined

説明

チャートでピボット機能または指標の組み合わせが有効な場合、次元連動機能を有効にするかどうか。

ある次元値に hover したとき、他のチャート内の同じ次元値のデータを連動してハイライトします。

ピボットチャート次元連動設定

enable

Type: false | true

説明

ピボットチャートの次元連動を有効にするかどうか

showTooltip

Type: boolean | undefined

説明

すべての次元に対応する子チャートの Tooltip 情報を表示するかどうか

showLabel

Type: boolean | undefined

説明

crosshair に対応するラベルを表示するかどうか

locale

Type: "zh-CN" | "en-US" | "ja-JP" | "de-DE" | "id-ID" | "fr-FR" | "ko-KR" | "vi-VN" | undefined

説明

チャートの言語設定。'zh-CN' と 'en-US' の 2 言語をサポートします。intl.setLocale('zh-CN') を呼び出して言語を設定することもできます

boxMaxWidth

Type: string | number | undefined

説明

Box Plot の最大幅。絶対ピクセル値またはパーセント(例: '10%')で設定できます。

boxGapInGroup

Type: string | number | undefined

説明

グループ化 Box Plot の各グループ内の間隔。絶対ピクセル値またはパーセント(例: '10%')で設定できます。