728x90
반응형
x축의 Label의 길이가 너무 길면 중간중간 라벨이 생략된 채로 차트가 나오게 됩니다.
...,
xAxis: [
{
...,
axisLabel: {
rotate: 30,
interval: 0
}
}
],
...
axisLabel에 rotate 로 회전을 주고 interval 을 0으로 하면 모든 라벨이 보입니다.
참고 : https://stackoverflow.com/questions/44076557/echarts-how-to-show-all-axis-labels
ECharts: how to show all axis labels?
Echarts seems to have a nice feature that automatically chooses which labels to display depending on the space provided. However, this algorithm seems to be bit too aggressive at times and does not...
stackoverflow.com
728x90
반응형
'Dev > js' 카테고리의 다른 글
js 동적 테이블 만드는 두 가지 방법 (0) | 2022.05.10 |
---|---|
innerHTML vs textContent 차이 및 활용법 (0) | 2022.05.09 |
morris 차트 웹페이지에 사용하기 (0) | 2022.05.06 |
echart 자동 사이즈 조정 / resize (0) | 2022.04.29 |