> ## 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

<div className="kinetica-pydoc">
  <div className="dl py method">
    <div className="dt sig sig-object py" id="gpudb.GPUdb.visualize_image_chart"> <span className="sig-name descname"><span className="pre">visualize\_image\_chart</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">table\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">x\_column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">y\_column\_names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">min\_x</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">max\_x</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">min\_y</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">max\_y</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">width</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">height</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">bg\_color</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">style\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span><a href="https://github.com/kineticadb/kinetica-api-python/blob/master/gpudb/gpudb.py#L41729"><span className="viewcode-link"><span className="pre">\[source]</span></span></a></div>

    <div className="dd">
      <p>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 output parameter <span className="em">image\_data</span> field.</p>
      <p><strong>Parameters</strong></p>

      <div className="blockquote">
        <div>
          <div className="dl">
            <div className="dt">table\_name (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>Name of the table containing the data to be drawn as a chart, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a>.</p>
            </div>

            <div className="dt">x\_column\_names (<span className="em">list of str</span>) –</div>

            <div className="dd">
              <p>Names of the columns containing the data mapped to the x axis of a chart. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
            </div>

            <div className="dt">y\_column\_names (<span className="em">list of str</span>) –</div>

            <div className="dd">
              <p>Names of the columns containing the data mapped to the y axis of a chart. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
            </div>

            <div className="dt">min\_x (<span className="em">float</span>) –</div>

            <div className="dd">
              <p>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.</p>
            </div>

            <div className="dt">max\_x (<span className="em">float</span>) –</div>

            <div className="dd">
              <p>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.</p>
            </div>

            <div className="dt">min\_y (<span className="em">float</span>) –</div>

            <div className="dd">
              <p>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.</p>
            </div>

            <div className="dt">max\_y (<span className="em">float</span>) –</div>

            <div className="dd">
              <p>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.</p>
            </div>

            <div className="dt">width (<span className="em">int</span>) –</div>

            <div className="dd">
              <p>Width of the generated image in pixels.</p>
            </div>

            <div className="dt">height (<span className="em">int</span>) –</div>

            <div className="dd">
              <p>Height of the generated image in pixels.</p>
            </div>

            <div className="dt">bg\_color (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>Background color of the generated image.</p>
            </div>

            <div className="dt">style\_options (<span className="em">dict of str to lists of str</span>) –</div>

            <div className="dd">
              <p>Rendering style options for a chart. Allowed keys are:</p>

              <ul>
                <li>
                  <p><strong>pointcolor</strong> – The color of points in the plot represented as a hexadecimal number. The default value is ‘0000FF’.</p>
                </li>

                <li>
                  <p><strong>pointsize</strong> – The size of points in the plot represented as number of pixels. The default value is ‘3’.</p>
                </li>

                <li>
                  <p><strong>pointshape</strong> – The shape of points in the plot. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>none</p>
                    </li>

                    <li>
                      <p>circle</p>
                    </li>

                    <li>
                      <p>square</p>
                    </li>

                    <li>
                      <p>diamond</p>
                    </li>

                    <li>
                      <p>hollowcircle</p>
                    </li>

                    <li>
                      <p>hollowsquare</p>
                    </li>

                    <li>
                      <p>hollowdiamond</p>
                    </li>
                  </ul>

                  <p>The default value is ‘square’.</p>
                </li>

                <li>
                  <p><strong>cb\_pointcolors</strong> – 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”{"}"}.</p>
                </li>

                <li>
                  <p><strong>cb\_pointsizes</strong> – 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”{"}"}.</p>
                </li>

                <li>
                  <p><strong>cb\_pointshapes</strong> – 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”{"}"}.</p>
                </li>

                <li>
                  <p><strong>cb\_delimiter</strong> – A character or string which separates per-class values in a class-break style option string. The default value is ‘;’.</p>
                </li>

                <li>
                  <p><strong>x\_order\_by</strong> – An expression or aggregate expression by which non-numeric x column values are sorted, e.g. “avg(price) descending”.</p>
                </li>

                <li>
                  <p><strong>y\_order\_by</strong> – An expression or aggregate expression by which non-numeric y column values are sorted, e.g. “avg(price)”, which defaults to “avg(price) ascending”.</p>
                </li>

                <li>
                  <p><strong>scale\_type\_x</strong> – Type of x axis scale. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p><strong>none</strong> – No scale is applied to the x axis.</p>
                    </li>

                    <li>
                      <p><strong>log</strong> – A base-10 log scale is applied to the x axis.</p>
                    </li>
                  </ul>

                  <p>The default value is ‘none’.</p>
                </li>

                <li>
                  <p><strong>scale\_type\_y</strong> – Type of y axis scale. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p><strong>none</strong> – No scale is applied to the y axis.</p>
                    </li>

                    <li>
                      <p><strong>log</strong> – A base-10 log scale is applied to the y axis.</p>
                    </li>
                  </ul>

                  <p>The default value is ‘none’.</p>
                </li>

                <li>
                  <p><strong>min\_max\_scaled</strong> – If this options is set to <span className="em">false</span>, 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 <span className="em">true</span>, 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’.</p>
                </li>

                <li>
                  <p><strong>jitter\_x</strong> – Amplitude of horizontal jitter applied to non-numeric x column values. The default value is ‘0.0’.</p>
                </li>

                <li>
                  <p><strong>jitter\_y</strong> – Amplitude of vertical jitter applied to non-numeric y column values. The default value is ‘0.0’.</p>
                </li>

                <li>
                  <p><strong>plot\_all</strong> – If this options is set to <span className="em">true</span>, all non-numeric column values are plotted ignoring min\_x, max\_x, min\_y and max\_y parameters. The default value is ‘false’.</p>
                </li>
              </ul>
            </div>

            <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Optional parameters. Allowed keys are:</p>

              <ul>
                <li>
                  <p><strong>image\_encoding</strong> – Encoding to be applied to the output image. When using JSON serialization it is recommended to specify this as <span className="em">base64</span>. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p><strong>base64</strong> – Apply base64 encoding to the output image.</p>
                    </li>

                    <li>
                      <p><strong>none</strong> – Do not apply any additional encoding to the output image.</p>
                    </li>
                  </ul>

                  <p>The default value is ‘none’.</p>
                </li>
              </ul>

              <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
            </div>
          </div>
        </div>
      </div>

      <p><strong>Returns</strong></p>

      <div className="blockquote">
        <div>
          <p>A dict with the following entries–</p>

          <div className="dl simple">
            <div className="dt">min\_x (<span className="em">float</span>) –</div>

            <div className="dd">
              <p>Lower bound for the x column values as provided in input parameter <span className="em">min\_x</span> or calculated for non-numeric columns when plot\_all option is used.</p>
            </div>

            <div className="dt">max\_x (<span className="em">float</span>) –</div>

            <div className="dd">
              <p>Upper bound for the x column values as provided in input parameter <span className="em">max\_x</span> or calculated for non-numeric columns when plot\_all option is used.</p>
            </div>

            <div className="dt">min\_y (<span className="em">float</span>) –</div>

            <div className="dd">
              <p>Lower bound for the y column values as provided in input parameter <span className="em">min\_y</span> or calculated for non-numeric columns when plot\_all option is used.</p>
            </div>

            <div className="dt">max\_y (<span className="em">float</span>) –</div>

            <div className="dd">
              <p>Upper bound for the y column values as provided in input parameter <span className="em">max\_y</span> or calculated for non-numeric columns when plot\_all option is used.</p>
            </div>

            <div className="dt">width (<span className="em">int</span>) –</div>

            <div className="dd">
              <p>Width of the image as provided in input parameter <span className="em">width</span>.</p>
            </div>

            <div className="dt">height (<span className="em">int</span>) –</div>

            <div className="dd">
              <p>Height of the image as provided in input parameter <span className="em">height</span>.</p>
            </div>

            <div className="dt">bg\_color (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>Background color of the image as provided in input parameter <span className="em">bg\_color</span>.</p>
            </div>

            <div className="dt">image\_data (<span className="em">bytes</span>) –</div>

            <div className="dd">
              <p>The generated image data.</p>
            </div>

            <div className="dt">axes\_info (<span className="em">dict of str to lists of str</span>) –</div>

            <div className="dd">
              <p>Information returned for drawing labels for the axes associated with non-numeric columns. Allowed keys are:</p>

              <ul className="simple">
                <li>
                  <p><strong>sorted\_x\_values</strong> – Sorted non-numeric x column value list for drawing x axis label.</p>
                </li>

                <li>
                  <p><strong>location\_x</strong> – X axis label positions of sorted\_x\_values in pixel coordinates.</p>
                </li>

                <li>
                  <p><strong>sorted\_y\_values</strong> – Sorted non-numeric y column value list for drawing y axis label.</p>
                </li>

                <li>
                  <p><strong>location\_y</strong> – Y axis label positions of sorted\_y\_values in pixel coordinates.</p>
                </li>
              </ul>
            </div>

            <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Additional information.</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
