MCPcopy Create free account

hub / github.com/ajstarks/dchart / functions

Functions51 in github.com/ajstarks/dchart

↓ 13 callersFunctiondformat
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 callersFunctionvmap
vmap maps one range into another
dchart.go:148
↓ 11 callersFunctionxmlesc
xmlesc escapes XML
dchart.go:143
↓ 5 callersFunctionGetdata
Getdata reads input from a Reader, either tab-separated or CSV
dchart.go:176
↓ 4 callersMethodWrite
Write performs chart I/O
dchart.go:1641
↓ 4 callersFunctionmean
mean computes the arithmetic mean of a set of data
dchart.go:1566
↓ 3 callersMethodGenerateChart
GenerateChart makes charts according to the orientation: horizontal bar or line, bar, dot, or donut volume charts
dchart.go:1624
↓ 3 callersFunctionarclabel
arclabel labels the data items
dchart.go:995
↓ 3 callersFunctioncpolar
cpolar converts polar to Cartesion coordinates, compensating for the canvas aspect ratio
dchart.go:621
↓ 3 callersFunctiondatasum
datasum computes the sum of the chart data
dchart.go:428
↓ 3 callersFunctionparsecondition
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 callersFunctioncommaf
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 callersFunctiondatasplit
data split divides a data set into two sections
dchart.go:904
↓ 2 callersFunctionlegend
legend makes a balanced left and right hand legend
dchart.go:921
↓ 2 callersFunctionlegendlabel
legendlabel lays out the legend labels for fan and bowtie charts
dchart.go:966
↓ 2 callersFunctionpct
pct computs the percentage of a range of values
dchart.go:437
↓ 2 callersFunctionshowtext
showtext places text beginning center, or end
dchart.go:981
↓ 2 callersFunctionstdcolor
stdcolor uses either the standard color (cycling through a list) or specified color and opacity
dchart.go:848
↓ 2 callersFunctionwedge
wedge makes data wedges
dchart.go:1003
↓ 1 callersFunctionCSVdata
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 callersMethodHchart
Hchart makes horizontal bar charts using input from a Reader
dchart.go:1215
↓ 1 callersFunctionNewChart
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 callersFunctionParsebounds
parsebounds returns the boundary (left, right, top, bottom) of a comma-separated list
dchart.go:470
↓ 1 callersMethodPchart
Pchart draws proportional data, either a pmap, pgrid, radial or donut using input from a Reader
dchart.go:1098
↓ 1 callersMethodSlopechart
Slopechart draws a slope chart
dchart.go:699
↓ 1 callersFunctionTSVdata
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 callersMethodVchart
Vchart makes charts using input from a Reader the types of charts are bar (column), dot, line, and volume
dchart.go:1319
↓ 1 callersMethodWbchart
Wbchart makes a word bar chart
dchart.go:1130
↓ 1 callersMethodbowtie
bowtie makes a bowtie chart
dchart.go:1016
↓ 1 callersFunctioncmdflags
()
cmd/dchart/dchart.go:99
↓ 1 callersFunctioncyrange
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 callersMethoddonut
donut makes a donut chart
dchart.go:862
↓ 1 callersFunctiondotgrid
dotgrid makes a grid 10x10 grid of dots colored by value
dchart.go:568
↓ 1 callersFunctiondottedhline
dottedhline makes a dotted horizontal line, using circles, with specified step and separation
dchart.go:316
↓ 1 callersFunctiondottedvline
dottedvline makes dotted vertical line, using circles, with specified step
dchart.go:301
↓ 1 callersMethodfan
fan makes a fan chart
dchart.go:1051
↓ 1 callersFunctionfpolar
fpolar to Cartesian coordinates, corrected for aspect ratio
dchart.go:914
↓ 1 callersFunctiongetheader
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 callersMethodlego
lego makes lego charts (a variation of pgrid)
dchart.go:583
↓ 1 callersMethodpgrid
pgrid makes a proportional grid with the specified rows and columns
dchart.go:499
↓ 1 callersMethodpmap
pmap draws a porpotional map
dchart.go:799
↓ 1 callersFunctionpolar
polar converts polar to Cartesian coordinates
dchart.go:614
↓ 1 callersMethodradial
radial draws a radial plot
dchart.go:641
↓ 1 callersMethodrline
rline makes a regression line
dchart.go:1599
↓ 1 callersFunctionslope
slope computes the slope (m, b) of a set of x, y points
dchart.go:1576
↓ 1 callersFunctionspokes
spokes draws the points and lines like spokes on a wheel
dchart.go:629
↓ 1 callersMethodyaxis
yaxis constructs y axis labels
dchart.go:344
↓ 1 callersFunctionyrange
yrange parses the min, max, step for axis labels
dchart.go:324
FunctionNewFullChart
NewFullChart initializes the settings required to make a chart that includes the enclosing deck markup
dchart.go:1647
Functionmain
()
cmd/dchart/dchart.go:178
Functionprintusage
()
cmd/dchart/dchart.go:95