MCPcopy Create free account
hub / github.com/apache/echarts / stringToUserReadable

Function stringToUserReadable

src/util/format.ts:71–73  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

69 const USER_READABLE_DEFUALT_TIME_PATTERN = '{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}';
70
71 function stringToUserReadable(str: string): string {
72 return (str && zrUtil.trim(str)) ? str : '-';
73 }
74 function isNumberUserReadable(num: number): boolean {
75 return isNullableNumberFinite(num);
76 }

Callers 1

makeValueReadableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected