UNPKG
@toast-ui/chart
Version:
latest (4.6.1)
4.6.1
4.5.0
4.4.3
4.4.2
4.4.1
4.4.0
4.3.6
4.3.5
4.3.4
4.3.3
4.3.2
4.3.1
4.3.0
4.2.1
4.2.0
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0-beta.5
4.0.0-beta.4
4.0.0-beta.3
4.0.0-beta.1
4.0.0-beta.0
4.0.0-bata.2
4.0.0-alpha.4
4.0.0-alpha.3
4.0.0-alpha.2
4.0.0-alpha.1
4.0.0-alpha.0
TOAST UI Application: Chart
ui.toast.com
nhn/tui.chart
@toast-ui/chart
/
dist
/
esm
/
helpers
/
radarSeries.js
8 lines
(7 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
export
function
getRadialRadiusValues
(
labels, size, deleteCount =
0
) {
const
result = labels.
map
(
(
_, index
) =>
(index / (labels.
length
-
1
)) * size);
if
(deleteCount) { result.
splice
(result.
length
- deleteCount); }
return
result; }