response times example needs some ergonomic love.

This commit is contained in:
Will Charczuk 2016-07-17 14:25:42 -07:00
parent 7ae7cc13a8
commit cea31c6c23
4 changed files with 305 additions and 3 deletions

View file

@ -2,6 +2,7 @@ package chart
import (
"sync"
"time"
"github.com/golang/freetype/truetype"
"github.com/wcharczuk/go-chart/drawing"
@ -57,6 +58,8 @@ const (
DefaultDateFormat = "2006-01-02"
// DefaultDateHourFormat is the date format for hour timestamp formats.
DefaultDateHourFormat = "01-02 3PM"
// DefaultDateMinuteFormat is the date format for minute range timestamp formats.
DefaultDateMinuteFormat = time.Kitchen
// DefaultFloatFormat is the default float format.
DefaultFloatFormat = "%.2f"
// DefaultPercentValueFormat is the default percent format.