MAIDR JavaScript API
    Preparing search index...

    Function formatDataPrompt

    • Formats the data block that leads every request about a chart.

      A </ inside a string value is written </, which is the same JSON, so chart text cannot close the data tag and step outside it.

      Parameters

      • maidrJson: string

        The MAIDR data as a JSON string

      Returns string

      The data block