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

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "4cecee1"
var buildstamp = "2021-12-09_13:53:06"
var commits = "248"
var version = "4cecee1-b248 - 2021-12-09_13:53:06"
var githash = "9a08e0c"
var buildstamp = "2021-12-09_13:59:19"
var commits = "249"
var version = "9a08e0c-b249 - 2021-12-09_13:59:19"