Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ajstarks/dchart
/ functions
Functions
51 in github.com/ajstarks/dchart
⨍
Functions
51
◇
Types & classes
5
↓ 13 callers
Function
dformat
dformat returns the string representation of a float64 according to the datafmt flag value. if there is no fractional portion of the float64, override
dchart.go:407
↓ 13 callers
Function
vmap
vmap maps one range into another
dchart.go:148
↓ 11 callers
Function
xmlesc
xmlesc escapes XML
dchart.go:143
↓ 5 callers
Function
Getdata
Getdata reads input from a Reader, either tab-separated or CSV
dchart.go:176
↓ 4 callers
Method
Write
Write performs chart I/O
dchart.go:1641
↓ 4 callers
Function
mean
mean computes the arithmetic mean of a set of data
dchart.go:1566
↓ 3 callers
Method
GenerateChart
GenerateChart makes charts according to the orientation: horizontal bar or line, bar, dot, or donut volume charts
dchart.go:1624
↓ 3 callers
Function
arclabel
arclabel labels the data items
dchart.go:995
↓ 3 callers
Function
cpolar
cpolar converts polar to Cartesion coordinates, compensating for the canvas aspect ratio
dchart.go:621
↓ 3 callers
Function
datasum
datasum computes the sum of the chart data
dchart.go:428
↓ 3 callers
Function
parsecondition
parsecondition parses the expression low,high,color. For example "0,10,red" means color the data red if the value is between 0 and 10.
dchart.go:452
↓ 2 callers
Function
commaf
commaf returns a string from a floating point value using commas to separate thousands. (from https://github.com/dustin/go-humanize/blob/master/comma.
dchart.go:374
↓ 2 callers
Function
datasplit
data split divides a data set into two sections
dchart.go:904
↓ 2 callers
Function
legend
legend makes a balanced left and right hand legend
dchart.go:921
↓ 2 callers
Function
legendlabel
legendlabel lays out the legend labels for fan and bowtie charts
dchart.go:966
↓ 2 callers
Function
pct
pct computs the percentage of a range of values
dchart.go:437
↓ 2 callers
Function
showtext
showtext places text beginning center, or end
dchart.go:981
↓ 2 callers
Function
stdcolor
stdcolor uses either the standard color (cycling through a list) or specified color and opacity
dchart.go:848
↓ 2 callers
Function
wedge
wedge makes data wedges
dchart.go:1003
↓ 1 callers
Function
CSVdata
CSVdata reads CSV structured name,value pairs, with optional comments, returning a slice with the data, allong with min, max and title
dchart.go:190
↓ 1 callers
Method
Hchart
Hchart makes horizontal bar charts using input from a Reader
dchart.go:1215
↓ 1 callers
Function
NewChart
NewChart initializes the settings required to make a chart chartType may be one of: "line", "slope", "bar", "wbar", "hbar", "volume, "scatter", "donut
dchart.go:1656
↓ 1 callers
Function
Parsebounds
parsebounds returns the boundary (left, right, top, bottom) of a comma-separated list
dchart.go:470
↓ 1 callers
Method
Pchart
Pchart draws proportional data, either a pmap, pgrid, radial or donut using input from a Reader
dchart.go:1098
↓ 1 callers
Method
Slopechart
Slopechart draws a slope chart
dchart.go:699
↓ 1 callers
Function
TSVdata
TSVdata reads tab-delimited name,value pairs, with optional comments, returning a slice with the data, allong with min, max and title
dchart.go:251
↓ 1 callers
Method
Vchart
Vchart makes charts using input from a Reader the types of charts are bar (column), dot, line, and volume
dchart.go:1319
↓ 1 callers
Method
Wbchart
Wbchart makes a word bar chart
dchart.go:1130
↓ 1 callers
Method
bowtie
bowtie makes a bowtie chart
dchart.go:1016
↓ 1 callers
Function
cmdflags
()
cmd/dchart/dchart.go:99
↓ 1 callers
Function
cyrange
cyrange computes "optimal" min, max, step for axis labels rounding the max to the appropriate number, given the number of labels
dchart.go:335
↓ 1 callers
Method
donut
donut makes a donut chart
dchart.go:862
↓ 1 callers
Function
dotgrid
dotgrid makes a grid 10x10 grid of dots colored by value
dchart.go:568
↓ 1 callers
Function
dottedhline
dottedhline makes a dotted horizontal line, using circles, with specified step and separation
dchart.go:316
↓ 1 callers
Function
dottedvline
dottedvline makes dotted vertical line, using circles, with specified step
dchart.go:301
↓ 1 callers
Method
fan
fan makes a fan chart
dchart.go:1051
↓ 1 callers
Function
fpolar
fpolar to Cartesian coordinates, corrected for aspect ratio
dchart.go:914
↓ 1 callers
Function
getheader
getheader returns the indicies of the comma-separated list of fields by default or on error, return 0, 1 For example given this header: First,Second,T
dchart.go:157
↓ 1 callers
Method
lego
lego makes lego charts (a variation of pgrid)
dchart.go:583
↓ 1 callers
Method
pgrid
pgrid makes a proportional grid with the specified rows and columns
dchart.go:499
↓ 1 callers
Method
pmap
pmap draws a porpotional map
dchart.go:799
↓ 1 callers
Function
polar
polar converts polar to Cartesian coordinates
dchart.go:614
↓ 1 callers
Method
radial
radial draws a radial plot
dchart.go:641
↓ 1 callers
Method
rline
rline makes a regression line
dchart.go:1599
↓ 1 callers
Function
slope
slope computes the slope (m, b) of a set of x, y points
dchart.go:1576
↓ 1 callers
Function
spokes
spokes draws the points and lines like spokes on a wheel
dchart.go:629
↓ 1 callers
Method
yaxis
yaxis constructs y axis labels
dchart.go:344
↓ 1 callers
Function
yrange
yrange parses the min, max, step for axis labels
dchart.go:324
Function
NewFullChart
NewFullChart initializes the settings required to make a chart that includes the enclosing deck markup
dchart.go:1647
Function
main
()
cmd/dchart/dchart.go:178
Function
printusage
()
cmd/dchart/dchart.go:95