BoxPlot
- 推奨フィールド構成: 1個の指標、1個の次元
- データリシェイプをサポート: 少なくとも 1個の指標、0個の次元
箱ひげ図は以下の視覚チャネルをサポートします:
xAxis : X軸チャネル、複数の次元をサポートし、次元値に基づいてX軸へマッピングします
yAxis : Y軸チャネル、複数の指標をサポートし、指標値に基づいてY軸へマッピングします
color : 色チャネル、複数の次元または1つの指標をサポートします。次元の色はデータ系列の区別に使い、指標の色は値をマーク色へ線形マッピングします
tooltip: ツールチップチャネル、複数の次元と複数の指標をサポートし、データ点にマウスを合わせたときに表示されます
label : ラベルチャネル、複数の次元と複数の指標をサポートし、データ点にデータラベルを表示します
箱ひげ図はデータ分布の表示に適しています。X軸はカテゴリ軸(分類データ)、Y軸は数値軸(連続データ)で、箱は縦方向に配置されます。
適用シーン:
- データ項目名が短い場合
- 異なるカテゴリ間の数値を直感的に比較する必要がある場合
- 時系列データの変化傾向を表示する場合
データ要件:
- 少なくとも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 を指し、指標ツリーの構築に使います
指標ツリーの設定方法は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
ラベル値のフォーマット設定。measure の format とマージされ、measure の format の優先度が高くなります。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 フィールドをハイライト
各エリアで利益率が最も高いデータ項目をハイライト
複数条件で絞り込んだデータ項目をハイライト
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
凡例の枠線を有効にするかどうか
次元フィールドの値。配列に対応します
例 アニメーションフィルタ実行結果(ランタイムフィールド)
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
凡例の形状
離散凡例でのみ有効です
例 凡例のフォントサイズ
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
離散凡例でのみ有効です
例 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 フィールドをハイライト
各エリアで利益率が最も高いデータ項目をハイライト
複数条件で絞り込んだデータ項目をハイライト
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, ネットワークリクエスト
例 売上の最大値を注釈線の値として取得
平均値を計算して注釈線に使用
分位値を注釈線として取得
条件に基づいて目標値を計算
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, ネットワークリクエスト
例 売上の最大値を注釈線の値として取得
平均値を計算して注釈線に使用
分位値を注釈線として取得
条件に基づいて目標値を計算
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%')で設定できます。