feat: support label format for funnel chart, #41
This commit is contained in:
parent
b3cb5a75cb
commit
e10175594b
2 changed files with 11 additions and 5 deletions
|
|
@ -279,6 +279,14 @@ func NewPieLabelFormatter(seriesNames []string, layout string) LabelFormatter {
|
|||
return NewLabelFormatter(seriesNames, layout)
|
||||
}
|
||||
|
||||
// NewFunnelLabelFormatter returns a funner label formatter
|
||||
func NewFunnelLabelFormatter(seriesNames []string, layout string) LabelFormatter {
|
||||
if len(layout) == 0 {
|
||||
layout = "{b}({d})"
|
||||
}
|
||||
return NewLabelFormatter(seriesNames, layout)
|
||||
}
|
||||
|
||||
// NewValueLabelFormatter returns a value formatter
|
||||
func NewValueLabelFormatter(seriesNames []string, layout string) LabelFormatter {
|
||||
if len(layout) == 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue