Skip to content

Commit 7ac7d9b

Browse files
committed
Updated schema
1 parent 6671106 commit 7ac7d9b

File tree

1 file changed

+212
-5
lines changed

1 file changed

+212
-5
lines changed

plotly/graph_reference/default-schema.json

Lines changed: 212 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,8 @@
712712
"mollweide",
713713
"hammer",
714714
"transverse mercator",
715-
"albers usa"
715+
"albers usa",
716+
"winkel tripel"
716717
]
717718
}
718719
},
@@ -838,6 +839,114 @@
838839
false
839840
]
840841
},
842+
"images": {
843+
"items": {
844+
"image": {
845+
"layer": {
846+
"description": "Specifies whether images are drawn below or above traces. When `xref` and `yref` are both set to `paper`, image is drawn below the entire plot area.",
847+
"dflt": "above",
848+
"role": "info",
849+
"valType": "enumerated",
850+
"values": [
851+
"below",
852+
"above"
853+
]
854+
},
855+
"opacity": {
856+
"description": "Sets the opacity of the image.",
857+
"dflt": 1,
858+
"max": 1,
859+
"min": 0,
860+
"role": "info",
861+
"valType": "number"
862+
},
863+
"role": "object",
864+
"sizex": {
865+
"description": "Sets the image container size horizontally. The image will be sized based on the `position` value. When `xref` is set to `paper`, units are sized relative to the plot width.",
866+
"dflt": 0,
867+
"role": "info",
868+
"valType": "number"
869+
},
870+
"sizey": {
871+
"description": "Sets the image container size vertically. The image will be sized based on the `position` value. When `yref` is set to `paper`, units are sized relative to the plot height.",
872+
"dflt": 0,
873+
"role": "info",
874+
"valType": "number"
875+
},
876+
"sizing": {
877+
"description": "Specifies which dimension of the image to constrain.",
878+
"dflt": "contain",
879+
"role": "info",
880+
"valType": "enumerated",
881+
"values": [
882+
"fill",
883+
"contain",
884+
"stretch"
885+
]
886+
},
887+
"source": {
888+
"description": "Specifies the URL of the image to be used. The URL must be accessible from the ___domain where the plot code is run, and can be either relative or absolute.",
889+
"role": "info",
890+
"valType": "string"
891+
},
892+
"x": {
893+
"description": "Sets the image's x position. When `xref` is set to `paper`, units are sized relative to the plot height. See `xref` for more info",
894+
"dflt": 0,
895+
"role": "info",
896+
"valType": "number"
897+
},
898+
"xanchor": {
899+
"description": "Sets the anchor for the x position",
900+
"dflt": "left",
901+
"role": "info",
902+
"valType": "enumerated",
903+
"values": [
904+
"left",
905+
"center",
906+
"right"
907+
]
908+
},
909+
"xref": {
910+
"description": "Sets the images's x coordinate axis. If set to a x axis id (e.g. *x* or *x2*), the `x` position refers to an x data coordinate If set to *paper*, the `x` position refers to the distance from the left of plot in normalized coordinates where *0* (*1*) corresponds to the left (right).",
911+
"dflt": "paper",
912+
"role": "info",
913+
"valType": "enumerated",
914+
"values": [
915+
"paper",
916+
"/^x([2-9]|[1-9][0-9]+)?$/"
917+
]
918+
},
919+
"y": {
920+
"description": "Sets the image's y position. When `yref` is set to `paper`, units are sized relative to the plot height. See `yref` for more info",
921+
"dflt": 0,
922+
"role": "info",
923+
"valType": "number"
924+
},
925+
"yanchor": {
926+
"description": "Sets the anchor for the y position.",
927+
"dflt": "top",
928+
"role": "info",
929+
"valType": "enumerated",
930+
"values": [
931+
"top",
932+
"middle",
933+
"bottom"
934+
]
935+
},
936+
"yref": {
937+
"description": "Sets the images's y coordinate axis. If set to a y axis id (e.g. *y* or *y2*), the `y` position refers to a y data coordinate. If set to *paper*, the `y` position refers to the distance from the bottom of the plot in normalized coordinates where *0* (*1*) corresponds to the bottom (top).",
938+
"dflt": "paper",
939+
"role": "info",
940+
"valType": "enumerated",
941+
"values": [
942+
"paper",
943+
"/^y([2-9]|[1-9][0-9]+)?$/"
944+
]
945+
}
946+
}
947+
},
948+
"role": "object"
949+
},
841950
"legend": {
842951
"bgcolor": {
843952
"description": "Sets the legend background color.",
@@ -877,6 +986,16 @@
877986
"valType": "number"
878987
}
879988
},
989+
"orientation": {
990+
"description": "Sets the orientation of the legend.",
991+
"dflt": "v",
992+
"role": "info",
993+
"valType": "enumerated",
994+
"values": [
995+
"v",
996+
"h"
997+
]
998+
},
880999
"role": "object",
8811000
"tracegroupgap": {
8821001
"description": "Sets the amount of vertical space (in px) between legend groups.",
@@ -6018,14 +6137,15 @@
60186137
"valType": "number"
60196138
},
60206139
"barmode": {
6021-
"description": "Determines how bars at the same ___location coordinate are displayed on the graph. With *stack*, the bars are stacked on top of one another With *group*, the bars are plotted next to one another centered around the shared ___location. With *overlay*, the bars are plotted over one another, you might need to an *opacity* to see multiple bars.",
6140+
"description": "Determines how bars at the same ___location coordinate are displayed on the graph. With *stack*, the bars are stacked on top of one another With *relative*, the bars are stacked on top of one another, with negative values below the axis, positive values above With *group*, the bars are plotted next to one another centered around the shared ___location. With *overlay*, the bars are plotted over one another, you might need to an *opacity* to see multiple bars.",
60226141
"dflt": "group",
60236142
"role": "info",
60246143
"valType": "enumerated",
60256144
"values": [
60266145
"stack",
60276146
"group",
6028-
"overlay"
6147+
"overlay",
6148+
"relative"
60296149
]
60306150
},
60316151
"barnorm": {
@@ -9298,14 +9418,15 @@
92989418
"valType": "number"
92999419
},
93009420
"barmode": {
9301-
"description": "Determines how bars at the same ___location coordinate are displayed on the graph. With *stack*, the bars are stacked on top of one another With *group*, the bars are plotted next to one another centered around the shared ___location. With *overlay*, the bars are plotted over one another, you might need to an *opacity* to see multiple bars.",
9421+
"description": "Determines how bars at the same ___location coordinate are displayed on the graph. With *stack*, the bars are stacked on top of one another With *relative*, the bars are stacked on top of one another, with negative values below the axis, positive values above With *group*, the bars are plotted next to one another centered around the shared ___location. With *overlay*, the bars are plotted over one another, you might need to an *opacity* to see multiple bars.",
93029422
"dflt": "group",
93039423
"role": "info",
93049424
"valType": "enumerated",
93059425
"values": [
93069426
"stack",
93079427
"group",
9308-
"overlay"
9428+
"overlay",
9429+
"relative"
93099430
]
93109431
},
93119432
"barnorm": {
@@ -11109,20 +11230,31 @@
1110911230
},
1111011231
"lighting": {
1111111232
"ambient": {
11233+
"description": "Ambient light increases overall color visibility but can wash out the image.",
1111211234
"dflt": 0.8,
1111311235
"max": 1,
1111411236
"min": 0,
1111511237
"role": "style",
1111611238
"valType": "number"
1111711239
},
1111811240
"diffuse": {
11241+
"description": "Represents the extent that incident rays are reflected in a range of angles.",
1111911242
"dflt": 0.8,
1112011243
"max": 1,
1112111244
"min": 0,
1112211245
"role": "style",
1112311246
"valType": "number"
1112411247
},
11248+
"facenormalsepsilon": {
11249+
"description": "Epsilon for face normals calculation avoids math issues arising from degenerate geometry.",
11250+
"dflt": 1e-06,
11251+
"max": 1,
11252+
"min": 0,
11253+
"role": "style",
11254+
"valType": "number"
11255+
},
1112511256
"fresnel": {
11257+
"description": "Represents the reflectance as a dependency of the viewing angle; e.g. paper is reflective when viewing it from the edge of the paper (almost 90 degrees), causing shine.",
1112611258
"dflt": 0.2,
1112711259
"max": 5,
1112811260
"min": 0,
@@ -11131,18 +11263,55 @@
1113111263
},
1113211264
"role": "object",
1113311265
"roughness": {
11266+
"description": "Alters specular reflection; the rougher the surface, the wider and less contrasty the shine.",
1113411267
"dflt": 0.5,
1113511268
"max": 1,
1113611269
"min": 0,
1113711270
"role": "style",
1113811271
"valType": "number"
1113911272
},
1114011273
"specular": {
11274+
"description": "Represents the level that incident rays are reflected in a single direction, causing shine.",
1114111275
"dflt": 0.05,
1114211276
"max": 2,
1114311277
"min": 0,
1114411278
"role": "style",
1114511279
"valType": "number"
11280+
},
11281+
"vertexnormalsepsilon": {
11282+
"description": "Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry.",
11283+
"dflt": 1e-12,
11284+
"max": 1,
11285+
"min": 0,
11286+
"role": "style",
11287+
"valType": "number"
11288+
}
11289+
},
11290+
"lightposition": {
11291+
"role": "object",
11292+
"x": {
11293+
"description": "Numeric vector, representing the X coordinate for each vertex.",
11294+
"dflt": 100000,
11295+
"max": 100000,
11296+
"min": -100000,
11297+
"role": "style",
11298+
"valType": "number"
11299+
},
11300+
"y": {
11301+
"description": "Numeric vector, representing the Y coordinate for each vertex.",
11302+
"dflt": 100000,
11303+
"max": 100000,
11304+
"min": -100000,
11305+
"role": "style",
11306+
"valType": "number"
11307+
},
11308+
"z": {
11309+
"description": "Numeric vector, representing the Z coordinate for each vertex.",
11310+
"dflt": 0,
11311+
"max": 100000,
11312+
"min": -100000,
11313+
"role": "style",
11314+
"valType": "number"
1114611315
}
1114711316
},
1114811317
"name": {
@@ -15156,6 +15325,12 @@
1515615325
},
1515715326
"scattergl": {
1515815327
"attributes": {
15328+
"connectgaps": {
15329+
"description": "Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected.",
15330+
"dflt": false,
15331+
"role": "info",
15332+
"valType": "boolean"
15333+
},
1515915334
"dx": {
1516015335
"description": "Sets the x coordinate step. See `x0` for more info.",
1516115336
"dflt": 1,
@@ -17810,20 +17985,23 @@
1781017985
},
1781117986
"lighting": {
1781217987
"ambient": {
17988+
"description": "Ambient light increases overall color visibility but can wash out the image.",
1781317989
"dflt": 0.8,
1781417990
"max": 1,
1781517991
"min": 0,
1781617992
"role": "style",
1781717993
"valType": "number"
1781817994
},
1781917995
"diffuse": {
17996+
"description": "Represents the extent that incident rays are reflected in a range of angles.",
1782017997
"dflt": 0.8,
1782117998
"max": 1,
1782217999
"min": 0,
1782318000
"role": "style",
1782418001
"valType": "number"
1782518002
},
1782618003
"fresnel": {
18004+
"description": "Represents the reflectance as a dependency of the viewing angle; e.g. paper is reflective when viewing it from the edge of the paper (almost 90 degrees), causing shine.",
1782718005
"dflt": 0.2,
1782818006
"max": 5,
1782918007
"min": 0,
@@ -17832,20 +18010,49 @@
1783218010
},
1783318011
"role": "object",
1783418012
"roughness": {
18013+
"description": "Alters specular reflection; the rougher the surface, the wider and less contrasty the shine.",
1783518014
"dflt": 0.5,
1783618015
"max": 1,
1783718016
"min": 0,
1783818017
"role": "style",
1783918018
"valType": "number"
1784018019
},
1784118020
"specular": {
18021+
"description": "Represents the level that incident rays are reflected in a single direction, causing shine.",
1784218022
"dflt": 0.05,
1784318023
"max": 2,
1784418024
"min": 0,
1784518025
"role": "style",
1784618026
"valType": "number"
1784718027
}
1784818028
},
18029+
"lightposition": {
18030+
"role": "object",
18031+
"x": {
18032+
"description": "Numeric vector, representing the X coordinate for each vertex.",
18033+
"dflt": 10,
18034+
"max": 100000,
18035+
"min": -100000,
18036+
"role": "style",
18037+
"valType": "number"
18038+
},
18039+
"y": {
18040+
"description": "Numeric vector, representing the Y coordinate for each vertex.",
18041+
"dflt": 100000,
18042+
"max": 100000,
18043+
"min": -100000,
18044+
"role": "style",
18045+
"valType": "number"
18046+
},
18047+
"z": {
18048+
"description": "Numeric vector, representing the Z coordinate for each vertex.",
18049+
"dflt": 0,
18050+
"max": 100000,
18051+
"min": -100000,
18052+
"role": "style",
18053+
"valType": "number"
18054+
}
18055+
},
1784918056
"name": {
1785018057
"description": "Sets the trace name. The trace name appear as the legend item and on hover.",
1785118058
"role": "info",

0 commit comments

Comments
 (0)