Skip to content

Commit ba5e5a7

Browse files
committed
Release Aspose.Cells Cloud SDK 22.12
1 parent 02b6b9a commit ba5e5a7

File tree

8 files changed

+1235
-60
lines changed

8 files changed

+1235
-60
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ _testmain.go
2222
*.exe
2323
*.test
2424
*.prof
25-
TestData/roywang.pfx

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@
2020
- Fetch the required shape from worksheet.
2121
- Leverage the power of named ranges.
2222

23-
## Feature & Enhancements in Version 22.11
23+
## Feature & Enhancements in Version 22.12
2424

25-
- Add api for converting workbook to Json.
26-
- Add api for converting workbook to SQL.
27-
- Add api for converting workbook to CSV.
25+
- Support chart axis operations.
2826

2927
## Read & Write Spreadsheet Formats
3028

TestData/roywang.pfx

3.44 KB
Binary file not shown.

api_cells.go

Lines changed: 895 additions & 55 deletions
Large diffs are not rendered by default.

api_cells_test.go

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6655,3 +6655,176 @@ func TestCellsPostConvertWorkbookToCSV(t *testing.T) {
66556655
fmt.Printf("%d\t func TestCells TestCellsPostConvertWorkbookToCSV \n", GetBaseTest().GetTestNumber())
66566656
}
66576657
}
6658+
func TestCellsGetChartCategoryAxis(t *testing.T) {
6659+
6660+
args := new(CellsChartsGetChartCategoryAxisOpts)
6661+
args.Name = GetBook1()
6662+
args.SheetName = GetSheet4()
6663+
args.ChartIndex = 0
6664+
args.Folder = GetBaseTest().remoteFolder
6665+
_, httpResponse, err := GetBaseTest().CellsAPI.CellsChartsGetChartCategoryAxis(args)
6666+
if err != nil {
6667+
t.Error(err)
6668+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
6669+
t.Fail()
6670+
} else {
6671+
fmt.Printf("%d\t func TestCells TestCellsGetChartCategoryAxis \n", GetBaseTest().GetTestNumber())
6672+
}
6673+
}
6674+
func TestCellsChartsGetChartSecondCategoryAxis(t *testing.T) {
6675+
6676+
args := new(CellsChartsGetChartSecondCategoryAxisOpts)
6677+
args.Name = GetBook1()
6678+
args.SheetName = GetSheet4()
6679+
args.ChartIndex = 0
6680+
args.Folder = GetBaseTest().remoteFolder
6681+
_, httpResponse, err := GetBaseTest().CellsAPI.CellsChartsGetChartSecondCategoryAxis(args)
6682+
if err != nil {
6683+
t.Error(err)
6684+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
6685+
t.Fail()
6686+
} else {
6687+
fmt.Printf("%d\t func TestCells TestCellsGetChartCategoryAxis \n", GetBaseTest().GetTestNumber())
6688+
}
6689+
}
6690+
6691+
func TestCellsGetChartValueAxis(t *testing.T) {
6692+
6693+
args := new(CellsChartsGetChartValueAxisOpts)
6694+
args.Name = GetBook1()
6695+
args.SheetName = GetSheet4()
6696+
args.ChartIndex = 0
6697+
args.Folder = GetBaseTest().remoteFolder
6698+
_, httpResponse, err := GetBaseTest().CellsAPI.CellsChartsGetChartValueAxis(args)
6699+
if err != nil {
6700+
t.Error(err)
6701+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
6702+
t.Fail()
6703+
} else {
6704+
fmt.Printf("%d\t func TestCells TestCellsGetChartValueAxis \n", GetBaseTest().GetTestNumber())
6705+
}
6706+
}
6707+
func TestCellsChartsGetChartSecondValueAxis(t *testing.T) {
6708+
6709+
args := new(CellsChartsGetChartSecondValueAxisOpts)
6710+
args.Name = GetBook1()
6711+
args.SheetName = GetSheet4()
6712+
args.ChartIndex = 0
6713+
args.Folder = GetBaseTest().remoteFolder
6714+
_, httpResponse, err := GetBaseTest().CellsAPI.CellsChartsGetChartSecondValueAxis(args)
6715+
if err != nil {
6716+
t.Error(err)
6717+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
6718+
t.Fail()
6719+
} else {
6720+
fmt.Printf("%d\t func TestCells TestCellsGetChartValueAxis \n", GetBaseTest().GetTestNumber())
6721+
}
6722+
}
6723+
func TestCellsChartsGetChartSeriesAxis(t *testing.T) {
6724+
6725+
args := new(CellsChartsGetChartSeriesAxisOpts)
6726+
args.Name = GetBook1()
6727+
args.SheetName = GetSheet4()
6728+
args.ChartIndex = 0
6729+
args.Folder = GetBaseTest().remoteFolder
6730+
_, httpResponse, err := GetBaseTest().CellsAPI.CellsChartsGetChartSeriesAxis(args)
6731+
if err != nil {
6732+
t.Error(err)
6733+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
6734+
t.Fail()
6735+
} else {
6736+
fmt.Printf("%d\t func TestCells TestCellsGetChartValueAxis \n", GetBaseTest().GetTestNumber())
6737+
}
6738+
}
6739+
6740+
func TestCellsPostChartCategoryAxis(t *testing.T) {
6741+
6742+
args := new(CellsChartsPostChartCategoryAxisOpts)
6743+
args.Name = GetBook1()
6744+
args.SheetName = GetSheet4()
6745+
args.ChartIndex = 0
6746+
args.Axis = new(Axis)
6747+
args.Axis.MinValue = 1.0
6748+
args.Folder = GetBaseTest().remoteFolder
6749+
_, httpResponse, err := GetBaseTest().CellsAPI.CellsChartsPostChartCategoryAxis(args)
6750+
if err != nil {
6751+
t.Error(err)
6752+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
6753+
t.Fail()
6754+
} else {
6755+
fmt.Printf("%d\t func TestCells TestCellsGetChartCategoryAxis \n", GetBaseTest().GetTestNumber())
6756+
}
6757+
}
6758+
func TestCellsChartsPostChartSecondCategoryAxis(t *testing.T) {
6759+
6760+
args := new(CellsChartsPostChartSecondCategoryAxisOpts)
6761+
args.Name = GetBook1()
6762+
args.SheetName = GetSheet4()
6763+
args.ChartIndex = 0
6764+
args.Axis = new(Axis)
6765+
args.Axis.MinValue = 1.0
6766+
args.Folder = GetBaseTest().remoteFolder
6767+
_, httpResponse, err := GetBaseTest().CellsAPI.CellsChartsPostChartSecondCategoryAxis(args)
6768+
if err != nil {
6769+
t.Error(err)
6770+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
6771+
t.Fail()
6772+
} else {
6773+
fmt.Printf("%d\t func TestCells TestCellsPostChartCategoryAxis \n", GetBaseTest().GetTestNumber())
6774+
}
6775+
}
6776+
6777+
func TestCellsPostChartValueAxis(t *testing.T) {
6778+
6779+
args := new(CellsChartsPostChartValueAxisOpts)
6780+
args.Name = GetBook1()
6781+
args.SheetName = GetSheet4()
6782+
args.ChartIndex = 0
6783+
args.Axis = new(Axis)
6784+
args.Axis.MinValue = 1.0
6785+
args.Folder = GetBaseTest().remoteFolder
6786+
_, httpResponse, err := GetBaseTest().CellsAPI.CellsChartsPostChartValueAxis(args)
6787+
if err != nil {
6788+
t.Error(err)
6789+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
6790+
t.Fail()
6791+
} else {
6792+
fmt.Printf("%d\t func TestCells TestCellsPostChartValueAxis \n", GetBaseTest().GetTestNumber())
6793+
}
6794+
}
6795+
func TestCellsChartsPostChartSecondValueAxis(t *testing.T) {
6796+
6797+
args := new(CellsChartsPostChartSecondValueAxisOpts)
6798+
args.Name = GetBook1()
6799+
args.SheetName = GetSheet4()
6800+
args.ChartIndex = 0
6801+
args.Axis = new(Axis)
6802+
args.Axis.MinValue = 1.0
6803+
args.Folder = GetBaseTest().remoteFolder
6804+
_, httpResponse, err := GetBaseTest().CellsAPI.CellsChartsPostChartSecondValueAxis(args)
6805+
if err != nil {
6806+
t.Error(err)
6807+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
6808+
t.Fail()
6809+
} else {
6810+
fmt.Printf("%d\t func TestCells TestCellsPostChartValueAxis \n", GetBaseTest().GetTestNumber())
6811+
}
6812+
}
6813+
func TestCellsChartsPostChartSeriesAxis(t *testing.T) {
6814+
6815+
args := new(CellsChartsPostChartSeriesAxisOpts)
6816+
args.Name = GetBook1()
6817+
args.SheetName = GetSheet4()
6818+
args.ChartIndex = 0
6819+
args.Axis = new(Axis)
6820+
args.Axis.MinValue = 1.0
6821+
args.Folder = GetBaseTest().remoteFolder
6822+
_, httpResponse, err := GetBaseTest().CellsAPI.CellsChartsPostChartSeriesAxis(args)
6823+
if err != nil {
6824+
t.Error(err)
6825+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
6826+
t.Fail()
6827+
} else {
6828+
fmt.Printf("%d\t func TestCells TestCellsPostChartValueAxis \n", GetBaseTest().GetTestNumber())
6829+
}
6830+
}

