데이터 형식
데이터 형식 (Data format)
데이터 표현을 표준화해서 데이터를 직관적이고 정확하며 일관되게 이해하도록 하는 것을 목표로 해요.
출처: 문서
본문
디자인 목표 (Design Goals)
데이터 표현을 표준화해 데이터를 직관적이고 정확하며 일관되게 이해하도록 해요.
유형 (Types)
숫자 (Numerical)
숫자 값은 측정 크기를 나타내는 데 사용되며, 단독으로 또는 숫자 기호와 함께 사용할 수 있어요.
| Symbol Format | How and When to Use | Example |
|---|---|---|
| Decimal separator | Use commas to separate groups of thousands to help users read. | 123,123,220 |
| Unit of measurement | Put units of measurement in lowercase. | 123,220kg |
| Percentage | To present proportionality, etc. | 12.32% |
| Forward slash | To express progress with fractions. | 12/30 |


위치(Position): 사용자가 데이터를 직관적이고 정확하게 읽게 하려면 명확하고 간결하게 만드는 것이 필요해요. 숫자 값이 있는 테이블에서는 보통 "오른쪽 정렬(right-aligned)" 방식을 채택해요. 이는 사용자가 빠르게 읽도록 도울 뿐 아니라 세로 방향 데이터를 비교할 수 있게 해 줘요.
금액 (Amount)
금액 형식(Amount Format): 표준 형식은 "통화 기호 + 숫자"예요. 예를 들어 "CNY1,123.00"이요. 통화 기호(Currency Symbol): 약어 문자(abbreviations letters)와 문자(characters) 두 가지 유형이 있어요. CURRENCY SYMBOLS에서 여러 통화의 기호를 확인할 수 있어요.
| Currency Symbol | How and When to Use | Example |
|---|---|---|
| Character | Take RMB as example, its character symbol is ¥, placed in front of the amount. |
¥123.00 |
| Letter | Take RMB as example, it is recommended to use CNY, which is the international currency code. |
CNY123.00 |
큰 금액(Large amount): 금액이 크면 "M/Mill."(million의 약어)과 "B/Bill."(billion의 약어)을 사용할 수 있어요.
날짜/시간 (Date/Time)
절대 시간 (Absolute Time)
절대 시간은 시간 정확도 요구가 높은 사용자를 위한 것으로, 정보 발행의 정확한 시점을 강조해요. 절대 시간을 통해 사용자는 정보를 검색하고 과거의 내용을 복기할 수 있어요.
날짜 형식 (Date Format):
다음 형식을 제안해요.
| Format | How and when to use | Examples |
|---|---|---|
| Year, month, day | In China YYYY-MM-DD format is used by default. |
2019-12-08 |
| Terms | When a special term containing a date expressed with numbers, display a . between the month and the day, and quotation marks should be added before and after the term. |
6.1 children's day |
| Date range | Put ~ or - between the date or time range (space is required before and after). |
2018-12-08 ~ 2019-12-07 |
시간 형식 (Time Format):
| Time System | How and when to use | Examples |
|---|---|---|
| 24-hour clock | The format is HH:MM:SS. Omit hours or second if not apply. Use the 24-hour clock by default. |
14:08:00 |
| 12-hour clock | Use the format H:MM:SS AM/PM (or am/pm). |
2:08:00 PM ~ 2:08:00 AM |
표준 형식(Standard format): 날짜와 시간을 함께 넣을 때는 그 사이에 공백을 표시해요. 예: "2019-12-08 06:00:00".
상대 시간 (Relative Time)
사용자에게는 시간의 정확도보다 정보의 신속함이 더 중요해요. 콘솔 플랫폼에서는 메시지와 공지에 상대 시간을 일반적으로 사용해요. 사용자는 발행의 구체적인 시점을 계산하기보다 시간 단위에 더 주목하는 경향이 있어요.
| Time | Display form |
|---|---|
| Less than 1 minute | just now |
| Less than 1 hour | N minutes ago |
| Within 24 hours | N hours ago |
| Longer than 24 hours | MM-DD HH:MM, e.g. "12-08 08:00" |
| Longer than one year | YYYY-MM-DD HH:MM, e.g. "2019-12-08 08:00" |
데이터 마스킹 (Data Redaction)
데이터 마스킹은 민감한 개인정보를 보호하기 위해 잘린 데이터를 표현하는 것을 말해요. 여기 제시된 규칙은 일반적인 지침이며, 보안 요구가 강한 비즈니스 시나리오에 따라 조정할 수 있어요.
완전 마스킹 (Complete Redaction)
금액과 시간처럼 특히 중요하고 민감한 정보에 일반적으로 사용돼요. 모든 숫자를 숨겨야 해요. 데이터는 ***로 대체돼요.
부분 마스킹 (Partial Redaction)
식별을 위해 부분 정보가 필요한 상황에 일반적으로 사용돼요. 이런 경우 정보의 일부가 잘리지만, 숫자의 자릿수는 유지해야 해요. 잘린 데이터는 *로 대체돼요.
| Data Type | How and When to Use | Example |
|---|---|---|
| Name | Two-character name: display the first character, followed by a *. |
L* |
Names with three characters or more: display the first character and the last character, replace the middle character(s) with *. |
A*i | |
| Mobile number | Keep the first three and the last four digits of the mobile number. | 186****1402 |
| ID number | The Chinese citizenship number consists of six address codes, eight birthdate codes, three sequential codes and one check code. Redaction rules are classified into high, medium and low levels: High: Show the first and last digits, and replace the others with *. Medium: Show the first three and the last three. Replace the others with *. Low: Show the first six and the last four. Replace the others with *. |
6*************2 / 213***********203 / 212912*******2233 |
| Address | Keep the provinces, cities and district information, followed by several *. |
Zhejiang Province, Hangzhou, Xihu District ******** |
Keep the host name of the mail and the first three characters, indicate the rest information with *. |
123*************@163.com | |
| Bank card number | The bank card number consists of the issuing bank identification code (ranging from 6 to 12 digits), personal account identification (ranging from 6 to 12 digits), and a check code. Redaction rules are classified into high, medium and low levels: High: Display the last four digits, and replace the others with *. Medium: Display the first six and the last four digits, replace the others with *. Low: Display the first six and the last six digits, display the remaining digits with *. |
********1208 / 620121**1208 / 620121****111208 |
데이터 상태 (Data Status)
빈 상태 (Empty State)
--를 표시해 데이터가 없는 상태를 표현해요.
로딩 (Loading)
데이터를 로딩할 때 Skeleton 화면(skeleton screen)을 사용해요.
참고 (Reference)
- Currency Symbol List
- Time Data Formats for Different Countries
- Digital Specification for Publications