Formatting Text Marks and Tooltips // A Single View or a Layer Specification In addition, you can override the default formats in the config. "number" for quantitative fields as well as ordinal and nominal fields without timeUnit. "time" for temporal fields and ordinal and nominal fields with timeUnit.One of "number", "time", or a registered custom format type. When used with a custom formatType, this value will be passed as format alongside datum.value to the registered function.ĭefault value: Derived from numberFormat config for number format and from timeFormat config for time format. See the format documentation for more examples. If the format type is "time" (e.g., for temporal fields), this is D3’s time format pattern.If the format type is "number" (e.g., for quantitative fields), this is D3’s number format pattern.When used with the default "number" and "time" format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks. The text field definition as well as definitions of axis, legend, header labels include the following properties: Property In Vega-Lite specifications you can customize the format of text marks, tooltips, axis, legend, header labels.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |