Merge pull request #13950 from dataease/pr@dev-v2@chart-stock-line-i18n

feat(图表): 国际化(K线图)
This commit is contained in:
jianneng-fit2cloud
2024-12-10 18:31:21 +08:00
committed by GitHub
4 changed files with 8 additions and 5 deletions

View File

@@ -1878,7 +1878,8 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr
"Can read field values in the form of ${'{'}fieldName{'}'} (does not support line breaks) ",
number_of_scales_tip: 'Expected number of axis ticks, not the final result',
assist_line_settings: 'Auxiliary line settings',
invalid_field: 'Invalid field'
invalid_field: 'Invalid field',
k_line_yaxis_tip: 'Open Price-Close Price-Low Price-High Price'
},
dataset: {
scope_edit: 'only effective when editing',

View File

@@ -1837,7 +1837,8 @@ export default {
custom_label_content_tip: "可以使用 ${'{'}fieldName{'}'} 的形式讀取欄位值不支援換行",
number_of_scales_tip: '期望的座標軸刻度數量,非最終結果',
assist_line_settings: '輔助線設置',
invalid_field: '無效欄位'
invalid_field: '無效欄位',
k_line_yaxis_tip: '開盤價-收盤價-最低價-最高價'
},
dataset: {
scope_edit: '僅編輯時生效',

View File

@@ -1839,7 +1839,8 @@ export default {
custom_label_content_tip: "可以${'{'}fieldName{'}'}的形式读取字段值不支持换行",
number_of_scales_tip: '期望的坐标轴刻度数量,非最终结果',
assist_line_settings: '辅助线设置',
invalid_field: '无效字段'
invalid_field: '无效字段',
k_line_yaxis_tip: '开盘价-收盘价-最低价-最高价'
},
dataset: {
scope_edit: '仅编辑时生效',

View File

@@ -47,12 +47,12 @@ export class StockLine extends G2PlotChartView<MixOptions, Mix> {
axis: AxisType[] = ['xAxis', 'yAxis', 'filter', 'extLabel', 'extTooltip']
axisConfig = {
xAxis: {
name: `日期 / ${t('chart.dimension')}`,
name: `${t('common.component.date')} / ${t('chart.dimension')}`,
limit: 1,
type: 'd'
},
yAxis: {
name: `开盘价-收盘价-最低价-最高价 / ${t('chart.quota')}`,
name: `${t('chart.k_line_yaxis_tip')} / ${t('chart.quota')}`,
limit: 4,
type: 'q'
}