# \#chart

**URL:** https://ask.selectfromuser.com/tag/chart/7.md

[최신](https://ask.selectfromuser.com/latest.md) · [카테고리](https://ask.selectfromuser.com/categories.md) · [태그](https://ask.selectfromuser.com/tags.md)

---

## [비율 그래프 차트 그리기 (카테고리 분포)](https://ask.selectfromuser.com/t/topic/43)

<div class="topic-metadata">

**Author:** [@jhlee](https://ask.selectfromuser.com/u/jhlee)\
**댓글:** 2\
**마지막 업데이트:** [3월 11, 2025, 6:19오전 UTC](https://ask.selectfromuser.com/t/topic/43 "2025-03-11T06:19:39Z")

</div>

전체 사용자 중 활성/비활성 비율이나 구매 상품중 카테고리 분포등 다양하게 활용되는 지표 그래프를 그립니다. 대시보드에 주로 사용됩니다. resource: mysql.qa name: category display: metric sql: \> SELECT count(id) as 'c' FROM PropertyProfile GROUP BY ISNULL(\`signed\_at\`) …

---

## [일자별 쿼리로 지표 그래프 그리기 (증감률, 퍼센트 표시)](https://ask.selectfromuser.com/t/topic/41)

<div class="topic-metadata">

**Author:** [@jhlee](https://ask.selectfromuser.com/u/jhlee)\
**댓글:** 0\
**마지막 업데이트:** [6월 28, 2023, 10:05오전 UTC](https://ask.selectfromuser.com/t/topic/41 "2023-06-28T10:05:22Z")

</div>

일자별 지표 쿼리를 월/주/일로 샘플링하여 표시합니다. - type: query resource: mysql.qa name: bar percentage diff sql: \> SELECT DATE\_FORMAT(created\_at, '%Y-%m-%d') as 'date', COUNT(id) as c, COUNT(user\_id) as users FROM UserSta…

---

## [파이/도넛 차트에 퍼센트 비율 표시하기](https://ask.selectfromuser.com/t/topic/44)

<div class="topic-metadata">

**Author:** [@jhlee](https://ask.selectfromuser.com/u/jhlee)\
**댓글:** 0\
**마지막 업데이트:** [6월 28, 2023, 10:16오전 UTC](https://ask.selectfromuser.com/t/topic/44 "2023-06-28T10:16:45Z")

</div>

카테고리 타입 통계를 시각화 할때 비율이 표시되어있으면 편리합니다. 셀렉트에서 제공하는 차트에서는 왼쪽 범례(legend)를 클릭시 해당 지표를 제외하여 % 퍼센트를 다시 계산해줍니다. resource: mysql.qa sql: \> SELECT COALESCE(\`type\`, 'NONE') AS tt, count(id) as 'c' FROM properties2 GROUP …
