summaryrefslogtreecommitdiff
path: root/chart.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-05-10 00:09:24 +0800
committerxuri <xuri.me@gmail.com>2021-05-10 00:09:24 +0800
commitbe12cc27f1d774154b17763c071e1dc6f91eab8c (patch)
treed6544c2e33e8aacfb0867e79ffc69fde435d3183 /chart.go
parent423bc26d1f87db55bab5704afebf4509269bbc7e (diff)
This closes #652, new SetColWidth API, support set column width in stream writing mode, and export error message
Diffstat (limited to 'chart.go')
-rw-r--r--chart.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart.go b/chart.go
index 3ac460b..23ea776 100644
--- a/chart.go
+++ b/chart.go
@@ -919,7 +919,7 @@ func (f *File) AddChart(sheet, cell, format string, combo ...string) error {
func (f *File) AddChartSheet(sheet, format string, combo ...string) error {
// Check if the worksheet already exists
if f.GetSheetIndex(sheet) != -1 {
- return errors.New("the same name worksheet already exists")
+ return ErrExistsWorksheet
}
formatSet, comboCharts, err := f.getFormatChart(format, combo)
if err != nil {