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

Method SetFontSizeY

gui/chart.go:151–157  ·  view source on GitHub ↗

SetFontSizeY sets the font size for the y scale labels

(size float64)

Source from the content-addressed store, hash-verified

149
150// SetFontSizeY sets the font size for the y scale labels
151func (ch *Chart) SetFontSizeY(size float64) {
152
153 ch.fontSizeY = size
154 for i := 0; i < len(ch.labelsY); i++ {
155 ch.labelsY[i].SetFontSize(ch.fontSizeY)
156 }
157}
158
159// SetScaleX sets the X scale number of lines, lines color and label font size
160func (ch *Chart) SetScaleX(lines int, color *math32.Color) {

Callers 1

buildChartFunction · 0.95

Calls 1

SetFontSizeMethod · 0.45

Tested by

no test coverage detected