background and requirements
recently encountered a demand to draw antenna pattern (also known as lobe pattern, radiation pattern or beam pattern) on the web side.
see
the format of the data source is as follows: an array of 360 in length. The element object of the array has two values, angle and gain, and the angle range is 0-359. The gain value can be positive or negative, which requires a similar pattern to be drawn.
[
{
angel: 0, //
gain: 12.4567 //
},
// ...
{
angel: 120,
gain: -30.2222
}
]
I"d like to ask anyone who has drawn similar graphics and whether there is a js library that can be used.