Constants Module
datachart.constants
Module containing the constants.
The constants module provides a set of predefined constants used in the package.
These include figure size, format, style, and other figure manipulation values.
| CLASS | DESCRIPTION |
|---|---|
FIG_SIZE |
The predefined figure sizes. |
FIG_FORMAT |
The supported figure formats. |
FONT_STYLE |
The supported font styles. |
FONT_WEIGHT |
The supported font weights. |
LINE_MARKER |
The supported line markers. |
LINE_STYLE |
The supported line styles. |
ARROW_STYLE |
The supported text annotation connector looks. |
LINE_DRAW_STYLE |
The supported line draw styles. |
HATCH_STYLE |
The supported hatch styles. |
LEGEND_ALIGN |
The supported legend alignments. |
LEGEND_LOCATION |
The supported legend locations. |
HISTOGRAM_TYPE |
The supported histogram types. |
BAR_MODE |
The supported bar modes. |
COLORS |
The predefined colors. |
NORMALIZE |
The supported normalization options. |
ORIENTATION |
The supported orientations. |
VIOLIN_INNER |
The supported violin inner marks. |
BANDWIDTH |
The supported kernel density bandwidth rules. |
CONTOUR_LEVELS |
The supported contour level rules. |
HEXBIN_REDUCE |
The supported hexbin aggregations. |
BASELINE |
The supported stacked area baselines. |
RADIAL_TYPE |
The supported radial chart visuals. |
SWARM_MODE |
The supported swarm plot modes. |
DIRECTION |
The supported angular directions. |
VALUE_FORMAT |
The predefined value formats. |
THEME |
The predefined themes. |
EMPHASIS |
The supported emphasis roles. |
SHOW_GRID |
The supported show grid options. |
SCALE |
The supported scale options. |
ASPECT_RATIO |
The supported aspect ratio options. |
COLORBAR_LOCATION |
The supported colorbar locations. |
Figure Constants
datachart.constants.FIG_SIZE
The predefined figure sizes.
All values are (width, height) in inches, matplotlib's figsize unit.
Paper figures are anchored to the printable area of an A4 page with
standard 2.5 cm margins — a 6.3 x 9.7 in (16.0 x 24.6 cm) text block.
FULL spans the text-block width; HALF spans one of two columns
separated by a 0.3 in (0.8 cm) gap (3.0 in / 7.6 cm each). Widths cross
with a height — SHORT (2.4 in / 6.1 cm), MEDIUM (4.8 in / 12.2 cm),
or TALL (7.2 in / 18.3 cm). Passed as the figsize chart setting.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default figure size. Equals to
TYPE:
|
FULL_SHORT |
The short, full-width figure size. Equals to
TYPE:
|
FULL_MEDIUM |
The medium, full-width figure size. Equals to
TYPE:
|
FULL_TALL |
The tall, full-width figure size. Equals to
TYPE:
|
HALF_SHORT |
The short, half-width figure size. Equals to
TYPE:
|
HALF_MEDIUM |
The medium, half-width figure size. Equals to
TYPE:
|
HALF_TALL |
The tall, half-width figure size. Equals to
TYPE:
|
HALF_SQUARE |
The square, half-width figure size. Equals to
TYPE:
|
A4_PORTRAIT |
The A4 portrait printable-area figure size. Equals to
TYPE:
|
A4_LANDSCAPE |
The A4 landscape printable-area figure size. Equals to
TYPE:
|
SQUARE |
The square figure size. Equals to
TYPE:
|
SLIDE_16_9 |
The 16:9 slide figure size (PowerPoint/Google Slides). Equals to
TYPE:
|
SLIDE_4_3 |
The 4:3 slide figure size (PowerPoint/Google Slides). Equals to
TYPE:
|
BEAMER_16_9 |
The 16:9 beamer frame figure size. Equals to
TYPE:
|
BEAMER_4_3 |
The 4:3 beamer frame figure size. Equals to
TYPE:
|
datachart.constants.FIG_FORMAT
The supported figure formats.
Passed as the format argument of save_figure.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default format. Same as
TYPE:
|
SVG |
The svg format. Equals to
TYPE:
|
PDF |
The pdf format. Equals to
TYPE:
|
PNG |
The png format. Equals to
TYPE:
|
WEBP |
The webp format. Equals to
TYPE:
|
EPS |
The eps format (Encapsulated PostScript). Equals to
TYPE:
|
JPG |
The jpg format. Equals to
TYPE:
|
TIFF |
The tiff format. Equals to
TYPE:
|
Font Constants
datachart.constants.FONT_STYLE
The supported font styles.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default font style. Same as
TYPE:
|
NORMAL |
The normal font style. Equals to
TYPE:
|
ITALIC |
The italic font style. Equals to
TYPE:
|
OBLIQUE |
The oblique font style. Equals to
TYPE:
|
datachart.constants.FONT_WEIGHT
The supported font weights.
Used by the font_*_weight style attributes (general, title, subtitle,
axis labels).
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default font weight. Same as
TYPE:
|
ULTRA_LIGHT |
The ultra light font weight. Equals to
TYPE:
|
LIGHT |
The light font weight. Equals to
TYPE:
|
NORMAL |
The normal font weight. Equals to
TYPE:
|
MEDIUM |
The medium font weight. Equals to
TYPE:
|
SEMIBOLD |
The semibold font weight. Equals to
TYPE:
|
BOLD |
The bold font weight. Equals to
TYPE:
|
EXTRA_BOLD |
The extra bold font weight. Equals to
TYPE:
|
HEAVY |
The heavy font weight. Equals to
TYPE:
|
BLACK |
The black font weight. Equals to
TYPE:
|
Line Constants
datachart.constants.LINE_MARKER
The supported line markers.
Used by the plot_line_marker (line charts) and plot_scatter_marker
(scatter charts) style attributes.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
NONE |
No marker. Equals to
TYPE:
|
PIXEL |
The pixel line marker. Equals to
TYPE:
|
POINT |
The point line marker. Equals to
TYPE:
|
CIRCLE |
The circle line marker. Equals to
TYPE:
|
DIAMOND |
The diamond line marker. Equals to
TYPE:
|
THIN_DIAMOND |
The thin diamond line marker. Equals to
TYPE:
|
TRIANGLE |
The triangle (up) line marker. Equals to
TYPE:
|
TRIANGLE_DOWN |
The triangle down line marker. Equals to
TYPE:
|
TRIANGLE_LEFT |
The triangle left line marker. Equals to
TYPE:
|
TRIANGLE_RIGHT |
The triangle right line marker. Equals to
TYPE:
|
SQUARE |
The square line marker. Equals to
TYPE:
|
PENTAGON |
The pentagon line marker. Equals to
TYPE:
|
HEXAGON |
The hexagon line marker. Equals to
TYPE:
|
STAR |
The star line marker. Equals to
TYPE:
|
CROSS |
The cross line marker. Equals to
TYPE:
|
PLUS |
The plus line marker. Equals to
TYPE:
|
VLINE |
The vertical line marker. Equals to
TYPE:
|
HLINE |
The horizontal line marker. Equals to
TYPE:
|
datachart.constants.LINE_STYLE
The supported line styles.
Used by the plot_line_style style attribute of line charts.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
NONE |
No line style. Equals to
TYPE:
|
SOLID |
The solid line style. Equals to
TYPE:
|
DASHED |
The dashed line style. Equals to
TYPE:
|
DASHDOT |
The dashdot line style. Equals to
TYPE:
|
DOTTED |
The dotted line style. Equals to
TYPE:
|
datachart.constants.LINE_DRAW_STYLE
The supported line draw styles.
Used by the plot_line_drawstyle style attribute of line charts.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default line draw style. Equals to
TYPE:
|
STEPS_PRE |
The pre-steps line draw style. Equals to
TYPE:
|
STEPS_MID |
The mid-steps line draw style. Equals to
TYPE:
|
STEPS_POST |
The post-steps line draw style. Equals to
TYPE:
|
datachart.constants.ARROW_STYLE
The supported text annotation connector looks.
Used by the plot_text_arrow_style style attribute of text annotations.
Each value names a complete connector look — the line shape, curvature,
and the gap on the text side. A curved look bows toward the side with
the most open space around the chart's data; plot_text_arrow_curve
pins the bow exactly, and the other plot_text_arrow_* style attributes
override single properties of the chosen look. A raw matplotlib arrow
style string (e.g. "-|>") is also accepted.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
CURVE |
A curved plain line with a small text-side gap. The default. Equals to
TYPE:
|
CURVE_ARROW |
The same curve with an arrowhead at the target. Equals to
TYPE:
|
TOUCHING |
A straight plain line starting flush at the text box border. Equals to
TYPE:
|
ARROW |
A straight line with an arrowhead at the target. Equals to
TYPE:
|
Style Constants
datachart.constants.HATCH_STYLE
The supported hatch styles.
Used by the plot_bar_hatch and plot_hist_hatch style attributes, and
by the HATCH theme's hatch cycle.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default hatch style. Equals to
TYPE:
|
DIAGONAL |
The diagonal hatch style. Equals to
TYPE:
|
BACK_DIAGONAL |
The back diagonal hatch style. Equals to
TYPE:
|
VERTICAL |
The vertical hatch style. Equals to
TYPE:
|
HORIZONTAL |
The horizontal hatch style. Equals to
TYPE:
|
CROSSED |
The crossed hatch style. Equals to
TYPE:
|
CROSSED_DIAGONAL |
The crossed diagonal hatch style. Equals to
TYPE:
|
DOTS |
The dots hatch style. Equals to
TYPE:
|
CIRCLES |
The circles hatch style. Equals to
TYPE:
|
STARS |
The stars hatch style. Equals to
TYPE:
|
datachart.constants.COLORS
The predefined colors using pypalettes.
All palette names are valid pypalettes identifiers. You can use any of the 2500+
palettes available in pypalettes by passing the palette name as a string.
Accepted anywhere a palette is: the color_general_singular and
color_general_multiple config attributes, and the heatmap and parallel
coords color settings. All predefined palettes are rendered in the
Colormaps guide.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
Blues |
Sequential blue palette. Equals to
TYPE:
|
Greens |
Sequential green palette. Equals to
TYPE:
|
Oranges |
Sequential orange palette. Equals to
TYPE:
|
Purples |
Sequential purple palette. Equals to
TYPE:
|
Reds |
Sequential red palette. Equals to
TYPE:
|
Sunset2 |
Multi-hue sunset palette. Equals to
TYPE:
|
YlGnBu |
Multi-hue yellow-green-blue palette. Equals to
TYPE:
|
YlOrRd |
Multi-hue yellow-orange-red palette. Equals to
TYPE:
|
PuBuGn |
Multi-hue purple-blue-green palette. Equals to
TYPE:
|
GnBu |
Multi-hue green-blue palette. Equals to
TYPE:
|
Egypt |
Multi-hue Egypt palette. Equals to
TYPE:
|
Hiroshige |
Multi-hue Hiroshige palette. Equals to
TYPE:
|
Lake |
Multi-hue lake palette. Equals to
TYPE:
|
Neon |
Multi-hue neon palette. Equals to
TYPE:
|
RdBu |
Diverging red-blue palette. Equals to
TYPE:
|
BrBG |
Diverging brown-blue-green palette. Equals to
TYPE:
|
PuOr |
Diverging purple-orange palette. Equals to
TYPE:
|
Spectral |
Diverging spectral palette. Equals to
TYPE:
|
RdYlBu |
Diverging red-yellow-blue palette. Equals to
TYPE:
|
RdYlGn |
Diverging red-yellow-green palette. Equals to
TYPE:
|
Pastel |
Soft pastel categorical palette. Equals to
TYPE:
|
Set2 |
ColorBrewer Set2 categorical palette. Equals to
TYPE:
|
Accent |
ColorBrewer Accent categorical palette. Equals to
TYPE:
|
Dark2 |
ColorBrewer Dark2 categorical palette. Equals to
TYPE:
|
Paired |
ColorBrewer Paired categorical palette (high contrast). Equals to
TYPE:
|
Set1 |
ColorBrewer Set1 categorical palette (high contrast). Equals to
TYPE:
|
Greys |
Grayscale palette for monochrome visualizations. Equals to
TYPE:
|
Viridis |
Perceptually uniform, color-blind friendly. Equals to
TYPE:
|
Cividis |
Color-blind friendly (optimized for CVD). Equals to
TYPE:
|
Inferno |
Perceptually uniform, color-blind friendly. Equals to
TYPE:
|
Plasma |
Perceptually uniform, color-blind friendly. Equals to
TYPE:
|
Magma |
Perceptually uniform, color-blind friendly. Equals to
TYPE:
|
Turbo |
Rainbow-like but perceptually better. Equals to
TYPE:
|
OkabeIto |
Okabe-Ito categorical palette, color-blind safe. Equals to
TYPE:
|
OkabeIto_Black |
Okabe-Ito palette including black. Equals to
TYPE:
|
Coolwarm |
Diverging cool-warm palette. Equals to
TYPE:
|
Tab10 |
Tableau 10-color categorical palette. Equals to
TYPE:
|
Tab20 |
Tableau 20-color categorical palette. Equals to
TYPE:
|
PaperYlGnBu |
Diversified YlGnBu categorical palette for publications. Equals to
TYPE:
|
PaperAccent |
Two-color blue/red accent pair for publications. Equals to
TYPE:
|
datachart.constants.THEME
The predefined themes.
Applied with config.set_theme.
Every theme applied to the same set of
charts is shown in the
Theme Gallery.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default theme. Equals to
TYPE:
|
GREYSCALE |
The greyscale theme. Equals to
TYPE:
|
INK |
The ink theme (dark-ink accents, print-ready). Equals to
TYPE:
|
HATCH |
The hatch theme (hatch cycle, value labels, dotted grid). Equals to
TYPE:
|
MINIMAL |
The minimal theme (accent blue, no spines, flat bars). Equals to
TYPE:
|
MATERIAL |
The material theme (Google palette, light grid). Equals to
TYPE:
|
datachart.constants.EMPHASIS
The supported emphasis roles.
Set per chart via the emphasis key in a charts list, or per figure via
the emphasis argument of Panel.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
BACKGROUND |
Mute a series into context: theme muted color, lowered
alpha, thinner strokes, behind the others, no legend entry.
Equals to
TYPE:
|
HIGHLIGHT |
Bold a series and bring it to the front of the data
layers; it keeps its color and legend entry. Equals to
TYPE:
|
Legend Constants
datachart.constants.LEGEND_ALIGN
The supported legend alignments.
Used by the plot_legend_alignment style attribute; aligns the legend's
title and entries against each other.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default legend alignment. Same as
TYPE:
|
CENTER |
The center legend alignment. Equals to
TYPE:
|
RIGHT |
The right legend alignment. Equals to
TYPE:
|
LEFT |
The left legend alignment. Equals to
TYPE:
|
datachart.constants.LEGEND_LOCATION
The supported legend locations.
Used by the plot_legend_location style attribute; places the legend
within the chart.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
BEST |
Automatic best location. Equals to
TYPE:
|
UPPER_RIGHT |
Upper right corner. Equals to
TYPE:
|
UPPER_LEFT |
Upper left corner. Equals to
TYPE:
|
LOWER_LEFT |
Lower left corner. Equals to
TYPE:
|
LOWER_RIGHT |
Lower right corner. Equals to
TYPE:
|
RIGHT |
Center right. Equals to
TYPE:
|
CENTER_LEFT |
Center left. Equals to
TYPE:
|
CENTER_RIGHT |
Center right. Equals to
TYPE:
|
LOWER_CENTER |
Lower center. Equals to
TYPE:
|
UPPER_CENTER |
Upper center. Equals to
TYPE:
|
CENTER |
Center. Equals to
TYPE:
|
Chart Constants
datachart.constants.HISTOGRAM_TYPE
The supported histogram types.
Passed as the plot_hist_type style attribute of histograms: how each
series is rendered. How multiple series share the axis is the bar_mode
setting's job — see BAR_MODE.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
BAR |
The bar histogram style. Equals to
TYPE:
|
STEP |
The step histogram style: an unfilled outline in the
series color. Stacked series draw as
TYPE:
|
STEP_FILLED |
The filled step histogram style. Equals to
TYPE:
|
datachart.constants.BAR_MODE
The supported bar modes.
Passed as the bar_mode setting of bar charts, histograms, and
Panel: how multiple series share the axis.
Bar charts and panels default to GROUP; histograms default to STACK,
and treat GROUP (which has no histogram meaning) as OVERLAY.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default bar mode. Same as
TYPE:
|
GROUP |
The series are drawn side by side. Equals to
TYPE:
|
STACK |
The series are stacked on top of each other. Equals to
TYPE:
|
OVERLAY |
The series are drawn over each other at the same position. Equals to
TYPE:
|
datachart.constants.NORMALIZE
The supported normalization options.
Passed as the heatmap's norm attribute: normalizes the cell values
before they are mapped to colors. Distinct from
SCALE, which sets an axis scale.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
LINEAR |
The linear normalization. Equals to
TYPE:
|
LOG |
The logistic normalization. Equals to
TYPE:
|
SYMLOG |
The symlog normalization. Equals to
TYPE:
|
ASINH |
The asinh normalization. Equals to
TYPE:
|
LOGIT |
The logit normalization. Equals to
TYPE:
|
datachart.constants.ORIENTATION
The supported orientations.
Passed as the orientation setting of bar charts, histograms, box
plots, and violin plots.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
HORIZONTAL |
The horizontal orientation. Equals to
TYPE:
|
VERTICAL |
The vertical orientation. Equals to
TYPE:
|
datachart.constants.VIOLIN_INNER
The supported violin inner marks.
Passed as the inner setting of violin plots; None draws the body only.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
BOX |
A thin quartile bar, a 1.5·IQR whisker line, and a median
dot. Equals to
TYPE:
|
QUARTILES |
A dashed median line and dotted first and third
quartile lines, clipped to the body. Equals to
TYPE:
|
MEDIAN |
A single solid median line clipped to the body. Equals
to
TYPE:
|
datachart.constants.BANDWIDTH
The supported kernel density bandwidth rules.
Passed as the bandwidth setting of violin plots: the rule of thumb that
sizes the Gaussian kernel. A number is also accepted, as a factor applied
to the standard deviation of the values — smaller is sharper, larger is
smoother.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default rule. Same as
TYPE:
|
SCOTT |
Scott's rule of thumb,
TYPE:
|
SILVERMAN |
Silverman's rule of thumb,
TYPE:
|
datachart.constants.CONTOUR_LEVELS
The supported contour level rules.
Passed as the levels setting of contour charts: the rule that picks how
many iso-lines (or filled bands) cut the surface. An integer target count
or an explicit list of level values is also accepted. Every rule is
evaluated on the per-axis resolution of the grid (the square root of its
cell count), so a finer grid draws more levels; the count is clamped to
the 4–20 range and snapped to round values.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default rule. Same as
TYPE:
|
AUTO |
Matplotlib's own choice, about eight round values across
the surface. Equals to
TYPE:
|
RICE |
The Rice rule,
TYPE:
|
FD |
The Freedman–Diaconis rule, the value range over
TYPE:
|
datachart.constants.HEXBIN_REDUCE
The supported hexbin aggregations.
Passed as the reduce attribute of hexbin charts: how the c values of
the points in a hexagon collapse into the one value that colors it.
Ignored without c, where every hexagon shows its point count.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default aggregation. Same as
TYPE:
|
MEAN |
The mean of the
TYPE:
|
SUM |
The sum of the
TYPE:
|
MEDIAN |
The median of the
TYPE:
|
MIN |
The smallest
TYPE:
|
MAX |
The largest
TYPE:
|
datachart.constants.BASELINE
The supported stacked area baselines.
Passed as the baseline attribute of stacked area charts: where the
first series starts, and so how the whole stack sits on the y-axis.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default baseline. Same as
TYPE:
|
ZERO |
The stack starts at zero. Equals to
TYPE:
|
PERCENT |
Each
TYPE:
|
SYM |
The stack is centred on zero. Equals to
TYPE:
|
WIGGLE |
The baseline minimises the sum of squared slopes. Equals to
TYPE:
|
WEIGHTED_WIGGLE |
The baseline minimises the size-weighted sum of squared slopes. Equals to
TYPE:
|
datachart.constants.RADIAL_TYPE
The supported radial chart visuals.
Passed as the type setting of radial charts: the mark family the whole
figure draws. The area visual is the line visual with show_area=True;
stacked bars are the bar visual with bar_mode="stack".
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
LINE |
The line (radar) visual. Equals to
TYPE:
|
BAR |
The bar visual, one sector per label. Equals to
TYPE:
|
SCATTER |
The scatter visual. Equals to
TYPE:
|
HISTOGRAM |
The angular histogram (wind rose) visual. Equals to
TYPE:
|
datachart.constants.SWARM_MODE
The supported swarm plot modes.
Passed as the mode setting of swarm plots: how the points of one group
spread across the category width.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
SWARM |
The beeswarm mode: non-overlapping offsets computed from
the marker size. Equals to
TYPE:
|
STRIP |
The strip mode: seeded uniform jitter. Equals to
TYPE:
|
datachart.constants.DIRECTION
The supported angular directions.
Passed as the direction setting of radial charts: which way the angles
increase around the circle.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
CLOCKWISE |
The angles increase clockwise. Equals to
TYPE:
|
COUNTERCLOCKWISE |
The angles increase counterclockwise. Equals to
TYPE:
|
datachart.constants.VALUE_FORMAT
The predefined value formats.
Passed as the heatmap's valfmt attribute (the values drawn in the cells)
or the bar chart's value_format attribute (the bar value labels).
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default value format. Equals to
TYPE:
|
INTEGER |
The integer value format (works on floats too). Equals to
TYPE:
|
DECIMAL |
The decimal value format (1 decimal place). Equals to
TYPE:
|
DECIMAL_2 |
The decimal value format (2 decimal places). Equals to
TYPE:
|
DECIMAL_3 |
The decimal value format (3 decimal places). Equals to
TYPE:
|
PERCENT |
The percentage value format (1 decimal place). Equals to
TYPE:
|
PERCENT_INT |
The percentage value format (no decimals). Equals to
TYPE:
|
SCIENTIFIC |
The scientific notation format. Equals to
TYPE:
|
THOUSANDS |
The thousands separator format. Equals to
TYPE:
|
datachart.constants.SHOW_GRID
The supported show grid options.
Passed as the show_grid chart setting: which grid lines to draw. When
unset (or NONE), the theme's chart_default_show_grid fills in.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default show grid. Same as
TYPE:
|
NONE |
No explicit grid; the theme default applies. Equals to
TYPE:
|
X |
Show the x-axis grid. Equals to
TYPE:
|
Y |
Show the y-axis grid. Equals to
TYPE:
|
BOTH |
Show both the x- and y-axis grid. Equals to
TYPE:
|
datachart.constants.SCALE
The supported scale options.
Passed as the scalex/scaley chart settings to set an axis scale.
Distinct from NORMALIZE, which
normalizes heatmap colors.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default scale. Same as
TYPE:
|
LINEAR |
The linear scale. Equals to
TYPE:
|
LOG |
The log scale. Equals to
TYPE:
|
SYMLOG |
The symlog scale. Equals to
TYPE:
|
ASINH |
The asinh scale. Equals to
TYPE:
|
datachart.constants.ASPECT_RATIO
The supported aspect ratio options.
Passed as the aspect_ratio chart setting: the ratio of the y-unit to
the x-unit on screen.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
DEFAULT |
The default aspect ratio. Same as
TYPE:
|
AUTO |
Automatic aspect ratio. Equals to
TYPE:
|
EQUAL |
Equal aspect ratio (1:1). Equals to
TYPE:
|
datachart.constants.COLORBAR_LOCATION
The supported colorbar locations.
Examples:
| ATTRIBUTE | DESCRIPTION |
|---|---|
RIGHT |
Right side of the chart. Equals to
TYPE:
|
LEFT |
Left side of the chart. Equals to
TYPE:
|
TOP |
Top of the chart. Equals to
TYPE:
|
BOTTOM |
Bottom of the chart. Equals to
TYPE:
|