Skip to content

Update to plotly.js 1.45.1 #1455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
327 changes: 178 additions & 149 deletions js/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"ify-loader": "^1.1.0"
},
"dependencies": {
"plotly.js": "1.44.3",
"plotly.js": "1.45.1",
"@jupyter-widgets/base": "^1.0.0",
"lodash": "^4.17.4"
},
Expand Down
81 changes: 81 additions & 0 deletions plotly/graph_objs/_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@

class Bar(BaseTraceType):

# alignmentgroup
# --------------
@property
def alignmentgroup(self):
"""
Set several traces linked to the same position axis or matching
axes to the same alignmentgroup. This controls whether bars
compute their positional range dependently or independently.

The 'alignmentgroup' property is a string and must be specified as:
- A string
- A number that will be converted to a string

Returns
-------
str
"""
return self['alignmentgroup']

@alignmentgroup.setter
def alignmentgroup(self, val):
self['alignmentgroup'] = val

# base
# ----
@property
Expand Down Expand Up @@ -686,6 +709,14 @@ def marker(self):
numerical array. Value should have the same
units as in `marker.color` and if set,
`marker.cmin` must be set as well.
cmid
Sets the mid-point of the color domain by
scaling `marker.cmin` and/or `marker.cmax` to
be equidistant to this point. Has an effect
only if in `marker.color`is set to a numerical
array. Value should have the same units as in
`marker.color`. Has no effect when
`marker.cauto` is `false`.
cmin
Sets the lower bound of the color domain. Has
an effect only if in `marker.color`is set to a
Expand Down Expand Up @@ -795,6 +826,29 @@ def offset(self):
def offset(self, val):
self['offset'] = val

# offsetgroup
# -----------
@property
def offsetgroup(self):
"""
Set several traces linked to the same position axis or matching
axes to the same offsetgroup where bars of the same position
coordinate will line up.

The 'offsetgroup' property is a string and must be specified as:
- A string
- A number that will be converted to a string

Returns
-------
str
"""
return self['offsetgroup']

@offsetgroup.setter
def offsetgroup(self, val):
self['offsetgroup'] = val

# offsetsrc
# ---------
@property
Expand Down Expand Up @@ -1640,6 +1694,11 @@ def _parent_path_str(self):
@property
def _prop_descriptions(self):
return """\
alignmentgroup
Set several traces linked to the same position axis or
matching axes to the same alignmentgroup. This controls
whether bars compute their positional range dependently
or independently.
base
Sets where the bar base is drawn (in position axis
units). In "stack" or "relative" barmode, traces that
Expand Down Expand Up @@ -1734,6 +1793,10 @@ def _prop_descriptions(self):
axis units). In "group" barmode, traces that set
"offset" will be excluded and drawn in "overlay" mode
instead.
offsetgroup
Set several traces linked to the same position axis or
matching axes to the same offsetgroup where bars of the
same position coordinate will line up.
offsetsrc
Sets the source reference on plot.ly for offset .
opacity
Expand Down Expand Up @@ -1865,6 +1928,7 @@ def _prop_descriptions(self):
def __init__(
self,
arg=None,
alignmentgroup=None,
base=None,
basesrc=None,
cliponaxis=None,
Expand All @@ -1889,6 +1953,7 @@ def __init__(
marker=None,
name=None,
offset=None,
offsetgroup=None,
offsetsrc=None,
opacity=None,
orientation=None,
Expand Down Expand Up @@ -1937,6 +2002,11 @@ def __init__(
arg
dict of properties compatible with this constructor or
an instance of plotly.graph_objs.Bar
alignmentgroup
Set several traces linked to the same position axis or
matching axes to the same alignmentgroup. This controls
whether bars compute their positional range dependently
or independently.
base
Sets where the bar base is drawn (in position axis
units). In "stack" or "relative" barmode, traces that
Expand Down Expand Up @@ -2031,6 +2101,10 @@ def __init__(
axis units). In "group" barmode, traces that set
"offset" will be excluded and drawn in "overlay" mode
instead.
offsetgroup
Set several traces linked to the same position axis or
matching axes to the same offsetgroup where bars of the
same position coordinate will line up.
offsetsrc
Sets the source reference on plot.ly for offset .
opacity
Expand Down Expand Up @@ -2190,6 +2264,7 @@ def __init__(

# Initialize validators
# ---------------------
self._validators['alignmentgroup'] = v_bar.AlignmentgroupValidator()
self._validators['base'] = v_bar.BaseValidator()
self._validators['basesrc'] = v_bar.BasesrcValidator()
self._validators['cliponaxis'] = v_bar.CliponaxisValidator()
Expand All @@ -2215,6 +2290,7 @@ def __init__(
self._validators['marker'] = v_bar.MarkerValidator()
self._validators['name'] = v_bar.NameValidator()
self._validators['offset'] = v_bar.OffsetValidator()
self._validators['offsetgroup'] = v_bar.OffsetgroupValidator()
self._validators['offsetsrc'] = v_bar.OffsetsrcValidator()
self._validators['opacity'] = v_bar.OpacityValidator()
self._validators['orientation'] = v_bar.OrientationValidator()
Expand Down Expand Up @@ -2251,6 +2327,9 @@ def __init__(

# Populate data dict with properties
# ----------------------------------
_v = arg.pop('alignmentgroup', None)
self['alignmentgroup'
] = alignmentgroup if alignmentgroup is not None else _v
_v = arg.pop('base', None)
self['base'] = base if base is not None else _v
_v = arg.pop('basesrc', None)
Expand Down Expand Up @@ -2304,6 +2383,8 @@ def __init__(
self['name'] = name if name is not None else _v
_v = arg.pop('offset', None)
self['offset'] = offset if offset is not None else _v
_v = arg.pop('offsetgroup', None)
self['offsetgroup'] = offsetgroup if offsetgroup is not None else _v
_v = arg.pop('offsetsrc', None)
self['offsetsrc'] = offsetsrc if offsetsrc is not None else _v
_v = arg.pop('opacity', None)
Expand Down
66 changes: 66 additions & 0 deletions plotly/graph_objs/_barpolar.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,48 @@ def hovertemplatesrc(self):
def hovertemplatesrc(self, val):
self['hovertemplatesrc'] = val

# hovertext
# ---------
@property
def hovertext(self):
"""
Same as `text`.

