Skip to content

Commit

Permalink
Require using ChartType enumeration value to specify the chart type
Browse files Browse the repository at this point in the history
- Update docs and unit tests
  • Loading branch information
xuri committed Mar 31, 2023
1 parent 3b807c4 commit 294f2e1
Show file tree
Hide file tree
Showing 7 changed files with 282 additions and 279 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func main() {
f.SetSheetRow("Sheet1", cell, &row)
}
if err := f.AddChart("Sheet1", "E1", &excelize.Chart{
Type: "col3DClustered",
Type: excelize.Col3DClustered,
Series: []excelize.ChartSeries{
{
Name: "Sheet1!$A$2",
Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func main() {
f.SetSheetRow("Sheet1", cell, &row)
}
if err := f.AddChart("Sheet1", "E1", &excelize.Chart{
Type: "col3DClustered",
Type: excelize.Col3DClustered,
Series: []excelize.ChartSeries{
{
Name: "Sheet1!$A$2",
Expand Down
Loading

0 comments on commit 294f2e1

Please sign in to comment.