From d78ac4108c2fd8ccf4a0d150302a70031d6f889b Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Sun, 23 Apr 2017 00:39:14 +0800 Subject: - Update doc of function `AddChart()`; - Readme updated; - go test update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3f71454..0e13138 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ With Excelize chart generation and management is as easy as a few lines of code. ![Excelize](./test/images/chart.png "Excelize") -``` +```go package main import ( @@ -107,7 +107,7 @@ import ( ) func main() { - categories := map[string]string{"A2": "Small", "A3": "Normal", "A4": "Large", "B1": "Large", "C1": "Apple", "D1": "Pear"} + categories := map[string]string{"A2": "Small", "A3": "Normal", "A4": "Large", "B1": "Apple", "C1": "Orange", "D1": "Pear"} values := map[string]int{"B2": 2, "C2": 3, "D2": 3, "B3": 5, "C3": 2, "D3": 4, "B4": 6, "C4": 7, "D4": 8} xlsx := excelize.CreateFile() for k, v := range categories { -- cgit v1.2.1