gosling.Style#

class gosling.Style(align=Undefined, background=Undefined, backgroundOpacity=Undefined, brush=Undefined, curve=Undefined, dashed=Undefined, dx=Undefined, dy=Undefined, enableSmoothPath=Undefined, inlineLegend=Undefined, legendTitle=Undefined, linePattern=Undefined, linkConnectionType=Undefined, linkMinHeight=Undefined, linkStyle=Undefined, matrixExtent=Undefined, mouseOver=Undefined, outline=Undefined, outlineWidth=Undefined, select=Undefined, textAnchor=Undefined, textFontSize=Undefined, textFontWeight=Undefined, textStroke=Undefined, textStrokeWidth=Undefined, withinLinkVerticalLines=Undefined, **kwds)#

Style schema wrapper

Mapping(required=[])

Attributes:
alignenum(‘left’, ‘right’)

Specify the alignment of marks. This property is currently only supported for triangle marks.

backgroundstring
backgroundOpacityfloat
brushMapping(required=[])

Customize the style of the brush mark in the rangeSelect mouse event.

curveenum(‘top’, ‘bottom’, ‘left’, ‘right’)

Specify the curve of rule marks.

dashedList(float)

Specify the pattern of dashes and gaps for rule marks.

dxfloat

Offset the position of marks in x direction. This property is currently only supported for text marks

dyfloat

Offset the position of marks in y direction. This property is currently only supported for text marks.

enableSmoothPathboolean

Whether to enable smooth paths when drawing curves.

__Default__: false

inlineLegendboolean

Specify whether to show legend in a single horizontal line?

legendTitlestring

If defined, show legend title on the top or left

linePatternMapping(required=[type, size])

Specify the pattern of dashes and gaps for rule marks.

linkConnectionTypeenum(‘straight’, ‘curve’, ‘corner’)

Specify the connetion type of betweenLink marks.

__Default__: “corner”

linkMinHeightfloat

The minimum height of withinLink and betweenLink marks. Unit is a percentagle. __Default__: 0.5

linkStyleenum(‘elliptical’, ‘circular’, ‘straight’)

The style of withinLink and betweenLink marks. __Default__: ‘circular’ ‘elliptical’ will be used as a default option.

matrixExtentenum(‘full’, ‘upper-right’, ‘lower-left’)

Determine to show only one side of the diagonal in a HiGlass matrix. __Default__: “full”

mouseOverEventStyle

Customize visual effects of mouseOver events on marks.

outlinestring
outlineWidthfloat
selectEventStyle

Customize visual effects of rangeSelect events on marks .

textAnchorenum(‘start’, ‘middle’, ‘end’)

Specify the alignment of text marks to a given point.

textFontSizefloat

Specify the font size of text marks. Can also be specified using the size channel option of text marks.

textFontWeightenum(‘bold’, ‘normal’)

Specify the font weight of text marks.

textStrokestring

Specify the stroke of text marks. Can also be specified using the stroke channel option of text marks.

textStrokeWidthfloat

Specify the stroke width of text marks. Can also be specified using the strokeWidth channel option of text marks.

withinLinkVerticalLinesboolean

Whether to show vertical lines that connect to the baseline (axis) when y and ye are both used. __Default__: false

__init__(align=Undefined, background=Undefined, backgroundOpacity=Undefined, brush=Undefined, curve=Undefined, dashed=Undefined, dx=Undefined, dy=Undefined, enableSmoothPath=Undefined, inlineLegend=Undefined, legendTitle=Undefined, linePattern=Undefined, linkConnectionType=Undefined, linkMinHeight=Undefined, linkStyle=Undefined, matrixExtent=Undefined, mouseOver=Undefined, outline=Undefined, outlineWidth=Undefined, select=Undefined, textAnchor=Undefined, textFontSize=Undefined, textFontWeight=Undefined, textStroke=Undefined, textStrokeWidth=Undefined, withinLinkVerticalLines=Undefined, **kwds)#

Methods

__init__([align, background, ...])

copy([deep, ignore])

Return a copy of the object

from_dict(dct[, validate, _wrapper_classes])

Construct class from a dictionary representation

from_json(json_string[, validate])

Instantiate the object from a valid JSON string

resolve_references([schema])

Resolve references in the context of this object's schema or root schema.

to_dict([validate, ignore, context])

Return a dictionary representation of the object

to_json([validate, ignore, context, indent, ...])

Emit the JSON representation for this object as a string.

validate(instance[, schema])

Validate the instance against the class schema in the context of the rootschema.

validate_property(name, value[, schema])

Validate a property against property schema in the context of the rootschema