Fix incorrect color in the SparkLine demo.

This commit is contained in:
Jakub Sobon 2018-06-22 20:48:50 -04:00
parent 35f2672cae
commit dd57b316b0
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ func main() {
ctx, cancel := context.WithCancel(context.Background())
green := sparkline.New(
sparkline.Label("Green SparkLine", cell.FgColor(cell.ColorBlue)),
sparkline.Color(cell.ColorGreen),
)
go playSparkLine(ctx, green, 250*time.Millisecond)
red := sparkline.New(