728x90 300x250 SMALL chart.js 포인터2 chart.js 포인터 이미지로 변경하기 chart.js 차트의 pointer 부분을 이미지로 변경하기 그림으로 만들기 위해서는 먼저 새로운 이미지를 생성해서 변수에 넣어줍니다. const heart = new Image(); //새로운이미지 생성 생성된 변수에 이미지 위치를 불러옵니다. heart.src = "../../img/heart.png"; pointerStyle 속성에 변수 이름을 적어줍니다. pointStyle:heart 그러면 이렇게 하트 이미지의 포인터로 변경 된걸 확인할 수 있습니다. 전체 코드 2022. 1. 18. chart.js 포인터 모양 변경하기 chart.js 차트의 pointer 부분을 다른 모양으로 변경하기 포인터를 다른 모양으로 변경하기 위해서 Chart.js에서 pointer 스타일 변경 방법에 대해서 알아봅니다. https://www.chartjs.org/docs/latest/configuration/elements.html#point-styles Elements | Chart.js Elements While chart types provide settings to configure the styling of each dataset, you sometimes want to style all datasets the same way. A common example would be to stroke all of the bars in a ba.. 2022. 1. 17. 이전 1 다음 728x90 반응형 LIST