Skip to content

Commit d460e58

Browse files
authored
Merge pull request #975 from Cuiyansong/master
refactor(chart): fix many typo
2 parents 2a30bf3 + 90e76ea commit d460e58

File tree

47 files changed

+96
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+96
-113
lines changed

frontend/src/app/components/ChartGraph/BasicBarChart/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ const config: ChartConfig = {
682682
title: 'Y Axis',
683683
},
684684
splitLine: {
685-
title: 'Splite Line',
685+
title: 'Split Line',
686686
showHorizonLine: 'Show Horizontal Line',
687687
showVerticalLine: 'Show Vertical Line',
688688
},

frontend/src/app/components/ChartGraph/BasicTableChart/BasicTableChart.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class BasicTableChart extends ReactChart {
147147
const aggregateConfigs = mixedSectionConfigRows.filter(
148148
r => r.type === ChartDataViewFieldType.NUMERIC,
149149
);
150-
this.dataColumnWidths = this.calcuteFieldsMaxWidth(
150+
this.dataColumnWidths = this.calculateFieldsMaxWidth(
151151
mixedSectionConfigRows,
152152
chartDataSet,
153153
styleConfigs,
@@ -222,7 +222,7 @@ class BasicTableChart extends ReactChart {
222222
.filter(c => c.key === 'mixed')
223223
.flatMap(config => config.rows || []);
224224

225-
this.dataColumnWidths = this.calcuteFieldsMaxWidth(
225+
this.dataColumnWidths = this.calculateFieldsMaxWidth(
226226
mixedSectionConfigRows,
227227
chartDataSet as IChartDataSet<string>,
228228
styleConfigs,
@@ -340,7 +340,7 @@ class BasicTableChart extends ReactChart {
340340
};
341341
}
342342

343-
private calcuteFieldsMaxWidth(
343+
private calculateFieldsMaxWidth(
344344
mixedSectionConfigRows,
345345
chartDataSet: IChartDataSet<string>,
346346
styleConfigs,
@@ -990,7 +990,7 @@ class BasicTableChart extends ReactChart {
990990
: false;
991991
}
992992

993-
private createrEventParams = params => ({
993+
private createEventParams = params => ({
994994
type: 'click',
995995
componentType: 'table',
996996
seriesType: undefined,
@@ -1009,7 +1009,7 @@ class BasicTableChart extends ReactChart {
10091009
pageNo: number,
10101010
aggOperator?: string,
10111011
) {
1012-
const eventParams = this.createrEventParams({
1012+
const eventParams = this.createEventParams({
10131013
seriesType: 'paging-sort-filter',
10141014
seriesName,
10151015
value: {
@@ -1033,7 +1033,7 @@ class BasicTableChart extends ReactChart {
10331033
rowData: any,
10341034
aggOperator?: string,
10351035
) {
1036-
const eventParams = this.createrEventParams({
1036+
const eventParams = this.createEventParams({
10371037
seriesType: 'body',
10381038
name: seriesName,
10391039
data: {

frontend/src/app/components/ChartGraph/ClusterBarChart/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ const config: ChartConfig = {
635635
title: 'Y Axis',
636636
},
637637
splitLine: {
638-
title: 'Splite Line',
638+
title: 'Split Line',
639639
showHorizonLine: 'Show Horizontal Line',
640640
showVerticalLine: 'Show Vertical Line',
641641
},

frontend/src/app/components/ChartGraph/ClusterColumnChart/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ const config: ChartConfig = {
635635
title: 'Y Axis',
636636
},
637637
splitLine: {
638-
title: 'Splite Line',
638+
title: 'Split Line',
639639
showHorizonLine: 'Show Horizontal Line',
640640
showVerticalLine: 'Show Vertical Line',
641641
},

frontend/src/app/components/ChartGraph/NormalOutlineMapChart/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ const config: ChartConfig = {
325325
map: {
326326
title: 'Map',
327327
level: 'Level',
328-
enableZoom: 'Enabel Zoom',
328+
enableZoom: 'Enable Zoom',
329329
backgroundColor: 'Background Color',
330330
borderStyle: 'Border Style',
331331
focusArea: 'Focus Area',

frontend/src/app/components/ChartGraph/PercentageStackBarChart/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ const config: ChartConfig = {
629629
title: 'Y Axis',
630630
},
631631
splitLine: {
632-
title: 'Splite Line',
632+
title: 'Split Line',
633633
showHorizonLine: 'Show Horizontal Line',
634634
showVerticalLine: 'Show Vertical Line',
635635
},

frontend/src/app/components/ChartGraph/PercentageStackColumnChart/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ const config: ChartConfig = {
629629
title: 'Y Axis',
630630
},
631631
splitLine: {
632-
title: 'Splite Line',
632+
title: 'Split Line',
633633
showHorizonLine: 'Show Horizontal Line',
634634
showVerticalLine: 'Show Vertical Line',
635635
},

frontend/src/app/components/ChartGraph/StackBarChart/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ const config: ChartConfig = {
629629
title: 'Y Axis',
630630
},
631631
splitLine: {
632-
title: 'Splite Line',
632+
title: 'Split Line',
633633
showHorizonLine: 'Show Horizontal Line',
634634
showVerticalLine: 'Show Vertical Line',
635635
},

frontend/src/app/components/ChartGraph/StackColumnChart/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ const config: ChartConfig = {
629629
title: 'Y Axis',
630630
},
631631
splitLine: {
632-
title: 'Splite Line',
632+
title: 'Split Line',
633633
showHorizonLine: 'Show Horizontal Line',
634634
showVerticalLine: 'Show Vertical Line',
635635
},

frontend/src/app/components/ChartGraph/WaterfallChart/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ const config: ChartConfig = {
556556
title: 'Y Axis',
557557
},
558558
splitLine: {
559-
title: 'Splite Line',
559+
title: 'Split Line',
560560
showHorizonLine: 'Show Horizontal Line',
561561
showVerticalLine: 'Show Vertical Line',
562562
},

0 commit comments

Comments
 (0)