TomTom Maps for JavaScript
    Preparing search index...

    Variable buildAnalyseReturnPromptConst

    buildAnalyseReturnPrompt: (
        jsonExamples: string,
        chartLabelExample?: string,
    ) => string

    Builds the shared "return value" blurb for the analyse-* tools' code field. Encodes the JSON-only contract, the Chart.js config shape, and the string[]-label workaround for tooltip-callback use cases.

    Type Declaration

      • (jsonExamples: string, chartLabelExample?: string): string
      • Parameters

        • jsonExamples: string

          Comma-separated examples of typical json-shape outputs for the specific tool (e.g. "counts, groupings, hex bins, centroids").

        • OptionalchartLabelExample: string

          Optional inline code snippet illustrating a multi-line string[] label using the tool's domain. Omitted when empty.

        Returns string