A set of parameters for GPUdb::visualizeImageChart.
More...
#include <gpudb/protocol/visualize_image_chart.h>
|
| VisualizeImageChartRequest () |
| Constructs a VisualizeImageChartRequest object with default parameters. More...
|
|
| VisualizeImageChartRequest (const std::string &tableName_, const std::vector< std::string > &xColumnNames_, const std::vector< std::string > &yColumnNames_, const double minX_, const double maxX_, const double minY_, const double maxY_, const int32_t width_, const int32_t height_, const std::string &bgColor_, const std::map< std::string, std::vector< std::string > > &styleOptions_, const std::map< std::string, std::string > &options_) |
| Constructs a VisualizeImageChartRequest object with the specified parameters. More...
|
|
|
std::string | tableName |
| Name of the table containing the data to be drawn as a chart, in [ schema_name. ]table_name format, using standard name resolution rules. More...
|
|
std::vector< std::string > | xColumnNames |
| Names of the columns containing the data mapped to the x axis of a chart. More...
|
|
std::vector< std::string > | yColumnNames |
| Names of the columns containing the data mapped to the y axis of a chart. More...
|
|
double | minX |
| Lower bound for the x column values. More...
|
|
double | maxX |
| Upper bound for the x column values. More...
|
|
double | minY |
| Lower bound for the y column values. More...
|
|
double | maxY |
| Upper bound for the y column values. More...
|
|
int32_t | width |
| Width of the generated image in pixels. More...
|
|
int32_t | height |
| Height of the generated image in pixels. More...
|
|
std::string | bgColor |
| Background color of the generated image. More...
|
|
std::map< std::string, std::vector< std::string > > | styleOptions |
| Rendering style options for a chart. More...
|
|
std::map< std::string, std::string > | options |
| Optional parameters. More...
|
|
A set of parameters for GPUdb::visualizeImageChart.
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 imageData field.
Definition at line 23 of file visualize_image_chart.h.
◆ VisualizeImageChartRequest() [1/2]
gpudb::VisualizeImageChartRequest::VisualizeImageChartRequest |
( |
| ) |
|
|
inline |
◆ VisualizeImageChartRequest() [2/2]
gpudb::VisualizeImageChartRequest::VisualizeImageChartRequest |
( |
const std::string & |
tableName_, |
|
|
const std::vector< std::string > & |
xColumnNames_, |
|
|
const std::vector< std::string > & |
yColumnNames_, |
|
|
const double |
minX_, |
|
|
const double |
maxX_, |
|
|
const double |
minY_, |
|
|
const double |
maxY_, |
|
|
const int32_t |
width_, |
|
|
const int32_t |
height_, |
|
|
const std::string & |
bgColor_, |
|
|
const std::map< std::string, std::vector< std::string > > & |
styleOptions_, |
|
|
const std::map< std::string, std::string > & |
options_ |
|
) |
| |
|
inline |
Constructs a VisualizeImageChartRequest object with the specified parameters.
- Parameters
-
[in] | tableName_ | Name of the table containing the data to be drawn as a chart, in [schema_name.]table_name format, using standard name resolution rules. |
[in] | xColumnNames_ | Names of the columns containing the data mapped to the x axis of a chart. |
[in] | yColumnNames_ | Names of the columns containing the data mapped to the y axis of a chart. |
[in] | minX_ | 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. |
[in] | maxX_ | 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. |
[in] | minY_ | 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. |
[in] | maxY_ | 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. |
[in] | width_ | Width of the generated image in pixels. |
[in] | height_ | Height of the generated image in pixels. |
[in] | bgColor_ | Background color of the generated image. |
[in] | styleOptions_ | Rendering style options for a chart.
-
visualize_image_chart_pointcolor: The color of points in the plot represented as a hexadecimal number. The default value is '0000FF'.
-
visualize_image_chart_pointsize: The size of points in the plot represented as number of pixels. The default value is '3'.
-
visualize_image_chart_pointshape: The shape of points in the plot. Supported values:
The default value is visualize_image_chart_square.
-
visualize_image_chart_cb_pointcolors: Point color class break information consisting of three entries: class-break attribute, class-break values/ranges, and point color values. This option overrides the pointcolor option if both are provided. Class-break ranges are represented in the form of "min:max". Class-break values/ranges and point color values are separated by cb_delimiter, e.g. {"price", "20:30;30:40;40:50", "0xFF0000;0x00FF00;0x0000FF"}.
-
visualize_image_chart_cb_pointsizes: Point size class break information consisting of three entries: class-break attribute, class-break values/ranges, and point size values. This option overrides the pointsize option if both are provided. Class-break ranges are represented in the form of "min:max". Class-break values/ranges and point size values are separated by cb_delimiter, e.g. {"states", "NY;TX;CA", "3;5;7"}.
-
visualize_image_chart_cb_pointshapes: Point shape class break information consisting of three entries: class-break attribute, class-break values/ranges, and point shape names. This option overrides the pointshape option if both are provided. Class-break ranges are represented in the form of "min:max". Class-break values/ranges and point shape names are separated by cb_delimiter, e.g. {"states", "NY;TX;CA", "circle;square;diamond"}.
-
visualize_image_chart_cb_delimiter: A character or string which separates per-class values in a class-break style option string. The default value is ';'.
-
visualize_image_chart_x_order_by: An expression or aggregate expression by which non-numeric x column values are sorted, e.g. "avg(price) descending".
-
visualize_image_chart_y_order_by: An expression or aggregate expression by which non-numeric y column values are sorted, e.g. "avg(price)", which defaults to "avg(price) ascending".
-
visualize_image_chart_scale_type_x: Type of x axis scale. Supported values:
The default value is visualize_image_chart_none.
-
visualize_image_chart_scale_type_y: Type of y axis scale. Supported values:
The default value is visualize_image_chart_none.
-
visualize_image_chart_min_max_scaled: If this options is set to "false", this endpoint expects request's min/max values are not yet scaled. They will be scaled according to scale_type_x or scale_type_y for response. If this options is set to "true", this endpoint expects request's min/max values are already scaled according to scale_type_x/scale_type_y. Response's min/max values will be equal to request's min/max values. The default value is 'false'.
-
visualize_image_chart_jitter_x: Amplitude of horizontal jitter applied to non-numeric x column values. The default value is '0.0'.
-
visualize_image_chart_jitter_y: Amplitude of vertical jitter applied to non-numeric y column values. The default value is '0.0'.
-
visualize_image_chart_plot_all: If this options is set to "true", all non-numeric column values are plotted ignoring min_x, max_x, min_y and max_y parameters. The default value is 'false'.
|
[in] | options_ | Optional parameters.
The default value is an empty map. |
Definition at line 299 of file visualize_image_chart.h.
◆ bgColor
std::string gpudb::VisualizeImageChartRequest::bgColor |
◆ height
int32_t gpudb::VisualizeImageChartRequest::height |
◆ maxX
double gpudb::VisualizeImageChartRequest::maxX |
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.
Definition at line 345 of file visualize_image_chart.h.
◆ maxY
double gpudb::VisualizeImageChartRequest::maxY |
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.
Definition at line 357 of file visualize_image_chart.h.
◆ minX
double gpudb::VisualizeImageChartRequest::minX |
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.
Definition at line 339 of file visualize_image_chart.h.
◆ minY
double gpudb::VisualizeImageChartRequest::minY |
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.
Definition at line 351 of file visualize_image_chart.h.
◆ options
std::map<std::string, std::string> gpudb::VisualizeImageChartRequest::options |
◆ styleOptions
std::map<std::string, std::vector<std::string> > gpudb::VisualizeImageChartRequest::styleOptions |
Rendering style options for a chart.
-
visualize_image_chart_pointcolor: The color of points in the plot represented as a hexadecimal number. The default value is '0000FF'.
-
visualize_image_chart_pointsize: The size of points in the plot represented as number of pixels. The default value is '3'.
-
visualize_image_chart_pointshape: The shape of points in the plot. Supported values:
The default value is visualize_image_chart_square.
-
visualize_image_chart_cb_pointcolors: Point color class break information consisting of three entries: class-break attribute, class-break values/ranges, and point color values. This option overrides the pointcolor option if both are provided. Class-break ranges are represented in the form of "min:max". Class-break values/ranges and point color values are separated by cb_delimiter, e.g. {"price", "20:30;30:40;40:50", "0xFF0000;0x00FF00;0x0000FF"}.
-
visualize_image_chart_cb_pointsizes: Point size class break information consisting of three entries: class-break attribute, class-break values/ranges, and point size values. This option overrides the pointsize option if both are provided. Class-break ranges are represented in the form of "min:max". Class-break values/ranges and point size values are separated by cb_delimiter, e.g. {"states", "NY;TX;CA", "3;5;7"}.
-
visualize_image_chart_cb_pointshapes: Point shape class break information consisting of three entries: class-break attribute, class-break values/ranges, and point shape names. This option overrides the pointshape option if both are provided. Class-break ranges are represented in the form of "min:max". Class-break values/ranges and point shape names are separated by cb_delimiter, e.g. {"states", "NY;TX;CA", "circle;square;diamond"}.
-
visualize_image_chart_cb_delimiter: A character or string which separates per-class values in a class-break style option string. The default value is ';'.
-
visualize_image_chart_x_order_by: An expression or aggregate expression by which non-numeric x column values are sorted, e.g. "avg(price) descending".
-
visualize_image_chart_y_order_by: An expression or aggregate expression by which non-numeric y column values are sorted, e.g. "avg(price)", which defaults to "avg(price)
ascending".
-
visualize_image_chart_scale_type_x: Type of x axis scale. Supported values:
The default value is visualize_image_chart_none.
-
visualize_image_chart_scale_type_y: Type of y axis scale. Supported values:
The default value is visualize_image_chart_none.
-
visualize_image_chart_min_max_scaled: If this options is set to "false", this endpoint expects request's min/max values are not yet scaled. They will be scaled according to scale_type_x or scale_type_y for response. If this options is set to "true", this endpoint expects request's min/max values are already scaled according to scale_type_x/scale_type_y. Response's min/max values will be equal to request's min/max values. The default value is 'false'.
-
visualize_image_chart_jitter_x: Amplitude of horizontal jitter applied to non-numeric x column values. The default value is '0.0'.
-
visualize_image_chart_jitter_y: Amplitude of vertical jitter applied to non-numeric y column values. The default value is '0.0'.
-
visualize_image_chart_plot_all: If this options is set to "true", all non-numeric column values are plotted ignoring min_x, max_x, min_y and max_y parameters. The default value is 'false'.
Definition at line 499 of file visualize_image_chart.h.
◆ tableName
std::string gpudb::VisualizeImageChartRequest::tableName |
◆ width
int32_t gpudb::VisualizeImageChartRequest::width |
◆ xColumnNames
std::vector<std::string> gpudb::VisualizeImageChartRequest::xColumnNames |
◆ yColumnNames
std::vector<std::string> gpudb::VisualizeImageChartRequest::yColumnNames |
The documentation for this struct was generated from the following file: