'잡동사니'에 해당되는 글 13982건
- 2023.03.12 언제나 피곤
- 2023.03.11 피곤
- 2023.03.10 chart.js 특정 항목 보이지 않게 하기(가로줄 치기)
- 2023.03.10 리눅스 키보드로 강제 종료하기
- 2023.03.09 피곤피곤 개피곤
- 2023.03.08 추세선 알고리즘 (선형회귀)
- 2023.03.08 python matplotlib 설치
- 2023.03.07 듀유유유
- 2023.03.06 집정리
- 2023.03.05 냉전?
클릭하면 당연히(?) 줄 그어져서 죽는데
코드로 처음부터 해당 항목을 hidden 상태로 표시하려니 먼가 묘하게 어렵다?
| function(e, legendItem, legend) { const index = legendItem.datasetIndex; const ci = legend.chart; if (ci.isDatasetVisible(index)) { ci.hide(index); legendItem.hidden = true; } else { ci.show(index); legendItem.hidden = false; } } |
[링크 : https://www.chartjs.org/docs/latest/configuration/legend.html]
매우 귀찮으니(!)
chart 라는 변수에 chart.js 객체가 존재한다면
아래의 legned.chart.hide(index) 로 끄고 legned.chart.show(index) 로 표시할 수 있다.
index 이니 0부터 시작함에 주의!
| //var chart = new chart() chart.legend.chart.hide(1) chart.legend.chart.show(1) |
'Programming > chart.js' 카테고리의 다른 글
| chart.js 반응형 설정시 작아지는데 안커지는 문제 (0) | 2024.06.27 |
|---|---|
| chart.js multi y axis (0) | 2023.09.27 |
| chart.js 수직 도움선 (0) | 2023.01.27 |
전원키 5초 이상 누르고 끄는 것 처럼 키 조합을 통해 종료하는게 있는건 처음 알았네
| Alt+PrtSc and pressed R, E, I, S, U, B. |
[링크 : https://unix.stackexchange.com/questions/696886/altprtscreisub-doesnt-shut-down-computer]
| The key combination consists of Alt+SysRq and another key, which controls the command issued |
[링크 : https://en.wikipedia.org/wiki/Magic_SysRq_key]
qwerty는 상관없는데 dvorak 으로 쓰면 이상하게 꺼지는 경우가 있는 듯?
| 쿼티로 reisub 은, 드보락으로 p.cogx 가 된다 |
[링크 : https://www.nemonein.xyz/2023/01/7453/]
| unRaw (take control of keyboard back from X), tErminate (send SIGTERM to all processes, allowing them to terminate gracefully), kIll (send SIGKILL to all processes, forcing them to terminate immediately), Sync (flush data to disk), Unmount (remount all filesystems read-only), reBoot. |
'Linux' 카테고리의 다른 글
| 리눅스 커맨드 라인에서 몇줄씩 건너뛰고 출력하기 (0) | 2023.03.30 |
|---|---|
| bash completion (0) | 2023.03.27 |
| shopt nohup (0) | 2023.01.27 |
| 리눅스 배터리 wear level (0) | 2023.01.04 |
| mpx - Multi-pointer X (0) | 2022.12.27 |
엑셀에서 한번만 클릭하면 되는걸 막상 구현하려니 묘하게 어렵네
[링크 : https://www.codewithc.com/c-program-for-linear-exponential-curve-fitting/]
[링크 : https://www.bragitoff.com/2018/06/exponential-fitting-c-program/]
+
[링크 : https://www.w3schools.com/ai/tryit.asp?filename=tryai_plotly_regression3]
matplotlib을 이용하여 python 에서 그래프를 그리려고 하는데 그려지지 않아서 고생 -_-
그냥 설치하면 이상한(?) 에러가 발생하면서 중단되는데
나의 경우에는 jpeg 라이브러리 없다고 배쨰는 중. 그래서 libjpeg 등을 설치하고 Pillow 라는 python 패키지를 설치후
matplotlib을 설치하니 해결되었다.
| sudo apt install libjpeg-dev zlib1g-dev pip install Pillow |
| pip3 install matplotlib |
[링크 : https://www.zinnunkebi.com/python-modulenotfounderror-matplotlib/]
'Programming > python(파이썬)' 카테고리의 다른 글
| matplotlib (0) | 2023.10.04 |
|---|---|
| pyplot (0) | 2023.10.04 |
| python openCV / PIL 포맷 변경 (0) | 2022.04.12 |
| 파이썬 딕셔너리 변수 생성과 리턴 enumerate, zip (0) | 2022.04.12 |
| python interactive mode (0) | 2022.03.15 |
봄 맞이 다들 버려서 그런가 재활용이 가득가득
우리집도 이것저것 애들 방까지 정리하고 버리다 보니
라면박스로 3개 이상의 재활용품은 나온 듯
그나마 펫트병으로 물을 안사먹고 정수기라서 덜 나오긴 해서 좋긴한데
매번 관리하는것도 귀찮기고 하고. 그래서 다들 돈 내고 관리 받는건가?!
