[Snow-ball]front/ChartJS
[ChartJS] 소수점 표시 제거
Snow-ball
2021. 10. 26. 21:24
반응형
차트js에서 y축의 숫자 소수점을 제거하는 방법은 stepSize: 1 이다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
scales: {
yAxes: [
{
ticks: {
stepSize: 1,
min: 0
}
}
]
// xAxes: [
// {
// barPercentage: 0.7,
// maxBarThickness: 80
// }
// ]
}
|
cs |
베타존 : 네이버쇼핑 스마트스토어
나를 꾸미다 - 인테리어소품 베타존
smartstore.naver.com
반응형