From 7e52f71d3693f8d5311dbb2bbecc4056d5707524 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 10 Dec 2024 14:57:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96(=E7=83=AD=E5=8A=9B=E5=9B=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/table/t-heatmap.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/t-heatmap.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/t-heatmap.ts index f8e9253ab4..2714773630 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/t-heatmap.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/t-heatmap.ts @@ -67,12 +67,12 @@ export class TableHeatmap extends G2PlotChartView { axis: AxisType[] = ['xAxis', 'xAxisExt', 'extColor', 'filter'] axisConfig: AxisConfig = { xAxis: { - name: `横轴 / ${t('chart.dimension')}`, + name: `${t('chart.x_axis')} / ${t('chart.dimension')}`, type: 'd', limit: 1 }, xAxisExt: { - name: `纵轴 / ${t('chart.dimension')}`, + name: `${t('chart.y_axis')} / ${t('chart.dimension')}`, type: 'd', limit: 1 }, @@ -263,7 +263,7 @@ export class TableHeatmap extends G2PlotChartView { } protected configXAxis(chart: Chart, options: HeatmapOptions): HeatmapOptions { - const xAxis = getXAxis(chart, options) + const xAxis = getXAxis(chart) return { ...options, xAxis: xAxis ? { ...xAxis, grid: null } : false @@ -312,7 +312,7 @@ export class TableHeatmap extends G2PlotChartView { chart.customStyle.legend.orient = 'vertical' chart.customStyle.legend.vPosition = 'center' chart.customStyle.legend.hPosition = 'right' - chart.customStyle.legend.rail = { defaultLength: 100 } + chart.customStyle.legend['rail'] = { defaultLength: 100 } return chart }