MCPcopy Index your code
hub / github.com/g3n/engine / SetFontSizeX

Method SetFontSizeX

gui/chart.go:142–148  ·  view source on GitHub ↗

SetFontSizeX sets the font size for the x scale labels

(size float64)

Source from the content-addressed store, hash-verified

140
141// SetFontSizeX sets the font size for the x scale labels
142func (ch *Chart) SetFontSizeX(size float64) {
143
144 ch.fontSizeX = size
145 for i := 0; i < len(ch.labelsX); i++ {
146 ch.labelsX[i].SetFontSize(ch.fontSizeX)
147 }
148}
149
150// SetFontSizeY sets the font size for the y scale labels
151func (ch *Chart) SetFontSizeY(size float64) {

Callers 1

buildChartFunction · 0.95

Calls 1

SetFontSizeMethod · 0.45

Tested by

no test coverage detected