The 'hovertext' property is a string and must be specified as:
- A string
- A number that will be converted to a string
- A tuple, list, or one-dimensional numpy array of the above

Returns
-------
str|numpy.ndarray
"""
return self['hovertext']

@hovertext.setter
def hovertext(self, val):
self['hovertext'] = val

# hovertextsrc
# ------------
@property
def hovertextsrc(self):
"""
Sets the source reference on plot.ly for hovertext .

The 'hovertextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object

Returns
-------
str
"""
return self['hovertextsrc']

@hovertextsrc.setter
def hovertextsrc(self, val):
self['hovertextsrc'] = val

# ids
# ---
@property
Expand Down Expand Up @@ -382,6 +424,14 @@ def marker(self):
numerical array. Value should have the same
units as in `marker.color` and if set,
`marker.cmin` must be set as well.
cmid
Sets the mid-point of the color domain by
scaling `marker.cmin` and/or `marker.cmax` to
be equidistant to this point. Has an effect
only if in `marker.color`is set to a numerical
array. Value should have the same units as in
`marker.color`. Has no effect when
`marker.cauto` is `false`.
cmin
Sets the lower bound of the color domain. Has
an effect only if in `marker.color`is set to a
Expand Down Expand Up @@ -1067,6 +1117,10 @@ def _prop_descriptions(self):
hovertemplatesrc
Sets the source reference on plot.ly for hovertemplate
.
hovertext
Same as `text`.
hovertextsrc
Sets the source reference on plot.ly for hovertext .
ids
Assigns id labels to each datum. These ids for object
constancy of data points during animation. Should be an
Expand Down Expand Up @@ -1187,6 +1241,8 @@ def __init__(
hoverlabel=None,
hovertemplate=None,
hovertemplatesrc=None,
hovertext=None,
hovertextsrc=None,
ids=None,
idssrc=None,
legendgroup=None,
Expand Down Expand Up @@ -1277,6 +1333,10 @@ def __init__(
hovertemplatesrc
Sets the source reference on plot.ly for hovertemplate
.
hovertext
Same as `text`.
hovertextsrc
Sets the source reference on plot.ly for hovertext .
ids
Assigns id labels to each datum. These ids for object
constancy of data points during animation. Should be an
Expand Down Expand Up @@ -1426,6 +1486,8 @@ def __init__(
self._validators['hovertemplate'] = v_barpolar.HovertemplateValidator()
self._validators['hovertemplatesrc'
] = v_barpolar.HovertemplatesrcValidator()
self._validators['hovertext'] = v_barpolar.HovertextValidator()
self._validators['hovertextsrc'] = v_barpolar.HovertextsrcValidator()
self._validators['ids'] = v_barpolar.IdsValidator()
self._validators['idssrc'] = v_barpolar.IdssrcValidator()
self._validators['legendgroup'] = v_barpolar.LegendgroupValidator()
Expand Down Expand Up @@ -1483,6 +1545,10 @@ def __init__(
_v = arg.pop('hovertemplatesrc', None)
self['hovertemplatesrc'
] = hovertemplatesrc if hovertemplatesrc is not None else _v
_v = arg.pop('hovertext', None)
self['hovertext'] = hovertext if hovertext is not None else _v
_v = arg.pop('hovertextsrc', None)
self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v
_v = arg.pop('ids', None)
self['ids'] = ids if ids is not None else _v
_v = arg.pop('idssrc', None)
Expand Down
Loading