Skip to content

Radar

Point layers also support a special layer type: radar charts.

案例

accomplish

Let’s introduce how to draw a common radar chart.

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.

© Copyright 2026 Ant Group Co., Ltd..备案号:京ICP备15032932号-38
Site search
Documentation and examplesType to start searching

Search documentation, APIs, and examples

↑↓Select↵OpenEscClose