Skip to content

Commit

Permalink
Clarify Precision function in Timelion Kibana (#58031)
Browse files Browse the repository at this point in the history
* Closes issue 26100
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
rshen91 authored Feb 20, 2020
1 parent 783663f commit 289b2fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/plugins/timelion/server/series_functions/precision.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export default new Chainable('precision', {
name: 'precision',
types: ['number'],
help: i18n.translate('timelion.help.functions.precision.args.precisionHelpText', {
defaultMessage: 'Number of digits to round each value to',
defaultMessage: 'The number of digits to truncate each value to',
}),
},
],
help: i18n.translate('timelion.help.functions.precisionHelpText', {
defaultMessage: 'number of digits to round the decimal portion of the value to',
defaultMessage: 'The number of digits to truncate the decimal portion of the value to',
}),
fn: async function precisionFn(args) {
await alter(args, function(eachSeries, precision) {
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -2697,8 +2697,6 @@
"timelion.help.functions.points.args.symbolHelpText": "点のシンボルです。{validSymbols} の 1 つ",
"timelion.help.functions.points.args.weightHelpText": "点の周りの太さです",
"timelion.help.functions.pointsHelpText": "数列を点として表示します",
"timelion.help.functions.precision.args.precisionHelpText": "各値を四捨五入する桁数です",
"timelion.help.functions.precisionHelpText": "値の小数点以下の四捨五入する桁数です",
"timelion.help.functions.props.args.globalHelpText": "各数列に対し、seriesList にプロップを設定します",
"timelion.help.functions.propsHelpText": "数列に任意のプロパティを設定するため、自己責任で行ってください。例: {example}",
"timelion.help.functions.quandl.args.codeHelpText": "プロットする Quandl コードです。これらは quandl.com に掲載されています。",
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2697,8 +2697,6 @@
"timelion.help.functions.points.args.symbolHelpText": "点符号。以下选项之一:{validSymbols}",
"timelion.help.functions.points.args.weightHelpText": "围绕点的线条粗细",
"timelion.help.functions.pointsHelpText": "将序列显示为点",
"timelion.help.functions.precision.args.precisionHelpText": "将每个值舍入到的小数位数",
"timelion.help.functions.precisionHelpText": "将值的小数部分舍入到的小数位数",
"timelion.help.functions.props.args.globalHelpText": "在 seriesList 与每个序列上设置属性",
"timelion.help.functions.propsHelpText": "在序列上可设置任意属性,但请自担风险。例如 {example}",
"timelion.help.functions.quandl.args.codeHelpText": "要绘图的 quandl 代码。可以在 quandl.com 找到这些内容。",
Expand Down

0 comments on commit 289b2fa

Please sign in to comment.