Skip to main content
  • Scatter plot is the only plot type currently supported. A non-numeric column can be specified as x or y column and jitters can be added to them to avoid excessive overlapping. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value).

    The image is contained in the image_data field.

    Parameters

    • table_name: string

      Name of the table containing the data to be drawn as a chart, in [schema_name.]table_name format, using standard name resolution rules.

    • x_column_names: string[]

      Names of the columns containing the data mapped to the x axis of a chart.

    • y_column_names: string[]

      Names of the columns containing the data mapped to the y axis of a chart.

    • min_x: number

      Lower bound for the x column values. For non-numeric x column, each x column item is mapped to an integral value starting from 0.

    • max_x: number

      Upper bound for the x column values. For non-numeric x column, each x column item is mapped to an integral value starting from 0.

    • min_y: number

      Lower bound for the y column values. For non-numeric y column, each y column item is mapped to an integral value starting from 0.

    • max_y: number

      Upper bound for the y column values. For non-numeric y column, each y column item is mapped to an integral value starting from 0.

    • width: number

      Width of the generated image in pixels.

    • height: number

      Height of the generated image in pixels.

    • bg_color: string

      Background color of the generated image.

    • style_options: Record<string, string[]>

      Rendering style options for a chart.

    • Optionaloptions: Record<string, string>

      Optional parameters.

    • Optionalcallback: GPUdbCallback

      Optional callback function

    Returns Promise<VisualizeImageChartResponse>

    Promise<Types.VisualizeImageChartResponse> - Promise resolving to the response