var a = [1,2,3,4,5,1,2,3]
a.indexOf(3) //2
a.indexOf(6) //-1
scales: {
xAxes: [{
barThickness: 16,
barPercentage: 0.5
maxBarThickness: 100,
}],
}
Increase spacing between legend and chart
javascript – Custom Legend with ChartJS v2.0 – Stack Overflow
[chartjs] 오른쪽에도 y축 값 생성하기 : Multiple Y axis Chart.js (tistory.com)
코딩벌레 :: [JS] 배열속 원하는 값 찾기(indexOf, includes) (tistory.com)
DataTables 사용법 및 예제 JSON, jQuery – Grid 라이브러리 (tistory.com)
javascript – Click event on stacked bar chart – ChartJs – Stack Overflow
Chart.js Gradients (codepen.io)
[JS] Chart.js 원형 차트, 사용자 지정 범례 그리기!(pie chart, custom legend) (tistory.com)
Stacked Horizontal Charts with Chart.js (codepen.io)
[chartjs] 그리기 순서 변경 하기, Z-index, legend 순서 변경 (tistory.com)
( chart.js ) 그래프 오류 해결 / 이전 데이터 오류 / 데이터 초기화 (tistory.com)
JS Array 이해, push(), pop(), sort(), splice() | TutorialPost (apptilus.com)
JavaScript에서 두 날짜를 비교하는 방법 | Delft Stack
[javascript] 이번 달 1일, 마지막 일 구하기 :: 뻔뻔한 개발자 (tistory.com)
JavaScript를 사용하여 테이블 만들기 | Delft Stack
Traversing an HTML table with JavaScript and DOM Interfaces – Web APIs | MDN (mozilla.org)
$(“input[name=’radioName’]:checked”).val();
legend: {
display: true,
position: "right",
labels: {
fontFamily: "Comic Sans MS",
boxWidth: 20,
boxHeight: 2
}
}