Radar
Point layers also support a special layer type: radar charts.
accomplish
Let’s introduce how to draw a common radar chart.
- you can
L7Found on the official websiteOnline case
import { Scene, PointLayer } from '@antv/l7';
import { GaodeMap } from '@antv/l7-maps';
const scene = new Scene({
id: 'map',
map: new GaodeMap({
center: [120, 30],
zoom: 13,
}),
});
const layer = new PointLayer()
.source([{ lng: 120, lat: 30 }], {
parser: {
type: 'json',
x: 'lng',
y: 'lat',
},
})
.shape('radar')
.size(100)
.color('#d00')
.style({
speed: 5,
})
.animate(true);
source
Radar charts accept plain point data.
shape
Radar chartshapeis a fixed valueradar。
animate
The radar chart needs to beanimateSet astruewill take effect
.animate(true)
.animate({
enable: true
})
style
passspeedSet rotation speed, default is1, the larger the value, the faster the speed.