Skip to content

Commit 294f2e1

Browse files
committed
Require using ChartType enumeration value to specify the chart type
- Update docs and unit tests
1 parent 3b807c4 commit 294f2e1

7 files changed

+282
-279
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func main() {
148148
f.SetSheetRow("Sheet1", cell, &row)
149149
}
150150
if err := f.AddChart("Sheet1", "E1", &excelize.Chart{
151-
Type: "col3DClustered",
151+
Type: excelize.Col3DClustered,
152152
Series: []excelize.ChartSeries{
153153
{
154154
Name: "Sheet1!$A$2",

README_zh.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func main() {
148148
f.SetSheetRow("Sheet1", cell, &row)
149149
}
150150
if err := f.AddChart("Sheet1", "E1", &excelize.Chart{
151-
Type: "col3DClustered",
151+
Type: excelize.Col3DClustered,
152152
Series: []excelize.ChartSeries{
153153
{
154154
Name: "Sheet1!$A$2",

0 commit comments

Comments
 (0)