model_axis.go

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/*
2+
* Copyright (c) 2022 Aspose.Cells Cloud
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy
4+
* of this software and associated documentation files (the "Software"), to deal
5+
* in the Software without restriction, including without limitation the rights
6+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
* copies of the Software, and to permit persons to whom the Software is
8+
* furnished to do so, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
* SOFTWARE.
20+
*
21+
*/
22+
23+
package asposecellscloud
24+
25+
type Axis struct {
26+
Area *Area `json:"Area,omitempty" xml:"Area"`
27+
//
28+
AxisBetweenCategories bool `json:"AxisBetweenCategories,omitempty" xml:"AxisBetweenCategories"`
29+
//
30+
AxisLine *Area `json:"AxisLine,omitempty" xml:"AxisLine"`
31+
//
32+
BaseUnitScale string `json:"BaseUnitScale,omitempty" xml:"BaseUnitScale"`
33+
//
34+
CategoryType string `json:"CategoryType,omitempty" xml:"CategoryType"`
35+
//
36+
CrossAt float64 `json:"CrossAt,omitempty" xml:"CrossAt"`
37+
//
38+
CrossType string `json:"CrossType,omitempty" xml:"CrossType"`
39+
//
40+
DisplayUnit string `json:"DisplayUnit,omitempty" xml:"DisplayUnit"`
41+
//
42+
HasMultiLevelLabels bool `json:"HasMultiLevelLabels,omitempty" xml:"HasMultiLevelLabels"`
43+
//
44+
IsAutomaticMaxValue bool `json:"IsAutomaticMaxValue,omitempty" xml:"IsAutomaticMaxValue"`
45+
//
46+
IsAutomaticMinorUnit bool `json:"IsAutomaticMinorUnit,omitempty" xml:"IsAutomaticMinorUnit"`
47+
//
48+
IsAutomaticMinValue bool `json:"IsAutomaticMinValue,omitempty" xml:"IsAutomaticMinValue"`
49+
//
50+
IsDisplayUnitLabelShown bool `json:"IsDisplayUnitLabelShown,omitempty" xml:"IsDisplayUnitLabelShown"`
51+
//
52+
IsAutomaticMajorUnit bool `json:"IsAutomaticMajorUnit,omitempty" xml:"IsAutomaticMajorUnit"`
53+
//
54+
IsLogarithmic bool `json:"IsLogarithmic,omitempty" xml:"IsLogarithmic"`
55+
//
56+
IsPlotOrderReversed bool `json:"IsPlotOrderReversed,omitempty" xml:"IsPlotOrderReversed"`
57+
//
58+
IsVisible bool `json:"IsVisible,omitempty" xml:"IsVisible"`
59+
//
60+
LogBase float64 `json:"LogBase,omitempty" xml:"LogBase"`
61+
//
62+
MajorGridLines *Line `json:"MajorGridLines,omitempty" xml:"MajorGridLines"`
63+
//
64+
MajorTickMark string `json:"MajorTickMark,omitempty" xml:"MajorTickMark"`
65+
//
66+
MajorUnit float64 `json:"MajorUnit,omitempty" xml:"MajorUnit"`
67+
//
68+
MajorUnitScale string `json:"MajorUnitScale,omitempty" xml:"MajorUnitScale"`
69+
//
70+
MaxValue float64 `json:"MaxValue,omitempty" xml:"MaxValue"`
71+
//
72+
MinorGridLines *Line `json:"MinorGridLines,omitempty" xml:"MinorGridLines"`
73+
//
74+
MinorTickMark string `json:"MinorTickMark,omitempty" xml:"MinorTickMark"`
75+
//
76+
MinorUnit float64 `json:"MinorUnit,omitempty" xml:"MinorUnit"`
77+
//
78+
MinorUnitScale string `json:"MinorUnitScale,omitempty" xml:"MinorUnitScale"`
79+
//
80+
MinValue float64 `json:"MinValue,omitempty" xml:"MinValue"`
81+
//
82+
TickLabelPosition string `json:"TickLabelPosition,omitempty" xml:"TickLabelPosition"`
83+
//
84+
TickLabels *TickLabels `json:"TickLabels,omitempty" xml:"TickLabels"`
85+
TickLabelSpacing int64 `json:"TickLabelSpacing,omitempty" xml:"TickLabelSpacing"`
86+
TickMarkSpacing int64 `json:"TickMarkSpacing,omitempty" xml:"TickMarkSpacing"`
87+
//
88+
Title *Title `json:"Title,omitempty" xml:"Title"`
89+
}

