MCPcopy Index your code
hub / github.com/gonum/plot / stockList

Method stockList

plotter/sankey.go:298–307  ·  view source on GitHub ↗

stockList returns a sorted list of the stocks in the diagram.

()

Source from the content-addressed store, hash-verified

296
297// stockList returns a sorted list of the stocks in the diagram.
298func (s *Sankey) stockList() []*stock {
299 var stocks []*stock
300 for _, ss := range s.stocks {
301 for _, sss := range ss {
302 stocks = append(stocks, sss)
303 }
304 }
305 sort.Sort(stockSorter(stocks))
306 return stocks
307}
308
309// stockSorter is a wrapper for a list of *stocks that implements
310// sort.Interface.

Callers 4

NewSankeyFunction · 0.95
PlotMethod · 0.95
DataRangeMethod · 0.95
GlyphBoxesMethod · 0.95

Calls 1

stockSorterTypeAlias · 0.85

Tested by

no test coverage detected