Skip to content

Commit

Permalink
Update to plotly.js 1.44.0 (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease authored Jan 25, 2019
1 parent bc4fb46 commit 410baa1
Show file tree
Hide file tree
Showing 600 changed files with 27,599 additions and 8,000 deletions.
467 changes: 198 additions & 269 deletions js/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plotlywidget",
"version": "0.6.0",
"version": "0.7.0-rc.1",
"description": "The plotly.py ipywidgets library",
"author": "The plotly.py team",
"license": "MIT",
Expand Down Expand Up @@ -31,7 +31,7 @@
"ify-loader": "^1.1.0"
},
"dependencies": {
"plotly.js": "1.43.1",
"plotly.js": "1.44.0",
"@jupyter-widgets/base": "^1.0.0",
"lodash": "^4.17.4"
},
Expand Down
2 changes: 2 additions & 0 deletions plotly/graph_objs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
from plotly.graph_objs import ohlc
from ._mesh3d import Mesh3d
from plotly.graph_objs import mesh3d
from ._isosurface import Isosurface
from plotly.graph_objs import isosurface
from ._histogram2dcontour import Histogram2dContour
from plotly.graph_objs import histogram2dcontour
from ._histogram2d import Histogram2d
Expand Down
11 changes: 9 additions & 2 deletions plotly/graph_objs/_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@ def tsrc(self, val):
@property
def uid(self):
"""
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Expand Down Expand Up @@ -625,7 +628,9 @@ def _prop_descriptions(self):
tsrc
Sets the source reference on plot.ly for t .
uid
Assign an id to this trace, Use this to provide object
constancy between traces during animations and
transitions.
uirevision
Controls persistence of some user-driven changes to the
trace: `constraintrange` in `parcoords` traces, as well
Expand Down Expand Up @@ -746,7 +751,9 @@ def __init__(
tsrc
Sets the source reference on plot.ly for t .
uid
Assign an id to this trace, Use this to provide object
constancy between traces during animations and
transitions.
uirevision
Controls persistence of some user-driven changes to the
trace: `constraintrange` in `parcoords` traces, as well
Expand Down
15 changes: 11 additions & 4 deletions plotly/graph_objs/_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,9 @@ def tsrc(self, val):
@property
def uid(self):
"""
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Expand Down Expand Up @@ -1794,7 +1797,9 @@ def _prop_descriptions(self):
tsrc
Sets the source reference on plot.ly for t .
uid
Assign an id to this trace, Use this to provide object
constancy between traces during animations and
transitions.
uirevision
Controls persistence of some user-driven changes to the
trace: `constraintrange` in `parcoords` traces, as well
Expand Down Expand Up @@ -2089,7 +2094,9 @@ def __init__(
tsrc
Sets the source reference on plot.ly for t .
uid
Assign an id to this trace, Use this to provide object
constancy between traces during animations and
transitions.
uirevision
Controls persistence of some user-driven changes to the
trace: `constraintrange` in `parcoords` traces, as well
Expand Down Expand Up @@ -2197,8 +2204,8 @@ def __init__(
self._validators['hoverinfosrc'] = v_bar.HoverinfosrcValidator()
self._validators['hoverlabel'] = v_bar.HoverlabelValidator()
self._validators['hovertemplate'] = v_bar.HovertemplateValidator()
self._validators['hovertemplatesrc'
] = v_bar.HovertemplatesrcValidator()
self._validators['hovertemplatesrc'] = v_bar.HovertemplatesrcValidator(
)
self._validators['hovertext'] = v_bar.HovertextValidator()
self._validators['hovertextsrc'] = v_bar.HovertextsrcValidator()
self._validators['ids'] = v_bar.IdsValidator()
Expand Down
116 changes: 114 additions & 2 deletions plotly/graph_objs/_barpolar.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,60 @@ def hoverlabel(self):
def hoverlabel(self, val):
self['hoverlabel'] = val

# hovertemplate
# -------------
@property
def hovertemplate(self):
"""
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d3-format}, for example "Price: %{y:$.2f}". See http
s://github.com/d3/d3-format/blob/master/README.md#locale_format
for details on the formatting syntax. The variables available
in `hovertemplate` are the ones emitted as event data described
at this link https://plot.ly/javascript/plotlyjs-events/#event-
data. Additionally, every attributes that can be specified per-
point (the ones that are `arrayOk: true`) are available.
Anything contained in tag `<extra>` is displayed in the
secondary box, for example "<extra>{fullData.name}</extra>".
The 'hovertemplate' 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['hovertemplate']

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

# hovertemplatesrc
# ----------------
@property
def hovertemplatesrc(self):
"""
Sets the source reference on plot.ly for hovertemplate .
The 'hovertemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self['hovertemplatesrc']

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

# ids
# ---
@property
Expand Down Expand Up @@ -803,6 +857,9 @@ def thetaunit(self, val):
@property
def uid(self):
"""
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Expand Down Expand Up @@ -990,6 +1047,26 @@ def _prop_descriptions(self):
hoverlabel
plotly.graph_objs.barpolar.Hoverlabel instance or dict
with compatible properties
hovertemplate
Template string used for rendering the information that
appear on hover box. Note that this will override
`hoverinfo`. Variables are inserted using %{variable},
for example "y: %{y}". Numbers are formatted using
d3-format's syntax %{variable:d3-format}, for example
"Price: %{y:$.2f}". See https://github.com/d3/d3-format
/blob/master/README.md#locale_format for details on the
formatting syntax. The variables available in
`hovertemplate` are the ones emitted as event data
described at this link
https://plot.ly/javascript/plotlyjs-events/#event-data.
Additionally, every attributes that can be specified
per-point (the ones that are `arrayOk: true`) are
available. Anything contained in tag `<extra>` is
displayed in the secondary box, for example
"<extra>{fullData.name}</extra>".
hovertemplatesrc
Sets the source reference on plot.ly for hovertemplate
.
ids
Assigns id labels to each datum. These ids for object
constancy of data points during animation. Should be an
Expand Down Expand Up @@ -1061,7 +1138,9 @@ def _prop_descriptions(self):
Sets the unit of input "theta" values. Has an effect
only when on "linear" angular axes.
uid
Assign an id to this trace, Use this to provide object
constancy between traces during animations and
transitions.
uirevision
Controls persistence of some user-driven changes to the
trace: `constraintrange` in `parcoords` traces, as well
Expand Down Expand Up @@ -1106,6 +1185,8 @@ def __init__(
hoverinfo=None,
hoverinfosrc=None,
hoverlabel=None,
hovertemplate=None,
hovertemplatesrc=None,
ids=None,
idssrc=None,
legendgroup=None,
Expand Down Expand Up @@ -1176,6 +1257,26 @@ def __init__(
hoverlabel
plotly.graph_objs.barpolar.Hoverlabel instance or dict
with compatible properties
hovertemplate
Template string used for rendering the information that
appear on hover box. Note that this will override
`hoverinfo`. Variables are inserted using %{variable},
for example "y: %{y}". Numbers are formatted using
d3-format's syntax %{variable:d3-format}, for example
"Price: %{y:$.2f}". See https://github.com/d3/d3-format
/blob/master/README.md#locale_format for details on the
formatting syntax. The variables available in
`hovertemplate` are the ones emitted as event data
described at this link
https://plot.ly/javascript/plotlyjs-events/#event-data.
Additionally, every attributes that can be specified
per-point (the ones that are `arrayOk: true`) are
available. Anything contained in tag `<extra>` is
displayed in the secondary box, for example
"<extra>{fullData.name}</extra>".
hovertemplatesrc
Sets the source reference on plot.ly for hovertemplate
.
ids
Assigns id labels to each datum. These ids for object
constancy of data points during animation. Should be an
Expand Down Expand Up @@ -1247,7 +1348,9 @@ def __init__(
Sets the unit of input "theta" values. Has an effect
only when on "linear" angular axes.
uid
Assign an id to this trace, Use this to provide object
constancy between traces during animations and
transitions.
uirevision
Controls persistence of some user-driven changes to the
trace: `constraintrange` in `parcoords` traces, as well
Expand Down Expand Up @@ -1320,6 +1423,9 @@ def __init__(
self._validators['hoverinfo'] = v_barpolar.HoverinfoValidator()
self._validators['hoverinfosrc'] = v_barpolar.HoverinfosrcValidator()
self._validators['hoverlabel'] = v_barpolar.HoverlabelValidator()
self._validators['hovertemplate'] = v_barpolar.HovertemplateValidator()
self._validators['hovertemplatesrc'
] = v_barpolar.HovertemplatesrcValidator()
self._validators['ids'] = v_barpolar.IdsValidator()
self._validators['idssrc'] = v_barpolar.IdssrcValidator()
self._validators['legendgroup'] = v_barpolar.LegendgroupValidator()
Expand Down Expand Up @@ -1371,6 +1477,12 @@ def __init__(
self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v
_v = arg.pop('hoverlabel', None)
self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v
_v = arg.pop('hovertemplate', None)
self['hovertemplate'
] = hovertemplate if hovertemplate is not None else _v
_v = arg.pop('hovertemplatesrc', None)
self['hovertemplatesrc'
] = hovertemplatesrc if hovertemplatesrc 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
47 changes: 45 additions & 2 deletions plotly/graph_objs/_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,9 @@ def textsrc(self, val):
@property
def uid(self):
"""
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Expand Down Expand Up @@ -844,6 +847,28 @@ def whiskerwidth(self):
def whiskerwidth(self, val):
self['whiskerwidth'] = val

# width
# -----
@property
def width(self):
"""
Sets the width of the box in data coordinate If 0 (default
value) the width is automatically selected based on the
positions of other box traces in the same subplot.
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self['width']

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

# x
# -
@property
Expand Down Expand Up @@ -1186,7 +1211,9 @@ def _prop_descriptions(self):
textsrc
Sets the source reference on plot.ly for text .
uid
Assign an id to this trace, Use this to provide object
constancy between traces during animations and
transitions.
uirevision
Controls persistence of some user-driven changes to the
trace: `constraintrange` in `parcoords` traces, as well
Expand Down Expand Up @@ -1217,6 +1244,11 @@ def _prop_descriptions(self):
Sets the width of the whiskers relative to the box'
width. For example, with 1, the whiskers are as wide as
the box(es).
width
Sets the width of the box in data coordinate If 0
(default value) the width is automatically selected
based on the positions of other box traces in the same
subplot.
x
Sets the x sample data or coordinates. See overview for
more info.
Expand Down Expand Up @@ -1284,6 +1316,7 @@ def __init__(
unselected=None,
visible=None,
whiskerwidth=None,
width=None,
x=None,
x0=None,
xaxis=None,
Expand Down Expand Up @@ -1422,7 +1455,9 @@ def __init__(
textsrc
Sets the source reference on plot.ly for text .
uid
Assign an id to this trace, Use this to provide object
constancy between traces during animations and
transitions.
uirevision
Controls persistence of some user-driven changes to the
trace: `constraintrange` in `parcoords` traces, as well
Expand Down Expand Up @@ -1453,6 +1488,11 @@ def __init__(
Sets the width of the whiskers relative to the box'
width. For example, with 1, the whiskers are as wide as
the box(es).
width
Sets the width of the box in data coordinate If 0
(default value) the width is automatically selected
based on the positions of other box traces in the same
subplot.
x
Sets the x sample data or coordinates. See overview for
more info.
Expand Down Expand Up @@ -1548,6 +1588,7 @@ def __init__(
self._validators['unselected'] = v_box.UnselectedValidator()
self._validators['visible'] = v_box.VisibleValidator()
self._validators['whiskerwidth'] = v_box.WhiskerwidthValidator()
self._validators['width'] = v_box.WidthValidator()
self._validators['x'] = v_box.XValidator()
self._validators['x0'] = v_box.X0Validator()
self._validators['xaxis'] = v_box.XAxisValidator()
Expand Down Expand Up @@ -1627,6 +1668,8 @@ def __init__(
self['visible'] = visible if visible is not None else _v
_v = arg.pop('whiskerwidth', None)
self['whiskerwidth'] = whiskerwidth if whiskerwidth is not None else _v
_v = arg.pop('width', None)
self['width'] = width if width is not None else _v
_v = arg.pop('x', None)
self['x'] = x if x is not None else _v
_v = arg.pop('x0', None)
Expand Down
Loading

0 comments on commit 410baa1

Please sign in to comment.