summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-04-23 00:39:14 +0800
committerRi Xu <xuri.me@gmail.com>2017-04-23 00:39:14 +0800
commitd78ac4108c2fd8ccf4a0d150302a70031d6f889b (patch)
tree7d5461d8c5a05c6b63d80e44c6c9fd11840ca399 /README.md
parent219aadeb7659ccee887e7d70c1711ee6dd50f35f (diff)
- Update doc of function `AddChart()`;
- Readme updated; - go test update
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
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 {