> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# visualize_image_chart

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/visualize_image_chart.rs#L44-L73)
pub async fn [visualize\_image\_chart](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/visualize-image-chart.md#method.visualize_image_chart)( \&self, table\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), x\_column\_names: [Vec](https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>, y\_column\_names: [Vec](https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>, min\_x: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), max\_x: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), min\_y: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), max\_y: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), width: [i32](https://doc.rust-lang.org/1.98.1/std/primitive.i32.html), height: [i32](https://doc.rust-lang.org/1.98.1/std/primitive.i32.html), bg\_color: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), style\_options: [HashMap](https://doc.rust-lang.org/1.98.1/std/collections/hash/map/struct.HashMap.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), [Vec](https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>>, ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[VisualizeImageChartResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.VisualizeImageChartResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Draw a chart from specified tables and return it as an image.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).

##### Arguments

<ul>
  <li>`table_name` - Name of the table containing the data to be drawn as a chart, in \[schema\_name.]table\_name format, using standard name resolution rules.</li>
  <li>`x_column_names` - Names of the columns containing the data mapped to the x axis of a chart.</li>
  <li>`y_column_names` - Names of the columns containing the data mapped to the y axis of a chart.</li>
  <li>`min_x` - 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.</li>
  <li>`max_x` - 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.</li>
  <li>`min_y` - 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.</li>
  <li>`max_y` - 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.</li>
  <li>`width` - Width of the generated image in pixels.</li>
  <li>`height` - Height of the generated image in pixels.</li>
  <li>`bg_color` - Background color of the generated image.</li>
  <li>`style_options` - Rendering style options for a chart.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/visualize_image_chart.rs#L109-L145)
pub async fn [visualize\_image\_chart\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/visualize-image-chart.md#method.visualize_image_chart_with_opts)( \&self, table\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), x\_column\_names: [Vec](https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>, y\_column\_names: [Vec](https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>, min\_x: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), max\_x: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), min\_y: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), max\_y: [f64](https://doc.rust-lang.org/1.98.1/std/primitive.f64.html), width: [i32](https://doc.rust-lang.org/1.98.1/std/primitive.i32.html), height: [i32](https://doc.rust-lang.org/1.98.1/std/primitive.i32.html), bg\_color: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), style\_options: [HashMap](https://doc.rust-lang.org/1.98.1/std/collections/hash/map/struct.HashMap.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), [Vec](https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>>, options: [VisualizeImageChartRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.VisualizeImageChartRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[VisualizeImageChartResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.VisualizeImageChartResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Draw a chart from specified tables and return it as an image.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).

##### Arguments

<ul>
  <li>`table_name` - Name of the table containing the data to be drawn as a chart, in \[schema\_name.]table\_name format, using standard name resolution rules.</li>
  <li>`x_column_names` - Names of the columns containing the data mapped to the x axis of a chart.</li>
  <li>`y_column_names` - Names of the columns containing the data mapped to the y axis of a chart.</li>
  <li>`min_x` - 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.</li>
  <li>`max_x` - 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.</li>
  <li>`min_y` - 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.</li>
  <li>`max_y` - 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.</li>
  <li>`width` - Width of the generated image in pixels.</li>
  <li>`height` - Height of the generated image in pixels.</li>
  <li>`bg_color` - Background color of the generated image.</li>
  <li>`style_options` - Rendering style options for a chart.</li>
  <li>`options` - The optional parameters; any left unset take the server’s defaults.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/visualize_image_chart.rs#L148-L159)
pub async fn [visualize\_image\_chart\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/visualize-image-chart.md#method.visualize_image_chart_raw)( \&self, request: &[VisualizeImageChartRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.VisualizeImageChartRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[VisualizeImageChartResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.VisualizeImageChartResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`VisualizeImageChartRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.VisualizeImageChartRequest) to the `/visualize/image/chart` endpoint.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/visualize_image_chart.rs#L163-L175)
pub async fn [visualize\_image\_chart\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/visualize-image-chart.md#method.visualize_image_chart_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[VisualizeImageChartRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.VisualizeImageChartRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[VisualizeImageChartResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.VisualizeImageChartResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`VisualizeImageChartRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.VisualizeImageChartRequest) to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.