update axis text

This commit is contained in:
shoopea
2021-12-09 21:59:35 +08:00
parent 9a08e0ce76
commit 2eedfc43a9
2 changed files with 12 additions and 12 deletions

16
bot.go
View File

@@ -1190,9 +1190,9 @@ func botGraphMoney(m *tb.Message) {
p.Title.Text = "Company Money"
p.X.Label.Text = "Year"
if unitName != "" {
p.Y.Label.Text = fmt.Sprintf("Value (%s)", unitName)
p.Y.Label.Text = fmt.Sprintf("Money (%s)", unitName)
} else {
p.Y.Label.Text = "Value"
p.Y.Label.Text = "Money"
}
i := 0
@@ -1281,9 +1281,9 @@ func botGraphIncome(m *tb.Message) {
p.Title.Text = "Company Income"
p.X.Label.Text = "Year"
if unitName != "" {
p.Y.Label.Text = fmt.Sprintf("Value (%s)", unitName)
p.Y.Label.Text = fmt.Sprintf("Income (%s)", unitName)
} else {
p.Y.Label.Text = "Value"
p.Y.Label.Text = "Income"
}
i := 0
@@ -1372,9 +1372,9 @@ func botGraphLoan(m *tb.Message) {
p.Title.Text = "Company Loan"
p.X.Label.Text = "Year"
if unitName != "" {
p.Y.Label.Text = fmt.Sprintf("Value (%s)", unitName)
p.Y.Label.Text = fmt.Sprintf("Loan (%s)", unitName)
} else {
p.Y.Label.Text = "Value"
p.Y.Label.Text = "Loan"
}
i := 0
@@ -1463,9 +1463,9 @@ func botGraphPerf(m *tb.Message) {
p.Title.Text = "Company Perf"
p.X.Label.Text = "Year"
if unitName != "" {
p.Y.Label.Text = fmt.Sprintf("Value (%s)", unitName)
p.Y.Label.Text = fmt.Sprintf("Perf (%s)", unitName)
} else {
p.Y.Label.Text = "Value"
p.Y.Label.Text = "Perf"
}
i := 0