Skip to content
ChartForgeX

API Reference

Class

VisualTypography

Namespace ChartForgeX.Themes
Assembly ChartForgeX
Modifiers sealed

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.

Accepted by parameters 3

Constructors

VisualTypography 2 overloads
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 requiredposition: 0
titleSize System.Double requiredposition: 1
subtitleSize System.Double requiredposition: 2
axisSize System.Double requiredposition: 3
legendSize System.Double requiredposition: 4
dataLabelSize System.Double requiredposition: 5
scalarValueSize System.Double requiredposition: 6
centerValueSize System.Double requiredposition: 7
axisTitleSize System.Double? requiredposition: 8
monospaceFamily System.String requiredposition: 9
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" optionalposition: 0
titleSize System.Double = 17 optionalposition: 1
subtitleSize System.Double = 13.5 optionalposition: 2
axisSize System.Double = 12 optionalposition: 3
legendSize System.Double = 13 optionalposition: 4
dataLabelSize System.Double = 12 optionalposition: 5
scalarValueSize System.Double = 34 optionalposition: 6
centerValueSize System.Double = 20 optionalposition: 7
axisTitleSize System.Double? = null optionalposition: 8
monospaceFamily System.String = "Cascadia Mono, Consolas, monospace" optionalposition: 9
tileLabelSize System.Double = 14 optionalposition: 10
tileValueSize System.Double = 22 optionalposition: 11
tileDetailSize System.Double = 13 optionalposition: 12

Methods

public FontSpec ToFontSpec(Boolean monospace = false) #
Returns: FontSpec

Creates a font request for the normal or monospace family.

Parameters

monospace System.Boolean = false optionalposition: 0
public VisualTypography WithFamily(String family) #
Returns: VisualTypography

Creates an independent scale with a different proportional family.

Parameters

family System.String requiredposition: 0

Properties

public String Family { get; } #

Gets the fallback family stack.

public String MonospaceFamily { get; } #

Gets the monospace fallback family stack.

public Double AxisTitleSize { get; } #

Gets the independent axis title size.

public Double TitleSize { get; } #

Gets the title size.

public Double SubtitleSize { get; } #

Gets the subtitle size.

public Double AxisSize { get; } #

Gets the axis size.

public Double LegendSize { get; } #

Gets the legend size.

public Double DataLabelSize { get; } #

Gets the data-label size.

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.