About the Formatted Column Element
    • 19 Apr 2023
    • 1 Minute to read
    • Contributors
    • PDF

    About the Formatted Column Element

    • PDF

    Article summary

    The Formatted Column element is similar to other elements designed to extend the data available in a datalayer. Like the Calculated Column element, the Formatted Column is added as a child element beneath a datalayer and adds a new columnto the datalayer. This new column contains formatted data which is accessible using an @Data token.

    Formatting data in the datalayer is particularly useful when working with charts, particularly Animated Charts, whose data attributes may not allow application of scripting functions or formats. In addition, Tooltips can also benefit from being able to use formatted data.

    Note that data in a Formatted Column may not be of the same data type as the column from which it is derived. For example, when a numeric column, with a value of 1234, is used to create a Formatted Column that applies the Currencyformat, the result will be string-type data: "$1,234.00". Thus, in this case, the Formatted Column is useful for chart axis labels, but may not work for chart data, which requires the original numeric value.

    The pre-configured format options available in the Formatted Column element are identical to the Format attribute value options in elements such as the Label. In addition, custom formatting can be entered manually.

    For more information about formatting options and custom formats, see our document Formatting Data Document

    Dynamic Formatting

    The Formatted Column element has an Include Condition attribute: 

    If the value of this attribute is left blank or contains a formula that evaluates to True, the element is applied to the datalayer. If the value evaluates to False, the element is ignored and does not affect the datalayer. This powerful feature allows developers to dynamically determine if a new column of formatted data will be added to the datalayer or not.


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence