MCPcopy Index your code

hub / github.com/erkkah/margaid / functions

Functions145 in github.com/erkkah/margaid

↓ 42 callersMethodAdd
Add appends one or more values, optionally peforming aggregation. If the series is capped, capping will be applied after aggregation.
series.go:118
↓ 33 callersFunctionMakeValue
MakeValue creates a Value from x and y values.
series.go:110
↓ 22 callersFunctionSecondsFromTime
SecondsFromTime converts from time.Time to seconds since the epoch
series.go:308
↓ 21 callersMethodEqual
Equal verifies that the two arguments are equal
xt/testing.go:41
↓ 19 callersFunctionX
X wraps a *testing.T and extends its functionality
xt/testing.go:12
↓ 17 callersFunctionNewSeries
NewSeries - series constructor
series.go:30
↓ 13 callersMethodOpen
Open adds a new opening element with optional attributes.
brackets/brackets.go:133
↓ 13 callersMethodString
()
brackets/brackets.go:72
↓ 13 callersMethodTransform
Transform sets the current list of transforms that will be used by the next set of drawing operations. Specifying no transforms resets the transformat
svg/svg.go:323
↓ 13 callersFunctionftos
Utilities
svg/svg.go:443
↓ 13 callersMethodsetAttribute
(attr string, value string)
svg/svg.go:216
↓ 11 callersMethodNext
Next steps to the next value. A newly created iterator has no current value.
series.go:85
↓ 9 callersMethodAssert
Assert verifies that a condition is true
xt/testing.go:17
↓ 9 callersFunctionNew
New - Margaid constructor
margaid.go:49
↓ 8 callersMethodFill
Style Fill sets current fill style
svg/svg.go:343
↓ 8 callersMethodStrokeWidth
StrokeWidth sets current stroke width
svg/svg.go:362
↓ 8 callersMethodValueTicker
ValueTicker returns tick labels by converting floats using strconv.FormatFloat
tickers.go:60
↓ 8 callersMethodstart
(axis Axis, series *Series, steps int)
tickers.go:14
↓ 7 callersMethodClose
Close closes a child SVG and returns the parent. If the current SVG is not a child, this is a noop.
svg/svg.go:151
↓ 7 callersMethodGet
Get returns the iterator current value. A newly created iterator has no current value.
series.go:79
↓ 7 callersFunctionScaling
Scaling scales by (xScale, yScale)
svg/svg.go:312
↓ 7 callersMethodSize
Size returns the current series value count
series.go:43
↓ 7 callersFunctionTranslation
Translation moves by (x, y)
svg/svg.go:304
↓ 7 callersMethodnext
(previous float64)
tickers.go:15
↓ 6 callersMethodAxis
Axis draws tick marks and labels using the specified ticker
axes.go:24
↓ 6 callersMethodStroke
Stroke sets current stroke
svg/svg.go:349
↓ 6 callersFunctionTimeFromSeconds
TimeFromSeconds converts from seconds since the epoch to time.Time
series.go:301
↓ 6 callersMethodValues
Values returns an iterator to the series values
series.go:95
↓ 6 callersFunctionWithRange
WithRange sets a fixed plotting range for a given axis
margaid.go:108
↓ 5 callersMethodAlignment
Alignment sets current text alignment
svg/svg.go:435
↓ 5 callersMethodFont
Font sets current font family and size
svg/svg.go:382
↓ 5 callersMethodFontStyle
FontStyle sets the current font style and weight
svg/svg.go:408
↓ 5 callersFunctionNew
New - Brackets constructor
brackets/brackets.go:18
↓ 5 callersMethodText
Text draws text at x, y
svg/svg.go:276
↓ 5 callersMethodproject
Projects a value onto an axis using the current projection setting. The value returned is in user coordinates, [0..1] * width for the x-axis.
margaid.go:315
↓ 4 callersMethodMarker
Marker adds start, mid and end markers to all following strokes. The specified marker has to be one of "circle" and "square". Setting the marker to th
svg/svg.go:370
↓ 4 callersMethodgetPlotColor
getPlotColor picks hues and saturations around the color wheel at prime indices. Kind of works for a quick selection of plotting colors.
margaid.go:377
↓ 3 callersFunctionAggregatedBy
AggregatedBy sets the series aggregator
series.go:286
↓ 3 callersMethodAttributes
Attributes returns a copy of the element attributes
brackets/brackets.go:99
↓ 3 callersMethodClose
Close closes the current element. If there are no children (elements or text), the current element will be self-closed. Otherwise, a matching close-el
brackets/brackets.go:175
↓ 3 callersMethodCloseAll
CloseAll closes all elements to get a complete, matched structure.
brackets/brackets.go:190
↓ 3 callersFunctionEncodeText
EncodeText applies proper xml escaping and svg line breaking at each newline in the raw text and returns a section ready for inclusion in a <text> ele
svg/svg.go:455
↓ 3 callersMethodFalse
False verifies that a condition is false
xt/testing.go:33
↓ 3 callersMethodFrame
Frame draws a frame around the chart area
margaid.go:299
↓ 3 callersMethodLabeledTicker
LabeledTicker places tick marks and labels for all values of a series. The labels are provided by the labeler function.
tickers.go:132
↓ 3 callersMethodMinX
MinX returns the series smallest x value, or 0.0 if the series is empty
series.go:49
↓ 3 callersMethodPolyline
Polyline adds a polyline from a list of points
svg/svg.go:247
↓ 3 callersMethodRect
Rect adds a rect defined by x, y, width and height
svg/svg.go:263
↓ 3 callersMethodRender
Render generates SVG code for the current image, and clears the canvas
svg/svg.go:161
↓ 3 callersMethodSetAttribute
SetAttribute resets an attribute to a new value
brackets/brackets.go:109
↓ 3 callersMethodTrue
True verifies that a condition is true
xt/testing.go:25
↓ 3 callersMethodaddPlot
addPlot adds a named plot and returns its ID
margaid.go:369
↓ 3 callersMethoderror
(message string)
margaid.go:288
↓ 3 callersFunctiongetPlotOptions
(using []Using)
plots.go:21
↓ 3 callersMethodgetProjectedValues
(series *Series, xAxis, yAxis Axis)
margaid.go:351
↓ 3 callersMethodtopElement
()
brackets/brackets.go:113
↓ 3 callersMethodupdateStyle
()
svg/svg.go:199
↓ 2 callersMethodAdd
Add adds a self-closing element
brackets/brackets.go:150
↓ 2 callersMethodClone
Clone creates a deep copy of a map
brackets/brackets.go:29
↓ 2 callersMethodColor
Color sets current stroke and fill
svg/svg.go:355
↓ 2 callersMethodLine
Line draws a series using straight lines
plots.go:58
↓ 2 callersMethodMaxX
MaxX returns the series largest x value, or 0.0 if the series is empty
series.go:55
↓ 2 callersMethodName
Name returns the element name
brackets/brackets.go:104
↓ 2 callersMethodPath
Drawing Path adds a SVG style path
svg/svg.go:230
↓ 2 callersMethodSmooth
Smooth draws one series as a smooth curve
plots.go:84
↓ 2 callersMethodTimeTicker
TimeTicker returns time valued tick labels in the specified time format. TimeTicker assumes that time is linear.
tickers.go:20
↓ 2 callersFunctionTitled
Titled sets the series title
series.go:294
↓ 2 callersFunctionWithAutorange
WithAutorange sets range for an axis from the values of one or more series
margaid.go:115
↓ 2 callersFunctionWithBackgroundColor
WithBackgroundColor sets the chart background color as a valid SVG color attribute string. Default is transparent.
margaid.go:171
↓ 2 callersFunctionWithProjection
WithProjection sets the projection for a given axis
margaid.go:101
↓ 2 callersFunctionXMLEscape
XMLEscape returns properly escaped XML equivalent of the provided string
brackets/brackets.go:230
↓ 2 callersFunctionmakeSVG
()
svg/svg.go:125
↓ 2 callersMethodupdateMinMax
()
series.go:181
↓ 1 callersMethodAppend
Append adds all elements from another Brackets instance
brackets/brackets.go:214
↓ 1 callersMethodBar
Bar draws bars for the specified group of series.
plots.go:121
↓ 1 callersFunctionCappedByAge
CappedByAge caps a series by removing values older than cap in relation to the current value of the reference funcion.
series.go:227
↓ 1 callersFunctionCappedBySize
CappedBySize caps a series to at most cap values.
series.go:210
↓ 1 callersMethodCurrent
Current returns a pointer to the currently open element, or nil if there is none.
brackets/brackets.go:199
↓ 1 callersMethodFirst
First returns the first element of the underlying list of elements.
brackets/brackets.go:128
↓ 1 callersMethodLast
Last returns a pointer to the most recently added element, or nil if there is none.
brackets/brackets.go:205
↓ 1 callersMethodLegend
Legend draws a legend for named plots. If position is set to BottomLeft, it will grow the plot size to accommodate the number of legends displayed.
margaid.go:227
↓ 1 callersMethodMaxY
MaxY returns the series largest y value, or 0.0 if the series is empty
series.go:67
↓ 1 callersMethodMinY
MinY returns the series smallest y value, or 0.0 if the series is empty
series.go:61
↓ 1 callersFunctionNew
New - SVG constructor
svg/svg.go:29
↓ 1 callersFunctionRotation
Transformations Rotation rotates by angle degrees clockwise around (x, y)
svg/svg.go:296
↓ 1 callersMethodSetSize
SetSize of SVG, redefining the value given during construction.
svg/svg.go:44
↓ 1 callersMethodTitle
Drawing Title draws a title top center
margaid.go:204
↓ 1 callersFunctionWithInset
WithInset sets the distance between the chart boundaries and the charting area.
margaid.go:154
↓ 1 callersFunctionWithPadding
WithPadding sets the padding inside the plotting area as a percentage [0..20] of the area width and height
margaid.go:162
↓ 1 callersMethodaddMarkers
()
svg/svg.go:50
↓ 1 callersFunctionattributeDiff
(old, new br.Attributes)
svg/svg.go:168
↓ 1 callersFunctioncatmullRom2bezier
Pulled from: https://advancedweb.hu/plotting-charts-with-svg/
plots.go:173
↓ 1 callersMethodlabel
(value float64)
tickers.go:13
↓ 1 callersMethodnext
(previous float64)
tickers.go:111
↓ 1 callersMethodpopElement
()
brackets/brackets.go:121
↓ 1 callersFunctionshouldExtendParentStyle
(old, new, diff br.Attributes)
svg/svg.go:195
FunctionAvg
Avg calculates the Y average of a list of values, reported as observed at the given time.
series.go:250
MethodChild
Child adds a sub-SVG at x, y
svg/svg.go:139
FunctionDelta
Delta calculates the Y difference between the first and last value in the list, reported as observed at the given time.
series.go:275
MethodNil
Nil verifies that the argument is nil
xt/testing.go:59
next →1–100 of 145, ranked by callers