1import _plotly_utils.basevalidators 2 3 4class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): 5 def __init__(self, plotly_name="marker", parent_name="bar", **kwargs): 6 super(MarkerValidator, self).__init__( 7 plotly_name=plotly_name, 8 parent_name=parent_name, 9 data_class_str=kwargs.pop("data_class_str", "Marker"), 10 data_docs=kwargs.pop( 11 "data_docs", 12 """ 13 autocolorscale 14 Determines whether the colorscale is a default 15 palette (`autocolorscale: true`) or the palette 16 determined by `marker.colorscale`. Has an 17 effect only if in `marker.color`is set to a 18 numerical array. In case `colorscale` is 19 unspecified or `autocolorscale` is true, the 20 default palette will be chosen according to 21 whether numbers in the `color` array are all 22 positive, all negative or mixed. 23 cauto 24 Determines whether or not the color domain is 25 computed with respect to the input data (here 26 in `marker.color`) or the bounds set in 27 `marker.cmin` and `marker.cmax` Has an effect 28 only if in `marker.color`is set to a numerical 29 array. Defaults to `false` when `marker.cmin` 30 and `marker.cmax` are set by the user. 31 cmax 32 Sets the upper bound of the color domain. Has 33 an effect only if in `marker.color`is set to a 34 numerical array. Value should have the same 35 units as in `marker.color` and if set, 36 `marker.cmin` must be set as well. 37 cmid 38 Sets the mid-point of the color domain by 39 scaling `marker.cmin` and/or `marker.cmax` to 40 be equidistant to this point. Has an effect 41 only if in `marker.color`is set to a numerical 42 array. Value should have the same units as in 43 `marker.color`. Has no effect when 44 `marker.cauto` is `false`. 45 cmin 46 Sets the lower bound of the color domain. Has 47 an effect only if in `marker.color`is set to a 48 numerical array. Value should have the same 49 units as in `marker.color` and if set, 50 `marker.cmax` must be set as well. 51 color 52 Sets themarkercolor. It accepts either a 53 specific color or an array of numbers that are 54 mapped to the colorscale relative to the max 55 and min values of the array or relative to 56 `marker.cmin` and `marker.cmax` if set. 57 coloraxis 58 Sets a reference to a shared color axis. 59 References to these shared color axes are 60 "coloraxis", "coloraxis2", "coloraxis3", etc. 61 Settings for these shared color axes are set in 62 the layout, under `layout.coloraxis`, 63 `layout.coloraxis2`, etc. Note that multiple 64 color scales can be linked to the same color 65 axis. 66 colorbar 67 :class:`plotly.graph_objects.bar.marker.ColorBa 68 r` instance or dict with compatible properties 69 colorscale 70 Sets the colorscale. Has an effect only if in 71 `marker.color`is set to a numerical array. The 72 colorscale must be an array containing arrays 73 mapping a normalized value to an rgb, rgba, 74 hex, hsl, hsv, or named color string. At 75 minimum, a mapping for the lowest (0) and 76 highest (1) values are required. For example, 77 `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. 78 To control the bounds of the colorscale in 79 color space, use`marker.cmin` and 80 `marker.cmax`. Alternatively, `colorscale` may 81 be a palette name string of the following list: 82 Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Bl 83 ues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,E 84 arth,Electric,Viridis,Cividis. 85 colorsrc 86 Sets the source reference on Chart Studio Cloud 87 for color . 88 line 89 :class:`plotly.graph_objects.bar.marker.Line` 90 instance or dict with compatible properties 91 opacity 92 Sets the opacity of the bars. 93 opacitysrc 94 Sets the source reference on Chart Studio Cloud 95 for opacity . 96 reversescale 97 Reverses the color mapping if true. Has an 98 effect only if in `marker.color`is set to a 99 numerical array. If true, `marker.cmin` will 100 correspond to the last color in the array and 101 `marker.cmax` will correspond to the first 102 color. 103 showscale 104 Determines whether or not a colorbar is 105 displayed for this trace. Has an effect only if 106 in `marker.color`is set to a numerical array. 107""", 108 ), 109 **kwargs 110 ) 111