Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -29299,8 +29299,6 @@
"xpack.ml.splom.randomScoringLabel": "Zufällige Wertung",
"xpack.ml.splom.sampleSizeInfoTooltip": "Anzahl der Dokumente, die in der Streudiagrammmatrix angezeigt werden sollen.",
"xpack.ml.splom.sampleSizeLabel": "Stichprobengröße",
"xpack.ml.splom.toggleOff": "Aus",
"xpack.ml.splom.toggleOn": "An",
"xpack.ml.splomSpec.outlierScoreThresholdName": "Schwellenwert für Ausreißerwert:",
"xpack.ml.stepDefineForm.invalidQuery": "Ungültige Abfrage",
"xpack.ml.stepDefineForm.queryPlaceholderKql": "Suchen Sie z. B. nach {example}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29321,8 +29321,6 @@
"xpack.ml.splom.randomScoringLabel": "Scores aléatoires",
"xpack.ml.splom.sampleSizeInfoTooltip": "Quantité de documents à afficher dans la matrice de nuages de points.",
"xpack.ml.splom.sampleSizeLabel": "Taille de l'échantillon",
"xpack.ml.splom.toggleOff": "Arrêt",
"xpack.ml.splom.toggleOn": "Marche",
"xpack.ml.splomSpec.outlierScoreThresholdName": "Seuil de score d'aberrations :",
"xpack.ml.stepDefineForm.invalidQuery": "Requête non valide",
"xpack.ml.stepDefineForm.queryPlaceholderKql": "Rechercher par ex. {example}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29415,8 +29415,6 @@
"xpack.ml.splom.randomScoringLabel": "ランダムスコアリング",
"xpack.ml.splom.sampleSizeInfoTooltip": "散布図マトリックスに表示するドキュメントの数。",
"xpack.ml.splom.sampleSizeLabel": "サンプルサイズ",
"xpack.ml.splom.toggleOff": "オフ",
"xpack.ml.splom.toggleOn": "オン",
"xpack.ml.splomSpec.outlierScoreThresholdName": "異常スコアしきい値:",
"xpack.ml.stepDefineForm.invalidQuery": "無効なクエリー",
"xpack.ml.stepDefineForm.queryPlaceholderKql": "{example}の検索",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29414,8 +29414,6 @@
"xpack.ml.splom.randomScoringLabel": "随机评分",
"xpack.ml.splom.sampleSizeInfoTooltip": "在散点图矩阵中药显示的文档数量。",
"xpack.ml.splom.sampleSizeLabel": "样例大小",
"xpack.ml.splom.toggleOff": "关闭",
"xpack.ml.splom.toggleOn": "开启",
"xpack.ml.splomSpec.outlierScoreThresholdName": "离群值分数阈值:",
"xpack.ml.stepDefineForm.invalidQuery": "无效查询",
"xpack.ml.stepDefineForm.queryPlaceholderKql": "搜索,如 {example})",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,6 @@ const SCATTERPLOT_MATRIX_DEFAULT_FETCH_SIZE = 1000;
const SCATTERPLOT_MATRIX_DEFAULT_FETCH_MIN_SIZE = 1;
const SCATTERPLOT_MATRIX_DEFAULT_FETCH_MAX_SIZE = 10000;

const TOGGLE_ON = i18n.translate('xpack.ml.splom.toggleOn', {
defaultMessage: 'On',
});
const TOGGLE_OFF = i18n.translate('xpack.ml.splom.toggleOff', {
defaultMessage: 'Off',
});

const sampleSizeOptions = [100, 1000, 10000].map((d) => ({ value: d, text: '' + d }));

interface OptionLabelWithIconTipProps {
Expand All @@ -88,16 +81,11 @@ interface OptionLabelWithIconTipProps {
}

const OptionLabelWithIconTip: FC<OptionLabelWithIconTipProps> = ({ label, tooltip }) => (
<>
<span aria-label={label}>
{label}
<EuiIconTip
content={tooltip}
iconProps={{
className: 'eui-alignTop',
}}
size="s"
/>
</>
&nbsp;
<EuiIconTip content={tooltip} size="s" />
</span>
);

function filterChartableItems(items: estypes.SearchHit[], resultsField?: string) {
Expand Down Expand Up @@ -513,7 +501,8 @@ export const ScatterplotMatrix: FC<ScatterplotMatrixProps> = ({
<EuiSwitch
data-test-subj="mlScatterplotMatrixRandomizeQuerySwitch"
name="mlScatterplotMatrixRandomizeQuery"
label={randomizeQuery ? TOGGLE_ON : TOGGLE_OFF}
label=""
showLabel={false}
checked={randomizeQuery}
onChange={randomizeQueryOnChange}
disabled={isLoading}
Expand All @@ -538,7 +527,8 @@ export const ScatterplotMatrix: FC<ScatterplotMatrixProps> = ({
>
<EuiSwitch
name="mlScatterplotMatrixDynamicSize"
label={dynamicSize ? TOGGLE_ON : TOGGLE_OFF}
label=""
showLabel={false}
checked={dynamicSize}
onChange={dynamicSizeOnChange}
disabled={isLoading}
Expand Down
Loading