From be12cc27f1d774154b17763c071e1dc6f91eab8c Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 10 May 2021 00:09:24 +0800 Subject: This closes #652, new SetColWidth API, support set column width in stream writing mode, and export error message --- chart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chart.go') 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 { -- cgit v1.2.1