Skip to content

Commit fac6120

Browse files
committed
rename preset set
1 parent 499fc02 commit fac6120

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/apps/weblib/ts-api/plugins/presets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export default class Presets {
182182
}
183183

184184
private _getMainAxis(presetName: PresetNames): keyof Config.Channels {
185-
const yAxisPresets = new Set([
185+
const presetsWithYMainAxis = new Set([
186186
'bar',
187187
'groupedBar',
188188
'stackedBar',
@@ -198,7 +198,7 @@ export default class Presets {
198198
'nestedDonut'
199199
])
200200

201-
return yAxisPresets.has(presetName) ? 'y' : 'x'
201+
return presetsWithYMainAxis.has(presetName) ? 'y' : 'x'
202202
}
203203

204204
private _buildPresetConfig(presetName: PresetNames, config: Config.Chart): Config.Chart {

0 commit comments

Comments
 (0)