Skip to content

Commit

Permalink
fix: remove default axis logic in radar spec transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoluoHe committed Dec 16, 2024
1 parent 3d60d0a commit 1c5cc6f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/vchart/src/chart/radar/radar-transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,6 @@ export class RadarChartSpecTransformer<

transformSpec(spec: T) {
super.transformSpec(spec);
//默认不显示轴的domainLine和Tick
(spec.axes ?? []).forEach((axis: any) => {
if (axis.orient === 'radius') {
['domainLine', 'label', 'tick'].forEach(configName => {
if (!axis[configName]) {
axis[configName] = { visible: false };
}
});
if (!axis.grid) {
axis.grid = { visible: true };
}
}
});

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

0 comments on commit 1c5cc6f

Please sign in to comment.