MCPcopy Index your code
hub / github.com/buger/goterm / writeText

Method writeText

plot.go:146–152  ·  view source on GitHub ↗
(text string, x, y int)

Source from the content-addressed store, hash-verified

144}
145
146func (c *LineChart) writeText(text string, x, y int) {
147 coord := y*c.Width + x
148
149 for idx, char := range strings.Split(text, "") {
150 c.Buf[coord+idx] = char
151 }
152}
153
154func (c *LineChart) Draw(data *DataTable) (out string) {
155 var scaleY, scaleX float64

Callers 1

DrawAxesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected