Skip to content

Commit d434b65

Browse files
committed
codegen files for plotly.js update
1 parent 66e7a67 commit d434b65

File tree

1,153 files changed

+4281
-1006
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,153 files changed

+4281
-1006
lines changed

packages/python/plotly/codegen/resources/plot-schema.json

Lines changed: 289 additions & 0 deletions
Large diffs are not rendered by default.

packages/python/plotly/plotly/graph_objs/_bar.py

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class Bar(_BaseTraceType):
6-
76
# class properties
87
# --------------------
98
_parent_path_str = ""
@@ -31,6 +30,7 @@ class Bar(_BaseTraceType):
3130
"idssrc",
3231
"insidetextanchor",
3332
"insidetextfont",
33+
"legend",
3434
"legendgroup",
3535
"legendgrouptitle",
3636
"legendrank",
@@ -777,6 +777,31 @@ def insidetextfont(self):
777777
def insidetextfont(self, val):
778778
self["insidetextfont"] = val
779779

780+
# legend
781+
# ------
782+
@property
783+
def legend(self):
784+
"""
785+
Sets the reference to a legend to show this trace in.
786+
References to these legends are "legend", "legend2", "legend3",
787+
etc. Settings for these legends are set in the layout, under
788+
`layout.legend`, `layout.legend2`, etc.
789+
790+
The 'legend' property is an identifier of a particular
791+
subplot, of type 'legend', that may be specified as the string 'legend'
792+
optionally followed by an integer >= 1
793+
(e.g. 'legend', 'legend1', 'legend2', 'legend3', etc.)
794+
795+
Returns
796+
-------
797+
str
798+
"""
799+
return self["legend"]
800+
801+
@legend.setter
802+
def legend(self, val):
803+
self["legend"] = val
804+
780805
# legendgroup
781806
# -----------
782807
@property
@@ -2254,6 +2279,12 @@ def _prop_descriptions(self):
22542279
points in `textposition` "inside" mode.
22552280
insidetextfont
22562281
Sets the font used for `text` lying inside the bar.
2282+
legend
2283+
Sets the reference to a legend to show this trace in.
2284+
References to these legends are "legend", "legend2",
2285+
"legend3", etc. Settings for these legends are set in
2286+
the layout, under `layout.legend`, `layout.legend2`,
2287+
etc.
22572288
legendgroup
22582289
Sets the legend group for this trace. Traces part of
22592290
the same legend group hide/show at the same time when
@@ -2534,6 +2565,7 @@ def __init__(
25342565
idssrc=None,
25352566
insidetextanchor=None,
25362567
insidetextfont=None,
2568+
legend=None,
25372569
legendgroup=None,
25382570
legendgrouptitle=None,
25392571
legendrank=None,
@@ -2704,6 +2736,12 @@ def __init__(
27042736
points in `textposition` "inside" mode.
27052737
insidetextfont
27062738
Sets the font used for `text` lying inside the bar.
2739+
legend
2740+
Sets the reference to a legend to show this trace in.
2741+
References to these legends are "legend", "legend2",
2742+
"legend3", etc. Settings for these legends are set in
2743+
the layout, under `layout.legend`, `layout.legend2`,
2744+
etc.
27072745
legendgroup
27082746
Sets the legend group for this trace. Traces part of
27092747
the same legend group hide/show at the same time when
@@ -3079,6 +3117,10 @@ def __init__(
30793117
_v = insidetextfont if insidetextfont is not None else _v
30803118
if _v is not None:
30813119
self["insidetextfont"] = _v
3120+
_v = arg.pop("legend", None)
3121+
_v = legend if legend is not None else _v
3122+
if _v is not None:
3123+
self["legend"] = _v
30823124
_v = arg.pop("legendgroup", None)
30833125
_v = legendgroup if legendgroup is not None else _v
30843126
if _v is not None:

packages/python/plotly/plotly/graph_objs/_barpolar.py

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class Barpolar(_BaseTraceType):
6-
76
# class properties
87
# --------------------
98
_parent_path_str = ""
@@ -24,6 +23,7 @@ class Barpolar(_BaseTraceType):
2423
"hovertextsrc",
2524
"ids",
2625
"idssrc",
26+
"legend",
2727
"legendgroup",
2828
"legendgrouptitle",
2929
"legendrank",
@@ -441,6 +441,31 @@ def idssrc(self):
441441
def idssrc(self, val):
442442
self["idssrc"] = val
443443

444+
# legend
445+
# ------
446+
@property
447+
def legend(self):
448+
"""
449+
Sets the reference to a legend to show this trace in.
450+
References to these legends are "legend", "legend2", "legend3",
451+
etc. Settings for these legends are set in the layout, under
452+
`layout.legend`, `layout.legend2`, etc.
453+
454+
The 'legend' property is an identifier of a particular
455+
subplot, of type 'legend', that may be specified as the string 'legend'
456+
optionally followed by an integer >= 1
457+
(e.g. 'legend', 'legend1', 'legend2', 'legend3', etc.)
458+
459+
Returns
460+
-------
461+
str
462+
"""
463+
return self["legend"]
464+
465+
@legend.setter
466+
def legend(self, val):
467+
self["legend"] = val
468+
444469
# legendgroup
445470
# -----------
446471
@property
@@ -1352,6 +1377,12 @@ def _prop_descriptions(self):
13521377
idssrc
13531378
Sets the source reference on Chart Studio Cloud for
13541379
`ids`.
1380+
legend
1381+
Sets the reference to a legend to show this trace in.
1382+
References to these legends are "legend", "legend2",
1383+
"legend3", etc. Settings for these legends are set in
1384+
the layout, under `layout.legend`, `layout.legend2`,
1385+
etc.
13551386
legendgroup
13561387
Sets the legend group for this trace. Traces part of
13571388
the same legend group hide/show at the same time when
@@ -1505,6 +1536,7 @@ def __init__(
15051536
hovertextsrc=None,
15061537
ids=None,
15071538
idssrc=None,
1539+
legend=None,
15081540
legendgroup=None,
15091541
legendgrouptitle=None,
15101542
legendrank=None,
@@ -1624,6 +1656,12 @@ def __init__(
16241656
idssrc
16251657
Sets the source reference on Chart Studio Cloud for
16261658
`ids`.
1659+
legend
1660+
Sets the reference to a legend to show this trace in.
1661+
References to these legends are "legend", "legend2",
1662+
"legend3", etc. Settings for these legends are set in
1663+
the layout, under `layout.legend`, `layout.legend2`,
1664+
etc.
16271665
legendgroup
16281666
Sets the legend group for this trace. Traces part of
16291667
the same legend group hide/show at the same time when
@@ -1851,6 +1889,10 @@ def __init__(
18511889
_v = idssrc if idssrc is not None else _v
18521890
if _v is not None:
18531891
self["idssrc"] = _v
1892+
_v = arg.pop("legend", None)
1893+
_v = legend if legend is not None else _v
1894+
if _v is not None:
1895+
self["legend"] = _v
18541896
_v = arg.pop("legendgroup", None)
18551897
_v = legendgroup if legendgroup is not None else _v
18561898
if _v is not None:

packages/python/plotly/plotly/graph_objs/_box.py

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class Box(_BaseTraceType):
6-
76
# class properties
87
# --------------------
98
_parent_path_str = ""
@@ -28,6 +27,7 @@ class Box(_BaseTraceType):
2827
"ids",
2928
"idssrc",
3029
"jitter",
30+
"legend",
3131
"legendgroup",
3232
"legendgrouptitle",
3333
"legendrank",
@@ -618,6 +618,31 @@ def jitter(self):
618618
def jitter(self, val):
619619
self["jitter"] = val
620620

621+
# legend
622+
# ------
623+
@property
624+
def legend(self):
625+
"""
626+
Sets the reference to a legend to show this trace in.
627+
References to these legends are "legend", "legend2", "legend3",
628+
etc. Settings for these legends are set in the layout, under
629+
`layout.legend`, `layout.legend2`, etc.
630+
631+
The 'legend' property is an identifier of a particular
632+
subplot, of type 'legend', that may be specified as the string 'legend'
633+
optionally followed by an integer >= 1
634+
(e.g. 'legend', 'legend1', 'legend2', 'legend3', etc.)
635+
636+
Returns
637+
-------
638+
str
639+
"""
640+
return self["legend"]
641+
642+
@legend.setter
643+
def legend(self, val):
644+
self["legend"] = val
645+
621646
# legendgroup
622647
# -----------
623648
@property
@@ -2212,6 +2237,12 @@ def _prop_descriptions(self):
22122237
If 0, the sample points align along the distribution
22132238
axis. If 1, the sample points are drawn in a random
22142239
jitter of width equal to the width of the box(es).
2240+
legend
2241+
Sets the reference to a legend to show this trace in.
2242+
References to these legends are "legend", "legend2",
2243+
"legend3", etc. Settings for these legends are set in
2244+
the layout, under `layout.legend`, `layout.legend2`,
2245+
etc.
22152246
legendgroup
22162247
Sets the legend group for this trace. Traces part of
22172248
the same legend group hide/show at the same time when
@@ -2551,6 +2582,7 @@ def __init__(
25512582
ids=None,
25522583
idssrc=None,
25532584
jitter=None,
2585+
legend=None,
25542586
legendgroup=None,
25552587
legendgrouptitle=None,
25562588
legendrank=None,
@@ -2750,6 +2782,12 @@ def __init__(
27502782
If 0, the sample points align along the distribution
27512783
axis. If 1, the sample points are drawn in a random
27522784
jitter of width equal to the width of the box(es).
2785+
legend
2786+
Sets the reference to a legend to show this trace in.
2787+
References to these legends are "legend", "legend2",
2788+
"legend3", etc. Settings for these legends are set in
2789+
the layout, under `layout.legend`, `layout.legend2`,
2790+
etc.
27532791
legendgroup
27542792
Sets the legend group for this trace. Traces part of
27552793
the same legend group hide/show at the same time when
@@ -3175,6 +3213,10 @@ def __init__(
31753213
_v = jitter if jitter is not None else _v
31763214
if _v is not None:
31773215
self["jitter"] = _v
3216+
_v = arg.pop("legend", None)
3217+
_v = legend if legend is not None else _v
3218+
if _v is not None:
3219+
self["legend"] = _v
31783220
_v = arg.pop("legendgroup", None)
31793221
_v = legendgroup if legendgroup is not None else _v
31803222
if _v is not None:

packages/python/plotly/plotly/graph_objs/_candlestick.py

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class Candlestick(_BaseTraceType):
6-
76
# class properties
87
# --------------------
98
_parent_path_str = ""
@@ -24,6 +23,7 @@ class Candlestick(_BaseTraceType):
2423
"ids",
2524
"idssrc",
2625
"increasing",
26+
"legend",
2727
"legendgroup",
2828
"legendgrouptitle",
2929
"legendrank",
@@ -443,6 +443,31 @@ def increasing(self):
443443
def increasing(self, val):
444444
self["increasing"] = val
445445

446+
# legend
447+
# ------
448+
@property
449+
def legend(self):
450+
"""
451+
Sets the reference to a legend to show this trace in.
452+
References to these legends are "legend", "legend2", "legend3",
453+
etc. Settings for these legends are set in the layout, under
454+
`layout.legend`, `layout.legend2`, etc.
455+
456+
The 'legend' property is an identifier of a particular
457+
subplot, of type 'legend', that may be specified as the string 'legend'
458+
optionally followed by an integer >= 1
459+
(e.g. 'legend', 'legend1', 'legend2', 'legend3', etc.)
460+
461+
Returns
462+
-------
463+
str
464+
"""
465+
return self["legend"]
466+
467+
@legend.setter
468+
def legend(self, val):
469+
self["legend"] = val
470+
446471
# legendgroup
447472
# -----------
448473
@property
@@ -1264,6 +1289,12 @@ def _prop_descriptions(self):
12641289
increasing
12651290
:class:`plotly.graph_objects.candlestick.Increasing`
12661291
instance or dict with compatible properties
1292+
legend
1293+
Sets the reference to a legend to show this trace in.
1294+
References to these legends are "legend", "legend2",
1295+
"legend3", etc. Settings for these legends are set in
1296+
the layout, under `layout.legend`, `layout.legend2`,
1297+
etc.
12671298
legendgroup
12681299
Sets the legend group for this trace. Traces part of
12691300
the same legend group hide/show at the same time when
@@ -1448,6 +1479,7 @@ def __init__(
14481479
ids=None,
14491480
idssrc=None,
14501481
increasing=None,
1482+
legend=None,
14511483
legendgroup=None,
14521484
legendgrouptitle=None,
14531485
legendrank=None,
@@ -1546,6 +1578,12 @@ def __init__(
15461578
increasing
15471579
:class:`plotly.graph_objects.candlestick.Increasing`
15481580
instance or dict with compatible properties
1581+
legend
1582+
Sets the reference to a legend to show this trace in.
1583+
References to these legends are "legend", "legend2",
1584+
"legend3", etc. Settings for these legends are set in
1585+
the layout, under `layout.legend`, `layout.legend2`,
1586+
etc.
15491587
legendgroup
15501588
Sets the legend group for this trace. Traces part of
15511589
the same legend group hide/show at the same time when
@@ -1804,6 +1842,10 @@ def __init__(
18041842
_v = increasing if increasing is not None else _v
18051843
if _v is not None:
18061844
self["increasing"] = _v
1845+
_v = arg.pop("legend", None)
1846+
_v = legend if legend is not None else _v
1847+
if _v is not None:
1848+
self["legend"] = _v
18071849
_v = arg.pop("legendgroup", None)
18081850
_v = legendgroup if legendgroup is not None else _v
18091851
if _v is not None:

0 commit comments

Comments
 (0)