crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Files
🤬
Sign In
9a82474a
ROOT
/
widgets
/
barchart
/
barchart.go
Search
History
367 lines
|
ISO-8859-1
|
10 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
BarChart
values
:
[]int
max
:
int
lastWidth
:
int
mu
:
sync.Mutex
opts
:
*options
New
(opts ...Option)
:
(*BarChart, error)
textLoc
insideBar
:
textLoc
underBar
validateValues
(values []int, max int)
:
error
valueCapacity
(barWidth, gapWidth, cvsWidth float64)
:
int
*BarChart
Draw
(cvs *canvas.Canvas, meta *widgetapi.Meta)
:
error
drawText
(cvs *canvas.Canvas, i int, text string, color cell.Color, loc textLoc)
:
error
barWidth
(cvs *canvas.Canvas)
:
int
barHeight
(cvs *canvas.Canvas, i, value int)
:
int
barRect
(cvs *canvas.Canvas, i, value int)
:
(image.Rectangle, error)
barColor
(i int)
:
cell.Color
valColor
(i int)
:
cell.Color
label
(i int)
:
(string, cell.Color)
ValueCapacity
()
:
int
Values
(values []int, max int, opts ...Option)
:
error
Keyboard
(k *terminalapi.Keyboard)
:
error
Mouse
(m *terminalapi.Mouse)
:
error
Options
()
:
widgetapi.Options
minBarWidth
()
:
int
minSize
()
:
image.Point
All occurrences
Please wait...
Page is in error, reload to recover