stream-charts
    Preparing search index...

    Function textWidthOf

    • Calculates the width of an SVG text element, based on its bounding box

      Parameters

      • elem: Selection<SVGTextElement, any, any, any>

        The SVG text element

      Returns number

      The width in pixels, or 0 if SVG text element has not children