mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
Merge pull request #13934 from dataease/pr@dev-v2@chart-default-confi-i18n
feat(图表): 国际化(图表一些配置的默认值)
This commit is contained in:
commit
67869d32e6
@ -1865,7 +1865,8 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr
|
||||
field_is_empty_export_error: 'No fields available, unable to export',
|
||||
chart_symbolic_map: 'Symbolic map',
|
||||
chart_stock_line: 'K line',
|
||||
liquid_condition_style_tips: `Condition style settings, determine water wave chart interval colors, leave blank to disable thresholds, range (0-100), incremental levels<br>Example: input 30,70; this means: divided into 3 segments, namely [0,30], [30,70], [70,100]`
|
||||
liquid_condition_style_tips: `Condition style settings, determine water wave chart interval colors, leave blank to disable thresholds, range (0-100), incremental levels<br>Example: input 30,70; this means: divided into 3 segments, namely [0,30], [30,70], [70,100]`,
|
||||
conversion_rate: 'Conversion rate'
|
||||
},
|
||||
dataset: {
|
||||
scope_edit: 'only effective when editing',
|
||||
|
@ -1825,7 +1825,8 @@ export default {
|
||||
field_is_empty_export_error: '目前無欄位,無法匯出',
|
||||
chart_symbolic_map: '符號地圖',
|
||||
chart_stock_line: 'K 線圖',
|
||||
liquid_condition_style_tips: `條件樣式設定,決定水波圖區間顏色,為空則不啟用閾值,範圍(0-100),逐級遞增<br/>例如:輸入 30,70;表示:分為3段,分別為[0,30],[30,70],[70,100]`
|
||||
liquid_condition_style_tips: `條件樣式設定,決定水波圖區間顏色,為空則不啟用閾值,範圍(0-100),逐級遞增<br/>例如:輸入 30,70;表示:分為3段,分別為[0,30],[30,70],[70,100]`,
|
||||
conversion_rate: '轉換率'
|
||||
},
|
||||
dataset: {
|
||||
scope_edit: '僅編輯時生效',
|
||||
|
@ -1827,7 +1827,8 @@ export default {
|
||||
field_is_empty_export_error: '当前无字段,无法导出',
|
||||
chart_symbolic_map: '符号地图',
|
||||
chart_stock_line: 'K 线图',
|
||||
liquid_condition_style_tips: `条件样式设置,决定水波图颜色,为空则不开启阈值,范围(0-100),逐级递增<br/>例如:输入 30,70;表示:分为3段,分别为[0,30],[30,70],[70,100]`
|
||||
liquid_condition_style_tips: `条件样式设置,决定水波图颜色,为空则不开启阈值,范围(0-100),逐级递增<br/>例如:输入 30,70;表示:分为3段,分别为[0,30],[30,70],[70,100]`,
|
||||
conversion_rate: '转化率'
|
||||
},
|
||||
dataset: {
|
||||
scope_edit: '仅编辑时生效',
|
||||
|
@ -336,7 +336,7 @@ export const DEFAULT_LABEL: ChartLabelAttr = {
|
||||
conversionTag: {
|
||||
show: false,
|
||||
precision: 2,
|
||||
text: '转化率'
|
||||
text: t('chart.conversion_rate')
|
||||
},
|
||||
showTotal: false,
|
||||
totalFontSize: 12,
|
||||
@ -374,8 +374,8 @@ export const DEFAULT_TABLE_TOTAL: ChartTableTotalAttr = {
|
||||
showSubTotals: true,
|
||||
reverseLayout: false,
|
||||
reverseSubLayout: false,
|
||||
label: '总计',
|
||||
subLabel: '小计',
|
||||
label: t('chart.total_show'),
|
||||
subLabel: t('chart.sub_total_show'),
|
||||
subTotalsDimensions: [],
|
||||
calcTotals: {
|
||||
aggregation: 'SUM',
|
||||
@ -393,8 +393,8 @@ export const DEFAULT_TABLE_TOTAL: ChartTableTotalAttr = {
|
||||
showSubTotals: true,
|
||||
reverseLayout: false,
|
||||
reverseSubLayout: false,
|
||||
label: '总计',
|
||||
subLabel: '小计',
|
||||
label: t('chart.total_show'),
|
||||
subLabel: t('chart.sub_total_show'),
|
||||
subTotalsDimensions: [],
|
||||
calcTotals: {
|
||||
aggregation: 'SUM',
|
||||
@ -409,7 +409,7 @@ export const DEFAULT_TABLE_TOTAL: ChartTableTotalAttr = {
|
||||
}
|
||||
}
|
||||
export const DEFAULT_TABLE_HEADER: ChartTableHeaderAttr = {
|
||||
indexLabel: '序号',
|
||||
indexLabel: t('relation.index'),
|
||||
showIndex: false,
|
||||
tableHeaderAlign: 'left',
|
||||
tableHeaderBgColor: '#6D9A49',
|
||||
@ -1536,7 +1536,7 @@ export const CHART_TYPE_CONFIGS = [
|
||||
},
|
||||
{
|
||||
category: 'other',
|
||||
title: '其他',
|
||||
title: t('datasource.other'),
|
||||
display: 'hidden',
|
||||
details: [
|
||||
{
|
||||
@ -1614,11 +1614,11 @@ export const DEFAULT_BASIC_STYLE: ChartBasicStyle = {
|
||||
tableLayoutMode: 'grid',
|
||||
calcTopN: false,
|
||||
topN: 5,
|
||||
topNLabel: '其他',
|
||||
topNLabel: t('datasource.other'),
|
||||
gaugeAxisLine: true,
|
||||
gaugePercentLabel: true,
|
||||
showSummary: false,
|
||||
summaryLabel: '总计',
|
||||
summaryLabel: t('chart.total_show'),
|
||||
seriesColor: [],
|
||||
layout: 'horizontal',
|
||||
mapSymbolSizeMin: 4,
|
||||
@ -1642,7 +1642,7 @@ export const DEFAULT_BASIC_STYLE: ChartBasicStyle = {
|
||||
|
||||
export const BASE_VIEW_CONFIG = {
|
||||
id: '', // 图表id
|
||||
title: '图表',
|
||||
title: t('data_set.view'),
|
||||
sceneId: 0, // 仪表板id
|
||||
tableId: '', // 数据集id
|
||||
type: 'bar',
|
||||
|
Loading…
Reference in New Issue
Block a user