❄️✨Ho-ho-holiday offer for new projects! Check out our pricing page.
All documentation
  • collapseData

    collapseData(uniqueName: String)

    [starting from version: 1.6]

    Collapses all nodes of the specified field. Please note, this method works only for CSV and JSON data sources.

    Parameters

    Parameter/TypeDescription
    uniqueName
    String
    The unique name of the hierarchy to be collapsed.

    Example

    pivot.collapseData('Country');

    Try on JSFiddle.

    See also

    collapseAllData
    expandAllData
    expandData