LegendTitle
public struct LegendTitle : Encodable
Note
Used byLayout.Legend.title, ColorBar.title, GradientMarker.ColorBar.title,
Marker.ColorBar.title, Heatmap<ZData, XYData>.ColorBar.title, Histogram<XData,
YData>.Marker.ColorBar.title, Histogram2D<XData, YData, ZData>.ColorBar.title,
Histogram2DContour<XData, YData, ZData>.ColorBar.title, Contour<ZData, XData,
YData>.ColorBar.title, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.title,
Funnel<XData, YData>.Marker.ColorBar.title, Sunburst<ValuesData>.Marker.ColorBar.title,
Treemap<ValuesData>.Marker.ColorBar.title, Scatter3D<XData, YData,
ZData>.DashedMarkerLine.ColorBar.title, SymbolicMarker.ColorBar.title, Surface<ZSurfaceData,
XYData>.ColorBar.title, Isosurface<XData, YData, ZData, ValueData>.ColorBar.title,
Volume<XYZData, ValueData>.ColorBar.title, Mesh3D<XData, YData, ZData, IntensityData,
VertexcolorData, FacecolorData>.ColorBar.title, Cone<XYZData, UVWData>.ColorBar.title,
StreamTube<XYZData, UVWData>.ColorBar.title, ScatterGeo<CoordinateData,
LocationsData>.GradientMarker.ColorBar.title, Choropleth<LocationsData,
ZData>.ColorBar.title, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.title,
ScatterPlotMatrix.SymbolicMarker.ColorBar.title, HeatmapGL<ZData, XYData>.ColorBar.title,
ParallelCoordinates.MarkerLine.ColorBar.title,
ParallelCategories.ShapedMarkerLine.ColorBar.title,
ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.title, ChoroplethMapbox<LocationsData,
ZData>.ColorBar.title, DensityMapbox<CoordinateData, ZData>.ColorBar.title,
ScatterCarpet<AData, BData>.GradientMarker.ColorBar.title, ContourCarpet<ZData, AData,
BData>.ColorBar.title, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.title,
ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.title, BarPolar<RData,
ThetaData>.Marker.ColorBar.title.
-
Sets the title of the legend.
Declaration
Swift
public var text: String? -
Sets this legend’s title font.
Declaration
Swift
public var font: Font? -
Determines the location of legend’s title with respect to the legend items.
Defaulted to top with
See moreorientationis h. Defaulted to left withorientationis v. The top left options could be used to expand legend area in both x and y sides.Declaration
Swift
public enum Side : String, Encodable -
Determines the location of legend’s title with respect to the legend items.
Defaulted to top with
orientationis h. Defaulted to left withorientationis v. The top left options could be used to expand legend area in both x and y sides.Declaration
Swift
public var side: Side? -
Creates
LegendTitleobject with specified properties.Parameters
textSets the title of the legend.
fontSets this legend’s title font.
sideDetermines the location of legend’s title with respect to the legend items.
View on GitHub
Install in Dash
LegendTitle Structure Reference