@@ -216,9 +216,9 @@ func TestAddChart(t *testing.T) {
216
216
}{
217
217
{sheetName : "Sheet1" , cell : "P1" , opts : & Chart {Type : Col , Series : series , Format : format , Legend : ChartLegend {Position : "none" , ShowLegendKey : true }, Title : []RichTextRun {{Text : "2D Column Chart" }}, PlotArea : plotArea , Border : ChartLine {Type : ChartLineNone }, ShowBlanksAs : "zero" , XAxis : ChartAxis {Font : Font {Bold : true , Italic : true , Underline : "dbl" , Family : "Times New Roman" , Size : 15 , Strike : true , Color : "000000" }, Title : []RichTextRun {{Text : "Primary Horizontal Axis Title" }}}, YAxis : ChartAxis {Font : Font {Bold : false , Italic : false , Underline : "sng" , Color : "777777" }, Title : []RichTextRun {{Text : "Primary Vertical Axis Title" , Font : & Font {Color : "777777" , Bold : true , Italic : true , Size : 12 }}}}}},
218
218
{sheetName : "Sheet1" , cell : "X1" , opts : & Chart {Type : ColStacked , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "2D Stacked Column Chart" }}, PlotArea : plotArea , Fill : Fill {Type : "pattern" , Pattern : 1 }, Border : ChartLine {Type : ChartLineAutomatic }, ShowBlanksAs : "zero" }},
219
- {sheetName : "Sheet1" , cell : "P16" , opts : & Chart {Type : ColPercentStacked , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "100% Stacked Column Chart" }}, PlotArea : plotArea , Fill : Fill {Type : "pattern" , Color : []string {"EEEEEE" }, Pattern : 1 }, Border : ChartLine {Type : ChartLineSolid , Width : 2 }, ShowBlanksAs : "zero" }},
219
+ {sheetName : "Sheet1" , cell : "P16" , opts : & Chart {Type : ColPercentStacked , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "100% Stacked Column Chart" }}, PlotArea : plotArea , Fill : Fill {Type : "pattern" , Color : []string {"EEEEEE" }, Pattern : 1 }, Border : ChartLine {Type : ChartLineSolid , Width : 2 }, ShowBlanksAs : "zero" , XAxis : ChartAxis { Alignment : Alignment { Vertical : "wordArtVertRtl" , TextRotation : 0 }} }},
220
220
{sheetName : "Sheet1" , cell : "X16" , opts : & Chart {Type : Col3DClustered , Series : series , Format : format , Legend : ChartLegend {Position : "bottom" , ShowLegendKey : false }, Title : []RichTextRun {{Text : "3D Clustered Column Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" }},
221
- {sheetName : "Sheet1" , cell : "P30" , opts : & Chart {Type : Col3DStacked , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "3D Stacked Column Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" }},
221
+ {sheetName : "Sheet1" , cell : "P30" , opts : & Chart {Type : Col3DStacked , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "3D Stacked Column Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" , XAxis : ChartAxis { Alignment : Alignment { Vertical : "vert" , TextRotation : 0 }} }},
222
222
{sheetName : "Sheet1" , cell : "X30" , opts : & Chart {Type : Col3DPercentStacked , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "3D 100% Stacked Column Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" }},
223
223
{sheetName : "Sheet1" , cell : "X45" , opts : & Chart {Type : Radar , Series : series , Format : format , Legend : ChartLegend {Position : "top_right" , ShowLegendKey : false }, Title : []RichTextRun {{Text : "Radar Chart" }}, PlotArea : plotArea , ShowBlanksAs : "span" }},
224
224
{sheetName : "Sheet1" , cell : "AF1" , opts : & Chart {Type : Col3DConeStacked , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "3D Column Cone Stacked Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" }},
@@ -233,7 +233,7 @@ func TestAddChart(t *testing.T) {
233
233
{sheetName : "Sheet1" , cell : "AV16" , opts : & Chart {Type : Col3DCylinderClustered , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "3D Column Cylinder Clustered Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" }},
234
234
{sheetName : "Sheet1" , cell : "AV30" , opts : & Chart {Type : Col3DCylinderPercentStacked , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "3D Column Cylinder Percent Stacked Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" }},
235
235
{sheetName : "Sheet1" , cell : "AV45" , opts : & Chart {Type : Col3DCylinder , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "3D Column Cylinder Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" }},
236
- {sheetName : "Sheet1" , cell : "P45" , opts : & Chart {Type : Col3D , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "3D Column Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" }},
236
+ {sheetName : "Sheet1" , cell : "P45" , opts : & Chart {Type : Col3D , Series : series , Format : format , Legend : legend , Title : []RichTextRun {{Text : "3D Column Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" , XAxis : ChartAxis { Alignment : Alignment { Vertical : "vert270" , TextRotation : 0 }} }},
237
237
{sheetName : "Sheet2" , cell : "P1" , opts : & Chart {Type : Line3D , Series : series2 , Format : format , Legend : ChartLegend {Position : "top" , ShowLegendKey : false }, Title : []RichTextRun {{Text : "3D Line Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" , XAxis : ChartAxis {MajorGridLines : true , MinorGridLines : true , TickLabelSkip : 1 , NumFmt : ChartNumFmt {CustomNumFmt : "General" }}, YAxis : ChartAxis {MajorGridLines : true , MinorGridLines : true , MajorUnit : 1 , NumFmt : ChartNumFmt {CustomNumFmt : "General" }}}},
238
238
{sheetName : "Sheet2" , cell : "X1" , opts : & Chart {Type : Scatter , Series : series , Format : format , Legend : ChartLegend {Position : "bottom" , ShowLegendKey : false }, Title : []RichTextRun {{Text : "Scatter Chart" }}, PlotArea : plotArea , ShowBlanksAs : "zero" }},
239
239
{sheetName : "Sheet2" , cell : "P16" , opts : & Chart {Type : Doughnut , Series : series3 , Format : format , Legend : ChartLegend {Position : "right" , ShowLegendKey : false }, Title : []RichTextRun {{Text : "Doughnut Chart" }}, PlotArea : ChartPlotArea {ShowBubbleSize : false , ShowCatName : false , ShowLeaderLines : false , ShowPercent : true , ShowSerName : false , ShowVal : false }, ShowBlanksAs : "zero" , HoleSize : 30 }},
0 commit comments