Permalink
Browse files

chart title.

  • Loading branch information...
fiatjaf committed Jul 13, 2017
1 parent 6d4c85c commit cd445cffb6657fcf6232d6f02084b2b04e106ecb
Showing with 10 additions and 3 deletions.
  1. +10 −3 main.go
View
13 main.go
@@ -238,12 +238,19 @@ func drawChart(c echo.Context) error {
w := 800
h := 300
graph := chart.Chart{
Title: repo + " visitors",
TitleStyle: chart.Style{
Show: true,
FontColor: drawing.Color{52, 23, 119, 100},
},
Background: chart.Style{
Padding: chart.Box{Top: 50, Right: 10, Bottom: 10, Left: 27},
},
Width: w,
Height: h,
Series: []chart.Series{uniqueSessions, totalPageviews},
Background: chart.Style{
Padding: chart.Box{Top: 10, Right: 10, Bottom: 10, Left: 27},
},
XAxis: chart.XAxis{
Style: chart.Style{Show: true},
ValueFormatter: func(v interface{}) string {

0 comments on commit cd445cf

Please sign in to comment.