すべてのタイプの散布図で必要な機能の大部分を定義する抽象
説明
注意事項
例
| 新しい BaseScatterLayer を初期化します。 |
| 各データ ポイントに生成される |
| この ScatterLayer のプロットを表す |
| BaseScatterLayer |
| BaseScatterLayer のプロット |
| 指定の |
| この ChartLayer の内部レイアウトを更新します。 |
新しい BaseScatterLayer を初期化します。
各データ ポイントに生成される
説明
| Type | Description |
| null | 既定値の null は、 |
| この列挙体の要素を使用する場合、その要素は使用される形状となります。各形状の例については、該当するドキュメントを参照してください。 | |
| このタイプのファクトリー プロシージャを指定できます。たとえば、これは |
例
| 例:
ファクトリーとしての | |
![]() | |
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
location = "../docstring-support/gui/charts-doc.scurl"
}
{LayeredChart
width = 15cm,
height = 6cm,
{ScatterLayer
sample-records,
"Age",
"Points",
x-axis-data = {ChartDataSeries sample-records, "Name"},
scatter-shape =
{proc {layer:BaseScatterLayer,
series:ChartDataSeries,
series-index:int,
record:Record,
record-index:int,
shape:ScatterShape,
position:Distance2d,
scatter-shape-x-size:Distance,
scatter-shape-y-size:Distance,
border-width:any,
border-line-style:LineStyle,
fill-pattern-for-series:FillPattern
}:Shape
{return
{if series-index == 0 then
|| First data series uses standard method:
{BaseScatterLayer.default-shape-factory
layer,
series,
series-index,
record,
record-index,
shape,
position,
scatter-shape-x-size,
scatter-shape-y-size,
border-width,
border-line-style,
fill-pattern-for-series
}
else
|| Use a text label.
{TextShape
{series.field.domain.format
record[series.field.name]
},
translation = position,
color = fill-pattern-for-series
}
}
}
}
}
}
|
この ScatterLayer のプロットを表す
説明
BaseScatterLayer
戻り値
説明
BaseScatterLayer のプロット
戻り値
説明
戻り値
説明
例
| 例: グラフの外部での BaseScatterLayer.generate-stock-shape の使用 | |
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
location = "../docstring-support/gui/charts-doc.scurl"
}
{BaseScatterLayer.generate-stock-shape
null,
ScatterShape.star,
{Distance2d .5cm, .5cm},
1cm,
1cm,
1px,
LineStyle.solid,
FillPattern.navy
}
|
説明
指定の
戻り値
説明
説明
例
| 例: ChartLayer.set-data-series-visibility の使用 | |
![]() | |
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
location = "../docstring-support/gui/charts-doc.scurl"
}
{let chart:LayeredChart =
{LayeredChart
width = 12cm,
height = 6cm,
{LineLayer
sample-records,
"Age",
"Points",
"Height",
x-axis-data = {ChartDataSeries sample-records, "Name"},
symbols-at-data-points? = true
}
}
}
{value chart}
{CheckButton
label = "Show Age?",
value = true,
{on ValueFinished at cb:CheckButton do
let layer:ChartLayer = chart.layers[0]
{layer.set-data-series-visibility 0, cb.value}
}
}
{CheckButton
label = "Show Points?",
value = true,
{on ValueFinished at cb:CheckButton do
let layer:ChartLayer = chart.layers[0]
{layer.set-data-series-visibility 1, cb.value}
}
}
{CheckButton
label = "Show Height?",
value = true,
{on ValueFinished at cb:CheckButton do
let layer:ChartLayer = chart.layers[0]
{layer.set-data-series-visibility 2, cb.value}
}
}
|
この ChartLayer の内部レイアウトを更新します。
説明