model_axis_response.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2022 Aspose.Cells Cloud
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy
4+
* of this software and associated documentation files (the "Software"), to deal
5+
* in the Software without restriction, including without limitation the rights
6+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
* copies of the Software, and to permit persons to whom the Software is
8+
* furnished to do so, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
* SOFTWARE.
20+
*
21+
*/
22+
23+
package asposecellscloud
24+
25+
type AxisResponse struct {
26+
Status string `json:"Status,omitempty" xml:"Status"`
27+
Code int32 `json:"Code" xml:"Code"`
28+
Axis *Axis `json:"Axis,omitempty" xml:"Axis"`
29+
}

model_tick_labels.go

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright (c) 2022 Aspose.Cells Cloud
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy
4+
* of this software and associated documentation files (the "Software"), to deal
5+
* in the Software without restriction, including without limitation the rights
6+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
* copies of the Software, and to permit persons to whom the Software is
8+
* furnished to do so, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
* SOFTWARE.
20+
*
21+
*/
22+
23+
package asposecellscloud
24+
25+
type TickLabels struct {
26+
//
27+
AutoScaleFont bool `json:"AutoScaleFont,omitempty" xml:"AutoScaleFont"`
28+
//
29+
Font *Font `json:"Font,omitempty" xml:"Font"`
30+
//
31+
BackgroundMode string `json:"BackgroundMode,omitempty" xml:"BackgroundMode"`
32+
Number int64 `json:"Number,omitempty" xml:"Number"`
33+
//
34+
NumberFormat string `json:"NumberFormat,omitempty" xml:"NumberFormat"`
35+
//
36+
NumberFormatLinked bool `json:"NumberFormatLinked,omitempty" xml:"NumberFormatLinked"`
37+
//
38+
Offset int64 `json:"Offset,omitempty" xml:"Offset"`
39+
//
40+
RotationAngle int64 `json:"RotationAngle,omitempty" xml:"RotationAngle"`
41+
//
42+
TextDirection string `json:"TextDirection,omitempty" xml:"TextDirection"`
43+
//
44+
ReadingOrder string `json:"ReadingOrder,omitempty" xml:"ReadingOrder"`
45+
//
46+
DirectionType string `json:"DirectionType,omitempty" xml:"DirectionType"`
47+
}

0 commit comments

Comments
 (0)