Font Configuration
Reference External Link
There are special global settings that can change all the fonts on the chart. These options are in
Chart.defaults.font. The global font settings only apply when more specific options are not included in the config.
.Font(f => f.Family("Helvetica").Size(10))Family
Default font family for all text, follows CSS font-family options.
.Family("Helvetica")Size
Default font size (in px) for text. Does not apply to radialLinear scale point labels. Default 12
.Size(15)Style
Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
.Style("normal")Weight
Set a weight. Default font weight boldness. External Link
.Weight(FontWeight.Bold)Or, set a number.
.Weight(100)LineHeight
Height of an individual line of text. External Link
.LineHeight("3em")Or, use double. Default 1.2
.LineHeight(1.3)