Skip to main content
Source

pub async fn visualize_image_chart( &self, table_name: String, x_column_names: Vec<String>, y_column_names: Vec<String>, min_x: f64, max_x: f64, min_y: f64, max_y: f64, width: i32, height: i32, bg_color: String, style_options: HashMap<String, Vec<String>>, ) -> Result<VisualizeImageChartResponse, KineticaError>

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).

  • 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.
  • x_column_names - Names of the columns containing the data mapped to the x axis of a chart.
  • y_column_names - Names of the columns containing the data mapped to the y axis of a chart.
  • 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.
  • 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.
  • 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.
  • 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.
  • width - Width of the generated image in pixels.
  • height - Height of the generated image in pixels.
  • bg_color - Background color of the generated image.
  • style_options - Rendering style options for a chart.
Source

pub async fn visualize_image_chart_with_opts( &self, table_name: String, x_column_names: Vec<String>, y_column_names: Vec<String>, min_x: f64, max_x: f64, min_y: f64, max_y: f64, width: i32, height: i32, bg_color: String, style_options: HashMap<String, Vec<String>>, options: VisualizeImageChartRequestOptions, ) -> Result<VisualizeImageChartResponse, KineticaError>

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).

  • 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.
  • x_column_names - Names of the columns containing the data mapped to the x axis of a chart.
  • y_column_names - Names of the columns containing the data mapped to the y axis of a chart.
  • 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.
  • 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.
  • 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.
  • 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.
  • width - Width of the generated image in pixels.
  • height - Height of the generated image in pixels.
  • bg_color - Background color of the generated image.
  • style_options - Rendering style options for a chart.
  • options - The optional parameters; any left unset take the server’s defaults.

Sends a pre-built VisualizeImageChartRequest to the /visualize/image/chart endpoint.

Sends a pre-built VisualizeImageChartRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.