API Reference
VisualTypography
The shared logical typography scale; the default follows the chart look specification.
Inheritance
- Object
- VisualTypography
Usage
Explore 6 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
- Property VisualTheme.Typography
- Property VisualThemeBuilder.Typography
- Method VisualTypography.WithFamily
Accepted by parameters 3
- Constructor VisualTheme.VisualTheme
- Method VisualTheme.FromPaletteJson
- Method VisualTheme.WithTypography
Constructors
public VisualTypography(String family, Double titleSize, Double subtitleSize, Double axisSize, Double legendSize, Double dataLabelSize, Double scalarValueSize, Double centerValueSize, Double? axisTitleSize, String monospaceFamily) #Creates typography with the existing chart-role sizes and default tile sizes.
Parameters
- family System.String
- titleSize System.Double
- subtitleSize System.Double
- axisSize System.Double
- legendSize System.Double
- dataLabelSize System.Double
- scalarValueSize System.Double
- centerValueSize System.Double
- axisTitleSize System.Double?
- monospaceFamily System.String
public VisualTypography(String family = "Calibri, Carlito, Segoe UI, system-ui, sans-serif", Double titleSize = 17, Double subtitleSize = 13.5, Double axisSize = 12, Double legendSize = 13, Double dataLabelSize = 12, Double scalarValueSize = 34, Double centerValueSize = 20, Double? axisTitleSize = null, String monospaceFamily = "Cascadia Mono, Consolas, monospace", Double tileLabelSize = 14, Double tileValueSize = 22, Double tileDetailSize = 13) #Creates a validated immutable font scale including VisualCanvas tile sizes.
Parameters
- family System.String = "Calibri, Carlito, Segoe UI, system-ui, sans-serif"
- titleSize System.Double = 17
- subtitleSize System.Double = 13.5
- axisSize System.Double = 12
- legendSize System.Double = 13
- dataLabelSize System.Double = 12
- scalarValueSize System.Double = 34
- centerValueSize System.Double = 20
- axisTitleSize System.Double? = null
- monospaceFamily System.String = "Cascadia Mono, Consolas, monospace"
- tileLabelSize System.Double = 14
- tileValueSize System.Double = 22
- tileDetailSize System.Double = 13
Methods
public FontSpec ToFontSpec(Boolean monospace = false) #FontSpecCreates a font request for the normal or monospace family.
Parameters
- monospace System.Boolean = false
public VisualTypography WithFamily(String family) #VisualTypographyCreates an independent scale with a different proportional family.
Parameters
- family System.String
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public Double ScalarValueSize { get; } #Gets the primary value size for scalar charts.
public Double CenterValueSize { get; } #Gets the value size inside a radial chart.
public Double TileLabelSize { get; } #Gets the default VisualCanvas information-tile label size.
public Double TileValueSize { get; } #Gets the default VisualCanvas information-tile value size.
public Double TileDetailSize { get; } #Gets the default VisualCanvas information-tile detail size.