VariableFont

public struct VariableFont : Encodable

Sets the font used in hover labels.

Note

Used by Scatter<XData, YData>.HoverLabel.font, Scatter<XData, YData>.textFont, Bar<XData, YData>.HoverLabel.font, Bar<XData, YData>.textFont, Bar<XData, YData>.insideTextFont, Box<YData, XData, QData>.HoverLabel.font, Heatmap<ZData, XYData>.HoverLabel.font, Histogram<XData, YData>.HoverLabel.font, Histogram2D<XData, YData, ZData>.HoverLabel.font, Histogram2DContour<XData, YData, ZData>.HoverLabel.font, Contour<ZData, XData, YData>.HoverLabel.font, ScatterTernary<AData, BData, CData>.HoverLabel.font, ScatterTernary<AData, BData, CData>.textFont, Violin<YData, XData>.HoverLabel.font, Funnel<XData, YData>.HoverLabel.font, Funnel<XData, YData>.textFont, Funnel<XData, YData>.insideTextFont, Waterfall<XData, YData>.HoverLabel.font, Waterfall<XData, YData>.textFont, Waterfall<XData, YData>.insideTextFont, Image<ZData>.HoverLabel.font, Pie<LabelsData, ValuesData>.HoverLabel.font, Pie<LabelsData, ValuesData>.textFont, Pie<LabelsData, ValuesData>.insideTextFont, Pie<LabelsData, ValuesData>.Title.font, Sunburst<ValuesData>.HoverLabel.font, Sunburst<ValuesData>.textFont, Sunburst<ValuesData>.insideTextFont, Treemap<ValuesData>.HoverLabel.font, Treemap<ValuesData>.PathBar.textFont, Treemap<ValuesData>.textFont, Treemap<ValuesData>.insideTextFont, FunnelArea<LabelsData, ValuesData>.HoverLabel.font, FunnelArea<LabelsData, ValuesData>.textFont, FunnelArea<LabelsData, ValuesData>.insideTextFont, FunnelArea<LabelsData, ValuesData>.Title.font, Scatter3D<XData, YData, ZData>.HoverLabel.font, Scatter3D<XData, YData, ZData>.textFont, Surface<ZSurfaceData, XYData>.HoverLabel.font, Isosurface<XData, YData, ZData, ValueData>.HoverLabel.font, Volume<XYZData, ValueData>.HoverLabel.font, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.HoverLabel.font, Cone<XYZData, UVWData>.HoverLabel.font, StreamTube<XYZData, UVWData>.HoverLabel.font, ScatterGeo<CoordinateData, LocationsData>.HoverLabel.font, ScatterGeo<CoordinateData, LocationsData>.textFont, Choropleth<LocationsData, ZData>.HoverLabel.font, ScatterGL<XData, YData>.HoverLabel.font, ScatterGL<XData, YData>.textFont, ScatterPlotMatrix.HoverLabel.font, PointCloud<XYData>.HoverLabel.font, HeatmapGL<ZData, XYData>.HoverLabel.font, ScatterMapbox<CoordinateData>.HoverLabel.font, ChoroplethMapbox<LocationsData, ZData>.HoverLabel.font, DensityMapbox<CoordinateData, ZData>.HoverLabel.font, Sankey.HoverLabel.font, Sankey.Node.HoverLabel.font, Sankey.Link.HoverLabel.font, Table<CellData>.HoverLabel.font, Table<CellData>.Header.font, Table<CellData>.Cells<CellData>.font, ScatterCarpet<AData, BData>.HoverLabel.font, ScatterCarpet<AData, BData>.textFont, OHLC<XData, OHLCData>.HoverLabel.font, Candlestick<XData, OHLCData>.HoverLabel.font, ScatterPolar<RData, ThetaData>.HoverLabel.font, ScatterPolar<RData, ThetaData>.textFont, ScatterPolarGL<RData, ThetaData>.HoverLabel.font, ScatterPolarGL<RData, ThetaData>.textFont, BarPolar<RData, ThetaData>.HoverLabel.font.
  • HTML font family - the typeface that will be applied by the web browser.

    The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren’t available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include Arial, Balto, Courier New, Droid Sans,, Droid Serif, Droid Sans Mono, Gravitas One, Old Standard TT, Open Sans, Overpass, PT Sans Narrow, Raleway, Times New Roman.

    Declaration

    Swift

    public var family: Data<String>?
  • Undocumented

    Declaration

    Swift

    public var size: Data<Double>?
  • Undocumented

    Declaration

    Swift

    public var coloring: Coloring?
  • Creates VariableFont object with specified properties.

    Declaration

    Swift

    public init(family: Data<String>? = nil, size: Data<Double>? = nil, coloring: Coloring? = nil)

    Parameters

    family

    HTML font family - the typeface that will be applied by the web browser.

    size

    coloring