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

Function NewLineChart

plot.go:72–82  ·  view source on GitHub ↗
(width, height int)

Source from the content-addressed store, hash-verified

70}
71
72func NewLineChart(width, height int) *LineChart {
73 chart := new(LineChart)
74 chart.Width = width
75 chart.Height = height
76 chart.Buf = genBuf(width * height)
77
78 // axis lines + axies text
79 chart.paddingY = 2
80
81 return chart
82}
83
84func (c *LineChart) DrawAxes(maxX, minX, maxY, minY float64, index int) {
85 side := AXIS_LEFT

Callers 3

TestLineChartIndependentFunction · 0.85
TestLineChartRelativeFunction · 0.85
TestLineChartFunction · 0.85

Calls 1

genBufFunction · 0.85

Tested by 3

TestLineChartIndependentFunction · 0.68
TestLineChartRelativeFunction · 0.68
TestLineChartFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…