visualize_image_chart
- visualize_image_chart(
table_name: string,
x_column_names: string[],
y_column_names: string[],
min_x: number,
max_x: number,
min_y: number,
max_y: number,
width: number,
height: number,
bg_color: string,
style_options: Record<string, string[]>,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<VisualizeImageChartResponse>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: GPUdbCallbackOptional callback function
Returns Promise<VisualizeImageChartResponse>
Promise<Types.VisualizeImageChartResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:15173
- table_name: string
visualize_image_chart_request
- visualize_image_chart_request(
request: VisualizeImageChartRequest,
callback?: GPUdbCallback,
): Promise<VisualizeImageChartResponse>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_datafield.Parameters
- request: VisualizeImageChartRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<VisualizeImageChartResponse>
Promise<Types.VisualizeImageChartResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:15125
- request: VisualizeImageChartRequest
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_datafield.