[Visualizations] Update the texts on the wizard (#82926)

* [Visualizations] Update the texts on the wizard

* Fix functional test

* Final texts

* Fix heatmap description

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Stratoula Kalafateli 2020-11-24 08:54:40 +02:00 committed by GitHub
parent ba7a8723ed
commit cac95a3bf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 22 additions and 54 deletions

View file

@ -30,7 +30,7 @@ export const createMetricVisTypeDefinition = (): BaseVisTypeOptions => ({
title: i18n.translate('visTypeMetric.metricTitle', { defaultMessage: 'Metric' }),
icon: 'visMetric',
description: i18n.translate('visTypeMetric.metricDescription', {
defaultMessage: 'Display a calculation as a single number',
defaultMessage: 'Show a calculation as a single number.',
}),
toExpressionAst,
visConfig: {

View file

@ -29,11 +29,11 @@ import { TableVisParams } from './types';
export const tableVisTypeDefinition: BaseVisTypeOptions<TableVisParams> = {
name: 'table',
title: i18n.translate('visTypeTable.tableVisTitle', {
defaultMessage: 'Data Table',
defaultMessage: 'Data table',
}),
icon: 'visTable',
description: i18n.translate('visTypeTable.tableVisDescription', {
defaultMessage: 'Display values in a table',
defaultMessage: 'Display data in rows and columns.',
}),
getSupportedTriggers: () => {
return [VIS_EVENT_TO_TRIGGER.filter];

View file

@ -27,13 +27,13 @@ import { toExpressionAst } from './to_ast';
export const tagCloudVisTypeDefinition = {
name: 'tagcloud',
title: i18n.translate('visTypeTagCloud.vis.tagCloudTitle', { defaultMessage: 'Tag Cloud' }),
title: i18n.translate('visTypeTagCloud.vis.tagCloudTitle', { defaultMessage: 'Tag cloud' }),
icon: 'visTagCloud',
getSupportedTriggers: () => {
return [VIS_EVENT_TO_TRIGGER.filter];
},
description: i18n.translate('visTypeTagCloud.vis.tagCloudDescription', {
defaultMessage: 'A group of words, sized according to their importance',
defaultMessage: 'Display word frequency with font size.',
}),
visConfig: {
defaults: {

View file

@ -42,7 +42,7 @@ export function getTimelionVisDefinition(dependencies: TimelionVisDependencies)
title: 'Timelion',
icon: 'visTimelion',
description: i18n.translate('timelion.timelionDescription', {
defaultMessage: 'Build time-series using functional expressions',
defaultMessage: 'Show time series data on a graph.',
}),
visConfig: {
defaults: {

View file

@ -47,7 +47,7 @@ export const areaVisTypeDefinition: BaseVisTypeOptions<BasicVislibParams> = {
title: i18n.translate('visTypeVislib.area.areaTitle', { defaultMessage: 'Area' }),
icon: 'visArea',
description: i18n.translate('visTypeVislib.area.areaDescription', {
defaultMessage: 'Emphasize the quantity beneath a line chart',
defaultMessage: 'Emphasize the data between an axis and a line.',
}),
getSupportedTriggers: () => [VIS_EVENT_TO_TRIGGER.filter, VIS_EVENT_TO_TRIGGER.brush],
toExpressionAst,

View file

@ -61,7 +61,7 @@ export const gaugeVisTypeDefinition: BaseVisTypeOptions<BasicVislibParams> = {
title: i18n.translate('visTypeVislib.gauge.gaugeTitle', { defaultMessage: 'Gauge' }),
icon: 'visGauge',
description: i18n.translate('visTypeVislib.gauge.gaugeDescription', {
defaultMessage: 'Gauges indicate the status of a metric.',
defaultMessage: 'Show the status of a metric.',
}),
toExpressionAst,
visConfig: {

View file

@ -33,7 +33,7 @@ export const goalVisTypeDefinition: BaseVisTypeOptions<BasicVislibParams> = {
title: i18n.translate('visTypeVislib.goal.goalTitle', { defaultMessage: 'Goal' }),
icon: 'visGoal',
description: i18n.translate('visTypeVislib.goal.goalDescription', {
defaultMessage: 'A goal chart indicates how close you are to your final goal.',
defaultMessage: 'Track how a metric progresses to a goal.',
}),
toExpressionAst,
visConfig: {

View file

@ -43,10 +43,10 @@ export interface HeatmapVisParams extends CommonVislibParams, ColorSchemaParams
export const heatmapVisTypeDefinition: BaseVisTypeOptions<BasicVislibParams> = {
name: 'heatmap',
title: i18n.translate('visTypeVislib.heatmap.heatmapTitle', { defaultMessage: 'Heat Map' }),
title: i18n.translate('visTypeVislib.heatmap.heatmapTitle', { defaultMessage: 'Heat map' }),
icon: 'heatmap',
description: i18n.translate('visTypeVislib.heatmap.heatmapDescription', {
defaultMessage: 'Shade cells within a matrix',
defaultMessage: 'Shade data in cells in a matrix.',
}),
getSupportedTriggers: () => [VIS_EVENT_TO_TRIGGER.filter],
toExpressionAst,

View file

@ -44,11 +44,11 @@ import { toExpressionAst } from './to_ast';
export const histogramVisTypeDefinition: BaseVisTypeOptions<BasicVislibParams> = {
name: 'histogram',
title: i18n.translate('visTypeVislib.histogram.histogramTitle', {
defaultMessage: 'Vertical Bar',
defaultMessage: 'Vertical bar',
}),
icon: 'visBarVertical',
description: i18n.translate('visTypeVislib.histogram.histogramDescription', {
defaultMessage: 'Assign a continuous variable to each axis',
defaultMessage: 'Present data in vertical bars on an axis.',
}),
getSupportedTriggers: () => [VIS_EVENT_TO_TRIGGER.filter, VIS_EVENT_TO_TRIGGER.brush],
toExpressionAst,

View file

@ -42,11 +42,11 @@ import { toExpressionAst } from './to_ast';
export const horizontalBarVisTypeDefinition: BaseVisTypeOptions<BasicVislibParams> = {
name: 'horizontal_bar',
title: i18n.translate('visTypeVislib.horizontalBar.horizontalBarTitle', {
defaultMessage: 'Horizontal Bar',
defaultMessage: 'Horizontal bar',
}),
icon: 'visBarHorizontal',
description: i18n.translate('visTypeVislib.horizontalBar.horizontalBarDescription', {
defaultMessage: 'Assign a continuous variable to each axis',
defaultMessage: 'Present data in horizontal bars on an axis.',
}),
getSupportedTriggers: () => [VIS_EVENT_TO_TRIGGER.filter, VIS_EVENT_TO_TRIGGER.brush],
toExpressionAst,

View file

@ -45,7 +45,7 @@ export const lineVisTypeDefinition: BaseVisTypeOptions<BasicVislibParams> = {
title: i18n.translate('visTypeVislib.line.lineTitle', { defaultMessage: 'Line' }),
icon: 'visLine',
description: i18n.translate('visTypeVislib.line.lineDescription', {
defaultMessage: 'Emphasize trends',
defaultMessage: 'Display data as a series of points.',
}),
getSupportedTriggers: () => [VIS_EVENT_TO_TRIGGER.filter, VIS_EVENT_TO_TRIGGER.brush],
toExpressionAst,

View file

@ -43,7 +43,7 @@ export const pieVisTypeDefinition: BaseVisTypeOptions<PieVisParams> = {
title: i18n.translate('visTypeVislib.pie.pieTitle', { defaultMessage: 'Pie' }),
icon: 'visPie',
description: i18n.translate('visTypeVislib.pie.pieDescription', {
defaultMessage: 'Compare parts of a whole',
defaultMessage: 'Compare data in proportion to a whole.',
}),
getSupportedTriggers: () => [VIS_EVENT_TO_TRIGGER.filter],
toExpressionAst,

View file

@ -49,18 +49,18 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
let expectedChartTypes = [
'Area',
'Coordinate Map',
'Data Table',
'Data table',
'Gauge',
'Goal',
'Heat Map',
'Horizontal Bar',
'Heat map',
'Horizontal bar',
'Line',
'Metric',
'Pie',
'Region Map',
'Tag Cloud',
'Tag cloud',
'Timelion',
'Vertical Bar',
'Vertical bar',
];
if (!isOss) {
expectedChartTypes = _.remove(expectedChartTypes, function (n) {

View file

@ -3453,7 +3453,6 @@
"timelion.serverSideErrors.wrongFunctionArgumentTypeErrorMessage": "{functionName} ({argumentName}) は {requiredTypes} の内の 1 つでなければなりません。{actualType} を入手",
"timelion.serverSideErrors.yaxisFunction.notSupportedUnitTypeErrorMessage": "{units} はサポートされているユニットタイプではありません。.",
"timelion.serverSideErrors.yaxisFunction.notValidCurrencyFormatErrorMessage": "通貨は 3 文字のコードでなければなりません",
"timelion.timelionDescription": "関数式で時系列チャートを作成します。",
"timelion.topNavMenu.addChartButtonAriaLabel": "チャートを追加",
"timelion.topNavMenu.addChartButtonLabel": "追加",
"timelion.topNavMenu.delete.modal.confirmButtonLabel": "削除",
@ -3693,7 +3692,6 @@
"visTypeMetric.function.showLabels.help": "メトリック値の下にラベルを表示します。",
"visTypeMetric.function.subText.help": "メトリックの下に表示するカスタムテキスト",
"visTypeMetric.function.useRanges.help": "有効な色範囲です。",
"visTypeMetric.metricDescription": "計算結果を単独の数字として表示します。",
"visTypeMetric.metricTitle": "メトリック",
"visTypeMetric.params.color.useForLabel": "使用する色",
"visTypeMetric.params.percentageModeLabel": "パーセンテージモード",
@ -3719,11 +3717,9 @@
"visTypeTable.params.showPartialRowsTip": "部分データのある行を表示。表示されていなくてもすべてのバケット/レベルのメトリックが計算されます。",
"visTypeTable.params.showTotalLabel": "合計を表示",
"visTypeTable.params.totalFunctionLabel": "合計機能",
"visTypeTable.tableVisDescription": "テーブルに値を表示します。",
"visTypeTable.tableVisEditorConfig.schemas.bucketTitle": "行を分割",
"visTypeTable.tableVisEditorConfig.schemas.metricTitle": "メトリック",
"visTypeTable.tableVisEditorConfig.schemas.splitTitle": "テーブルを分割",
"visTypeTable.tableVisTitle": "データテーブル",
"visTypeTable.totalAggregations.averageText": "平均",
"visTypeTable.totalAggregations.countText": "カウント",
"visTypeTable.totalAggregations.maxText": "最高",
@ -3745,8 +3741,6 @@
"visTypeTagCloud.vis.editorConfig.scales.squareRootText": "平方根",
"visTypeTagCloud.vis.schemas.metricTitle": "タグサイズ",
"visTypeTagCloud.vis.schemas.segmentTitle": "タグ",
"visTypeTagCloud.vis.tagCloudDescription": "重要度に基づき大きさを変えた単語のグループ表示です。",
"visTypeTagCloud.vis.tagCloudTitle": "タグクラウド",
"visTypeTagCloud.visParams.fontSizeLabel": "フォントサイズ範囲 (ピクセル)",
"visTypeTagCloud.visParams.orientationsLabel": "方向",
"visTypeTagCloud.visParams.showLabelToggleLabel": "ラベルを表示",
@ -4344,7 +4338,6 @@
"visTypeVislib.advancedSettings.visualization.heatmap.maxBucketsText": "1つのデータソースが返せるバケットの最大数です。値が大きいとブラウザのレンダリング速度が下がる可能性があります。",
"visTypeVislib.advancedSettings.visualization.heatmap.maxBucketsTitle": "ヒートマップの最大バケット数",
"visTypeVislib.aggResponse.allDocsTitle": "すべてのドキュメント",
"visTypeVislib.area.areaDescription": "折れ線グラフの下の数量を強調します。",
"visTypeVislib.area.areaTitle": "エリア",
"visTypeVislib.area.countText": "カウント",
"visTypeVislib.area.groupTitle": "系列を分割",
@ -4463,26 +4456,19 @@
"visTypeVislib.gauge.gaugeTypes.circleText": "円",
"visTypeVislib.gauge.groupTitle": "グループを分割",
"visTypeVislib.gauge.metricTitle": "メトリック",
"visTypeVislib.goal.goalDescription": "ゴールチャートは、最終目標にどれだけ近いかを示します。",
"visTypeVislib.goal.goalTitle": "ゴール",
"visTypeVislib.goal.groupTitle": "グループを分割",
"visTypeVislib.goal.metricTitle": "メトリック",
"visTypeVislib.heatmap.groupTitle": "Y 軸",
"visTypeVislib.heatmap.heatmapDescription": "マトリックス内のセルに影をつける。",
"visTypeVislib.heatmap.heatmapTitle": "ヒートマップ",
"visTypeVislib.heatmap.metricTitle": "値",
"visTypeVislib.heatmap.segmentTitle": "X 軸",
"visTypeVislib.heatmap.splitTitle": "チャートを分割",
"visTypeVislib.histogram.groupTitle": "系列を分割",
"visTypeVislib.histogram.histogramDescription": "連続変数を各軸に割り当てる。",
"visTypeVislib.histogram.histogramTitle": "縦棒",
"visTypeVislib.histogram.metricTitle": "Y 軸",
"visTypeVislib.histogram.radiusTitle": "点のサイズ",
"visTypeVislib.histogram.segmentTitle": "X 軸",
"visTypeVislib.histogram.splitTitle": "チャートを分割",
"visTypeVislib.horizontalBar.groupTitle": "系列を分割",
"visTypeVislib.horizontalBar.horizontalBarDescription": "連続変数を各軸に割り当てる。",
"visTypeVislib.horizontalBar.horizontalBarTitle": "横棒",
"visTypeVislib.horizontalBar.metricTitle": "Y 軸",
"visTypeVislib.horizontalBar.radiusTitle": "点のサイズ",
"visTypeVislib.horizontalBar.segmentTitle": "X 軸",
@ -4495,14 +4481,12 @@
"visTypeVislib.legendPositions.rightText": "右",
"visTypeVislib.legendPositions.topText": "トップ",
"visTypeVislib.line.groupTitle": "系列を分割",
"visTypeVislib.line.lineDescription": "トレンドを強調します。",
"visTypeVislib.line.lineTitle": "折れ線",
"visTypeVislib.line.metricTitle": "Y 軸",
"visTypeVislib.line.radiusTitle": "点のサイズ",
"visTypeVislib.line.segmentTitle": "X 軸",
"visTypeVislib.line.splitTitle": "チャートを分割",
"visTypeVislib.pie.metricTitle": "サイズのスライス",
"visTypeVislib.pie.pieDescription": "全体に対する内訳を表現する。",
"visTypeVislib.pie.pieTitle": "パイ",
"visTypeVislib.pie.segmentTitle": "スライスの分割",
"visTypeVislib.pie.splitTitle": "チャートを分割",

View file

@ -3454,7 +3454,6 @@
"timelion.serverSideErrors.wrongFunctionArgumentTypeErrorMessage": "{functionName}({argumentName}) 必须是 {requiredTypes} 之一。得到:{actualType}",
"timelion.serverSideErrors.yaxisFunction.notSupportedUnitTypeErrorMessage": "{units} 为不受支持的单元类型。",
"timelion.serverSideErrors.yaxisFunction.notValidCurrencyFormatErrorMessage": "货币必须使用三个字母的代码",
"timelion.timelionDescription": "使用函数表达式构建时间序列",
"timelion.topNavMenu.addChartButtonAriaLabel": "添加图表",
"timelion.topNavMenu.addChartButtonLabel": "添加",
"timelion.topNavMenu.delete.modal.confirmButtonLabel": "删除",
@ -3694,7 +3693,6 @@
"visTypeMetric.function.showLabels.help": "在指标值下显示标签。",
"visTypeMetric.function.subText.help": "要在指标下显示的定制文本",
"visTypeMetric.function.useRanges.help": "已启用颜色范围。",
"visTypeMetric.metricDescription": "将计算结果显示为单个数字",
"visTypeMetric.metricTitle": "指标",
"visTypeMetric.params.color.useForLabel": "将颜色用于",
"visTypeMetric.params.percentageModeLabel": "百分比模式",
@ -3720,11 +3718,9 @@
"visTypeTable.params.showPartialRowsTip": "显示具有部分数据的行。这仍将计算每个桶/级别的指标,即使它们未显示。",
"visTypeTable.params.showTotalLabel": "显示汇总",
"visTypeTable.params.totalFunctionLabel": "汇总函数",
"visTypeTable.tableVisDescription": "在表中显示值",
"visTypeTable.tableVisEditorConfig.schemas.bucketTitle": "拆分行",
"visTypeTable.tableVisEditorConfig.schemas.metricTitle": "指标",
"visTypeTable.tableVisEditorConfig.schemas.splitTitle": "拆分表",
"visTypeTable.tableVisTitle": "数据表",
"visTypeTable.totalAggregations.averageText": "平均值",
"visTypeTable.totalAggregations.countText": "计数",
"visTypeTable.totalAggregations.maxText": "最大值",
@ -3746,8 +3742,6 @@
"visTypeTagCloud.vis.editorConfig.scales.squareRootText": "平方根",
"visTypeTagCloud.vis.schemas.metricTitle": "标记大小",
"visTypeTagCloud.vis.schemas.segmentTitle": "标记",
"visTypeTagCloud.vis.tagCloudDescription": "一组字词,可根据其重要性调整大小",
"visTypeTagCloud.vis.tagCloudTitle": "标签云图",
"visTypeTagCloud.visParams.fontSizeLabel": "字体大小范围(像素)",
"visTypeTagCloud.visParams.orientationsLabel": "方向",
"visTypeTagCloud.visParams.showLabelToggleLabel": "显示标签",
@ -4346,7 +4340,6 @@
"visTypeVislib.advancedSettings.visualization.heatmap.maxBucketsText": "单个数据源可以返回的最大存储桶数目。较高的数目可能对浏览器呈现性能有负面影响",
"visTypeVislib.advancedSettings.visualization.heatmap.maxBucketsTitle": "热图最大存储桶数",
"visTypeVislib.aggResponse.allDocsTitle": "所有文档",
"visTypeVislib.area.areaDescription": "突出折线图下方的数量",
"visTypeVislib.area.areaTitle": "面积图",
"visTypeVislib.area.countText": "计数",
"visTypeVislib.area.groupTitle": "拆分序列",
@ -4465,26 +4458,19 @@
"visTypeVislib.gauge.gaugeTypes.circleText": "圆形",
"visTypeVislib.gauge.groupTitle": "拆分组",
"visTypeVislib.gauge.metricTitle": "指标",
"visTypeVislib.goal.goalDescription": "目标图指示与最终目标的接近程度。",
"visTypeVislib.goal.goalTitle": "目标图",
"visTypeVislib.goal.groupTitle": "拆分组",
"visTypeVislib.goal.metricTitle": "指标",
"visTypeVislib.heatmap.groupTitle": "Y 轴",
"visTypeVislib.heatmap.heatmapDescription": "为矩阵中的单元格添加阴影",
"visTypeVislib.heatmap.heatmapTitle": "热力图",
"visTypeVislib.heatmap.metricTitle": "值",
"visTypeVislib.heatmap.segmentTitle": "X 轴",
"visTypeVislib.heatmap.splitTitle": "拆分图表",
"visTypeVislib.histogram.groupTitle": "拆分序列",
"visTypeVislib.histogram.histogramDescription": "向每个轴赋予连续变量",
"visTypeVislib.histogram.histogramTitle": "垂直条形图",
"visTypeVislib.histogram.metricTitle": "Y 轴",
"visTypeVislib.histogram.radiusTitle": "点大小",
"visTypeVislib.histogram.segmentTitle": "X 轴",
"visTypeVislib.histogram.splitTitle": "拆分图表",
"visTypeVislib.horizontalBar.groupTitle": "拆分序列",
"visTypeVislib.horizontalBar.horizontalBarDescription": "向每个轴赋予连续变量",
"visTypeVislib.horizontalBar.horizontalBarTitle": "水平条形图",
"visTypeVislib.horizontalBar.metricTitle": "Y 轴",
"visTypeVislib.horizontalBar.radiusTitle": "点大小",
"visTypeVislib.horizontalBar.segmentTitle": "X 轴",
@ -4497,14 +4483,12 @@
"visTypeVislib.legendPositions.rightText": "右",
"visTypeVislib.legendPositions.topText": "上",
"visTypeVislib.line.groupTitle": "拆分序列",
"visTypeVislib.line.lineDescription": "突出趋势",
"visTypeVislib.line.lineTitle": "折线图",
"visTypeVislib.line.metricTitle": "Y 轴",
"visTypeVislib.line.radiusTitle": "点大小",
"visTypeVislib.line.segmentTitle": "X 轴",
"visTypeVislib.line.splitTitle": "拆分图表",
"visTypeVislib.pie.metricTitle": "切片大小",
"visTypeVislib.pie.pieDescription": "比较整体的各个部分",
"visTypeVislib.pie.pieTitle": "饼图",
"visTypeVislib.pie.segmentTitle": "拆分切片",
"visTypeVislib.pie.splitTitle": "拆分图表",