Skip to content

Commit b7c903d

Browse files
committed
fix: remove default axis logic in radar spec transformer
1 parent 3c283c6 commit b7c903d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

packages/vchart/src/chart/radar/radar-transformer.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,6 @@ export class RadarChartSpecTransformer<
3030

3131
transformSpec(spec: T) {
3232
super.transformSpec(spec);
33-
//默认不显示轴的domainLine和Tick
34-
(spec.axes ?? []).forEach((axis: any) => {
35-
if (axis.orient === 'radius') {
36-
['domainLine', 'label', 'tick'].forEach(configName => {
37-
if (!axis[configName]) {
38-
axis[configName] = { visible: false };
39-
}
40-
});
41-
if (!axis.grid) {
42-
axis.grid = { visible: true };
43-
}
44-
}
45-
});
4633

4734
// set default config for crosshair
4835
spec.crosshair = array(spec.crosshair || {}).map(crosshairCfg => {

0 commit comments

Comments
 (0)