2017-09-03 16:47:46 -05:00
|
|
|
//
|
2020-08-23 14:15:53 +00:00
|
|
|
// Copyright 2020 FoxyUtils ehf. All rights reserved.
|
|
|
|
//
|
|
|
|
// This is a commercial product and requires a license to operate.
|
|
|
|
// A trial license can be obtained at https://unidoc.io
|
|
|
|
//
|
|
|
|
// DO NOT EDIT: generated by unitwist Go source code obfuscator.
|
|
|
|
//
|
|
|
|
// Use of this source code is governed by the UniDoc End User License Agreement
|
|
|
|
// terms that can be accessed at https://unidoc.io/eula/
|
2017-09-03 16:47:46 -05:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
package chart ;import (_ad "fmt";_g "github.com/unidoc/unioffice";_fgd "github.com/unidoc/unioffice/color";_db "github.com/unidoc/unioffice/drawing";_f "github.com/unidoc/unioffice/measurement";_d "github.com/unidoc/unioffice/schema/soo/dml";_b "github.com/unidoc/unioffice/schema/soo/dml/chart";_fg "math/rand";);
|
2017-09-03 16:47:46 -05:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddDoughnutChart adds a new doughnut (pie with a hole in the center) chart to a chart.
|
|
|
|
func (_gabc Chart )AddDoughnutChart ()DoughnutChart {_ee :=_b .NewCT_PlotAreaChoice ();_gabc ._dfa .Chart .PlotArea .Choice =append (_gabc ._dfa .Chart .PlotArea .Choice ,_ee );_ee .DoughnutChart =_b .NewCT_DoughnutChart ();_ggc :=DoughnutChart {_gca :_ee .DoughnutChart };_ggc .InitializeDefaults ();return _ggc ;};
|
2017-09-04 15:32:59 -05:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_cg BarChartSeries )X ()*_b .CT_BarSer {return _cg ._dbgb };type DataLabels struct{_dadg *_b .CT_DLbls };
|
2017-09-03 16:47:46 -05:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetHoleSize controls the hole size in the pie chart and is measured in percent.
|
|
|
|
func (_eea DoughnutChart )SetHoleSize (pct uint8 ){if _eea ._gca .HoleSize ==nil {_eea ._gca .HoleSize =_b .NewCT_HoleSize ();};if _eea ._gca .HoleSize .ValAttr ==nil {_eea ._gca .HoleSize .ValAttr =&_b .ST_HoleSize {};};_eea ._gca .HoleSize .ValAttr .ST_HoleSizeUByte =&pct ;};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// DoughnutChart is a Doughnut chart.
|
|
|
|
type DoughnutChart struct{chartBase ;_gca *_b .CT_DoughnutChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Order returns the order of the series
|
|
|
|
func (_ddf ScatterChartSeries )Order ()uint32 {return _ddf ._dcc .Order .ValAttr };func (_bdf CategoryAxis )AxisID ()uint32 {return _bdf ._ab .AxId .ValAttr };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_be AreaChartSeries )SetText (s string ){_be ._ged .Tx =_b .NewCT_SerTx ();_be ._ged .Tx .Choice .V =&s ;};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Pie3DChart is a Pie3D chart.
|
|
|
|
type Pie3DChart struct{chartBase ;_dd *_b .CT_Pie3DChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_caeb SurfaceChart )X ()*_b .CT_SurfaceChart {return _caeb ._agac };
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to an Radar chart.
|
|
|
|
func (_dbgf RadarChart )AddSeries ()RadarChartSeries {_gbe :=_dbgf .nextColor (len (_dbgf ._cac .Ser ));_aea :=_b .NewCT_RadarSer ();_dbgf ._cac .Ser =append (_dbgf ._cac .Ser ,_aea );_aea .Idx .ValAttr =uint32 (len (_dbgf ._cac .Ser )-1);_aea .Order .ValAttr =uint32 (len (_dbgf ._cac .Ser )-1);_agb :=RadarChartSeries {_aea };_agb .InitializeDefaults ();_agb .Properties ().SetSolidFill (_gbe );return _agb ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_ccf ScatterChartSeries )X ()*_b .CT_ScatterSer {return _ccf ._dcc };func (_dggc Legend )Properties ()_db .ShapeProperties {if _dggc ._dbcb .SpPr ==nil {_dggc ._dbcb .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_dggc ._dbcb .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Area3DChart is an area chart that has a shaded area underneath a curve.
|
|
|
|
type Area3DChart struct{chartBase ;_gd *_b .CT_Area3DChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_aaf BubbleChartSeries )CategoryAxis ()CategoryAxisDataSource {if _aaf ._deb .XVal ==nil {_aaf ._deb .XVal =_b .NewCT_AxDataSource ();};return MakeAxisDataSource (_aaf ._deb .XVal );};func (_agga DataLabels )SetShowPercent (b bool ){_agga .ensureChoice ();_agga ._dadg .Choice .ShowPercent =_b .NewCT_Boolean ();_agga ._dadg .Choice .ShowPercent .ValAttr =_g .Bool (b );};var _caf =[]_fgd .Color {_fgd .RGB (0x33,0x66,0xcc),_fgd .RGB (0xDC,0x39,0x12),_fgd .RGB (0xFF,0x99,0x00),_fgd .RGB (0x10,0x96,0x18),_fgd .RGB (0x99,0x00,0x99),_fgd .RGB (0x3B,0x3E,0xAC),_fgd .RGB (0x00,0x99,0xC6),_fgd .RGB (0xDD,0x44,0x77),_fgd .RGB (0x66,0xAA,0x00),_fgd .RGB (0xB8,0x2E,0x2E),_fgd .RGB (0x31,0x63,0x95),_fgd .RGB (0x99,0x44,0x99),_fgd .RGB (0x22,0xAA,0x99),_fgd .RGB (0xAA,0xAA,0x11),_fgd .RGB (0x66,0x33,0xCC),_fgd .RGB (0xE6,0x73,0x00),_fgd .RGB (0x8B,0x07,0x07),_fgd .RGB (0x32,0x92,0x62),_fgd .RGB (0x55,0x74,0xA6),_fgd .RGB (0x3B,0x3E,0xAC)};func (_bbe NumberDataSource )SetReference (s string ){_bbe .ensureChoice ();if _bbe ._bff .Choice .NumRef ==nil {_bbe ._bff .Choice .NumRef =_b .NewCT_NumRef ();};_bbe ._bff .Choice .NumRef .F =s ;};func (_dbc CategoryAxis )SetPosition (p _b .ST_AxPos ){_dbc ._ab .AxPos =_b .NewCT_AxPos ();_dbc ._ab .AxPos .ValAttr =p ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_adc Marker )X ()*_b .CT_Marker {return _adc ._cdaf };
|
|
|
|
|
|
|
|
// AreaChartSeries is a series to be used on an area chart.
|
|
|
|
type AreaChartSeries struct{_ged *_b .CT_AreaSer };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_gbc ScatterChart )X ()*_b .CT_ScatterChart {return _gbc ._cede };func (_gbcb SeriesAxis )SetCrosses (axis Axis ){_gbcb ._bbd .CrossAx .ValAttr =axis .AxisID ()};func (_eb DataLabels )SetShowSeriesName (b bool ){_eb .ensureChoice ();_eb ._dadg .Choice .ShowSerName =_b .NewCT_Boolean ();_eb ._dadg .Choice .ShowSerName .ValAttr =_g .Bool (b );};type Legend struct{_dbcb *_b .CT_Legend };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_eae BarChartSeries )Values ()NumberDataSource {if _eae ._dbgb .Val ==nil {_eae ._dbgb .Val =_b .NewCT_NumDataSource ();};return MakeNumberDataSource (_eae ._dbgb .Val );};func (_dcef RadarChart )AddAxis (axis Axis ){_ceae :=_b .NewCT_UnsignedInt ();_ceae .ValAttr =axis .AxisID ();_dcef ._cac .AxId =append (_dcef ._cac .AxId ,_ceae );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddTitle sets a new title on the chart.
|
|
|
|
func (_dga Chart )AddTitle ()Title {_dga ._dfa .Chart .Title =_b .NewCT_Title ();_dga ._dfa .Chart .Title .Overlay =_b .NewCT_Boolean ();_dga ._dfa .Chart .Title .Overlay .ValAttr =_g .Bool (false );_dga ._dfa .Chart .AutoTitleDeleted =_b .NewCT_Boolean ();_dga ._dfa .Chart .AutoTitleDeleted .ValAttr =_g .Bool (false );_abd :=MakeTitle (_dga ._dfa .Chart .Title );_abd .InitializeDefaults ();return _abd ;};type chartBase struct{};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// PieChartSeries is a series to be used on an Pie chart.
|
|
|
|
type PieChartSeries struct{_cgb *_b .CT_PieSer };func (_aeaa SurfaceChartSeries )CategoryAxis ()CategoryAxisDataSource {if _aeaa ._ggag .Cat ==nil {_aeaa ._ggag .Cat =_b .NewCT_AxDataSource ();};return MakeAxisDataSource (_aeaa ._ggag .Cat );};type ScatterChart struct{chartBase ;_cede *_b .CT_ScatterChart ;};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetIndex sets the index of the series
|
|
|
|
func (_fegd SurfaceChartSeries )SetIndex (idx uint32 ){_fegd ._ggag .Idx .ValAttr =idx };
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_eab Pie3DChart )InitializeDefaults (){_eab ._dd .VaryColors =_b .NewCT_Boolean ();_eab ._dd .VaryColors .ValAttr =_g .Bool (true );};var NullAxis Axis =nullAxis (0);
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults initializes a bar chart series to the default values.
|
|
|
|
func (_fgac BarChartSeries )InitializeDefaults (){};
|
|
|
|
|
|
|
|
// Properties returns the bar chart series shape properties.
|
|
|
|
func (_gf BarChartSeries )Properties ()_db .ShapeProperties {if _gf ._dbgb .SpPr ==nil {_gf ._dbgb .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_gf ._dbgb .SpPr );};func (_def Marker )SetSymbol (s _b .ST_MarkerStyle ){if s ==_b .ST_MarkerStyleUnset {_def ._cdaf .Symbol =nil ;}else {_def ._cdaf .Symbol =_b .NewCT_MarkerStyle ();_def ._cdaf .Symbol .ValAttr =s ;};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_ggg Legend )X ()*_b .CT_Legend {return _ggg ._dbcb };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// PieOfPieChart is a Pie chart with an extra Pie chart.
|
|
|
|
type PieOfPieChart struct{chartBase ;_dfce *_b .CT_OfPieChart ;};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to a Surface chart.
|
|
|
|
func (_dgaa Surface3DChart )AddSeries ()SurfaceChartSeries {_fca :=_dgaa .nextColor (len (_dgaa ._cec .Ser ));_ade :=_b .NewCT_SurfaceSer ();_dgaa ._cec .Ser =append (_dgaa ._cec .Ser ,_ade );_ade .Idx .ValAttr =uint32 (len (_dgaa ._cec .Ser )-1);_ade .Order .ValAttr =uint32 (len (_dgaa ._cec .Ser )-1);_bfgb :=SurfaceChartSeries {_ade };_bfgb .InitializeDefaults ();_bfgb .Properties ().LineProperties ().SetSolidFill (_fca );return _bfgb ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_ada Area3DChart )InitializeDefaults (){};func (_bcd DataLabels )ensureChoice (){if _bcd ._dadg .Choice ==nil {_bcd ._dadg .Choice =_b .NewCT_DLblsChoice ();};};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Marker returns the marker properties.
|
|
|
|
func (_ccd ScatterChartSeries )Marker ()Marker {if _ccd ._dcc .Marker ==nil {_ccd ._dcc .Marker =_b .NewCT_Marker ();};return MakeMarker (_ccd ._dcc .Marker );};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Values returns the bubble size data source.
|
|
|
|
func (_baf BubbleChartSeries )BubbleSizes ()NumberDataSource {if _baf ._deb .BubbleSize ==nil {_baf ._deb .BubbleSize =_b .NewCT_NumDataSource ();};return MakeNumberDataSource (_baf ._deb .BubbleSize );};func (_fed DateAxis )SetPosition (p _b .ST_AxPos ){_fed ._fae .AxPos =_b .NewCT_AxPos ();_fed ._fae .AxPos .ValAttr =p ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddArea3DChart adds a new area chart to a chart.
|
|
|
|
func (_fgdb Chart )AddArea3DChart ()Area3DChart {_dgb (_fgdb ._dfa .Chart );_abc :=_b .NewCT_PlotAreaChoice ();_fgdb ._dfa .Chart .PlotArea .Choice =append (_fgdb ._dfa .Chart .PlotArea .Choice ,_abc );_abc .Area3DChart =_b .NewCT_Area3DChart ();_gbd :=Area3DChart {_gd :_abc .Area3DChart };_gbd .InitializeDefaults ();return _gbd ;};func (_aebb LineChartSeries )InitializeDefaults (){_aebb .Properties ().LineProperties ().SetWidth (1*_f .Point );_aebb .Properties ().LineProperties ().SetSolidFill (_fgd .Black );_aebb .Properties ().LineProperties ().SetJoin (_db .LineJoinRound );_aebb .Marker ().SetSymbol (_b .ST_MarkerStyleNone );_aebb .Labels ().SetShowLegendKey (false );_aebb .Labels ().SetShowValue (false );_aebb .Labels ().SetShowPercent (false );_aebb .Labels ().SetShowCategoryName (false );_aebb .Labels ().SetShowSeriesName (false );_aebb .Labels ().SetShowLeaderLines (false );};func (_bcf DateAxis )SetCrosses (axis Axis ){_bcf ._fae .CrossAx .ValAttr =axis .AxisID ()};func MakeDataLabels (x *_b .CT_DLbls )DataLabels {return DataLabels {x }};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_cea Bar3DChart )InitializeDefaults (){_cea .SetDirection (_b .ST_BarDirCol )};
|
2017-09-05 20:20:00 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_dg BarChart )X ()*_b .CT_BarChart {return _dg ._cda };
|
2017-09-07 12:08:13 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetLabelReference is used to set the source data to a range of cells
|
|
|
|
// containing strings.
|
|
|
|
func (_gcc CategoryAxisDataSource )SetLabelReference (s string ){_gcc ._bda .Choice =_b .NewCT_AxDataSourceChoice ();_gcc ._bda .Choice .StrRef =_b .NewCT_StrRef ();_gcc ._bda .Choice .StrRef .F =s ;};
|
2017-09-07 12:08:13 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to an Doughnut chart.
|
|
|
|
func (_bbf DoughnutChart )AddSeries ()PieChartSeries {_aga :=_b .NewCT_PieSer ();_bbf ._gca .Ser =append (_bbf ._gca .Ser ,_aga );_aga .Idx .ValAttr =uint32 (len (_bbf ._gca .Ser )-1);_aga .Order .ValAttr =uint32 (len (_bbf ._gca .Ser )-1);_dge :=PieChartSeries {_aga };_dge .InitializeDefaults ();return _dge ;};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Bar3DChart is a 3D bar chart.
|
2021-09-22 16:41:01 +00:00
|
|
|
type Bar3DChart struct{chartBase ;_fga *_b .CT_Bar3DChart ;};
|
2017-09-06 17:02:21 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to a Bubble chart.
|
|
|
|
func (_aed BubbleChart )AddSeries ()BubbleChartSeries {_bf :=_aed .nextColor (len (_aed ._add .Ser ));_cf :=_b .NewCT_BubbleSer ();_aed ._add .Ser =append (_aed ._add .Ser ,_cf );_cf .Idx .ValAttr =uint32 (len (_aed ._add .Ser )-1);_cf .Order .ValAttr =uint32 (len (_aed ._add .Ser )-1);_cce :=BubbleChartSeries {_cf };_cce .InitializeDefaults ();_cce .Properties ().SetSolidFill (_bf );return _cce ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// RemoveTitle removes any existing title from the chart.
|
|
|
|
func (_dce Chart )RemoveTitle (){_dce ._dfa .Chart .Title =nil ;_dce ._dfa .Chart .AutoTitleDeleted =_b .NewCT_Boolean ();_dce ._dfa .Chart .AutoTitleDeleted .ValAttr =_g .Bool (true );};
|
2017-09-06 17:33:34 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_bdb RadarChart )X ()*_b .CT_RadarChart {return _bdb ._cac };
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// PieChart is a Pie chart.
|
|
|
|
type PieChart struct{chartBase ;_cefg *_b .CT_PieChart ;};func (_bdfa CategoryAxis )SetCrosses (axis Axis ){_bdfa ._ab .Choice =_b .NewEG_AxSharedChoice ();_bdfa ._ab .Choice .Crosses =_b .NewCT_Crosses ();_bdfa ._ab .Choice .Crosses .ValAttr =_b .ST_CrossesAutoZero ;_bdfa ._ab .CrossAx .ValAttr =axis .AxisID ();};
|
2017-09-06 17:33:34 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddAxis adds an axis to a line chart.
|
|
|
|
func (_aeb LineChart )AddAxis (axis Axis ){_dgd :=_b .NewCT_UnsignedInt ();_dgd .ValAttr =axis .AxisID ();_aeb ._ace .AxId =append (_aeb ._ace .AxId ,_dgd );};func (_ege ScatterChartSeries )CategoryAxis ()CategoryAxisDataSource {if _ege ._dcc .XVal ==nil {_ege ._dcc .XVal =_b .NewCT_AxDataSource ();};return MakeAxisDataSource (_ege ._dcc .XVal );};func (_ef BubbleChart )AddAxis (axis Axis ){_bce :=_b .NewCT_UnsignedInt ();_bce .ValAttr =axis .AxisID ();_ef ._add .AxId =append (_ef ._add .AxId ,_bce );};
|
|
|
|
|
|
|
|
// AddBarChart adds a new bar chart to a chart.
|
|
|
|
func (_abgd Chart )AddBarChart ()BarChart {_ggb :=_b .NewCT_PlotAreaChoice ();_abgd ._dfa .Chart .PlotArea .Choice =append (_abgd ._dfa .Chart .PlotArea .Choice ,_ggb );_ggb .BarChart =_b .NewCT_BarChart ();_ggb .BarChart .Grouping =_b .NewCT_BarGrouping ();_ggb .BarChart .Grouping .ValAttr =_b .ST_BarGroupingStandard ;_gab :=BarChart {_cda :_ggb .BarChart };_gab .InitializeDefaults ();return _gab ;};
|
2017-09-06 17:36:49 -04:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_bd AreaChart )X ()*_b .CT_AreaChart {return _bd ._ae };
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_cafd Pie3DChart )X ()*_b .CT_Pie3DChart {return _cafd ._dd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Axis is the interface implemented by different axes when assigning to a
|
|
|
|
// chart.
|
|
|
|
type Axis interface{AxisID ()uint32 ;};func (_fb DateAxis )SetMinorTickMark (m _b .ST_TickMark ){if m ==_b .ST_TickMarkUnset {_fb ._fae .MinorTickMark =nil ;}else {_fb ._fae .MinorTickMark =_b .NewCT_TickMark ();_fb ._fae .MinorTickMark .ValAttr =m ;};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Properties returns the line chart series shape properties.
|
|
|
|
func (_cfc SurfaceChartSeries )Properties ()_db .ShapeProperties {if _cfc ._ggag .SpPr ==nil {_cfc ._ggag .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_cfc ._ggag .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_bcb BubbleChart )X ()*_b .CT_BubbleChart {return _bcb ._add };func (_fgdd DataLabels )SetShowLegendKey (b bool ){_fgdd .ensureChoice ();_fgdd ._dadg .Choice .ShowLegendKey =_b .NewCT_Boolean ();_fgdd ._dadg .Choice .ShowLegendKey .ValAttr =_g .Bool (b );};func (_caac SurfaceChartSeries )InitializeDefaults (){_caac .Properties ().LineProperties ().SetWidth (1*_f .Point );_caac .Properties ().LineProperties ().SetSolidFill (_fgd .Black );_caac .Properties ().LineProperties ().SetJoin (_db .LineJoinRound );};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// BubbleChartSeries is a series to be used on a Bubble chart.
|
|
|
|
type BubbleChartSeries struct{_deb *_b .CT_BubbleSer };
|
2017-09-07 09:08:32 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetType sets the type the secone pie to either pie or bar
|
|
|
|
func (_bbeb PieOfPieChart )SetType (t _b .ST_OfPieType ){_bbeb ._dfce .OfPieType .ValAttr =t };
|
2017-09-07 09:45:34 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddValueAxis adds a value axis to the chart.
|
|
|
|
func (_gbf Chart )AddValueAxis ()ValueAxis {_bca :=_b .NewCT_ValAx ();if _gbf ._dfa .Chart .PlotArea .CChoice ==nil {_gbf ._dfa .Chart .PlotArea .CChoice =_b .NewCT_PlotAreaChoice1 ();};_bca .AxId =_b .NewCT_UnsignedInt ();_bca .AxId .ValAttr =0x7FFFFFFF&_fg .Uint32 ();_gbf ._dfa .Chart .PlotArea .CChoice .ValAx =append (_gbf ._dfa .Chart .PlotArea .CChoice .ValAx ,_bca );_bca .Delete =_b .NewCT_Boolean ();_bca .Delete .ValAttr =_g .Bool (false );_bca .Scaling =_b .NewCT_Scaling ();_bca .Scaling .Orientation =_b .NewCT_Orientation ();_bca .Scaling .Orientation .ValAttr =_b .ST_OrientationMinMax ;_bca .Choice =&_b .EG_AxSharedChoice {};_bca .Choice .Crosses =_b .NewCT_Crosses ();_bca .Choice .Crosses .ValAttr =_b .ST_CrossesAutoZero ;_bca .CrossBetween =_b .NewCT_CrossBetween ();_bca .CrossBetween .ValAttr =_b .ST_CrossBetweenBetween ;_dbb :=MakeValueAxis (_bca );_dbb .MajorGridLines ().Properties ().LineProperties ().SetSolidFill (_fgd .LightGray );_dbb .SetMajorTickMark (_b .ST_TickMarkOut );_dbb .SetMinorTickMark (_b .ST_TickMarkIn );_dbb .SetTickLabelPosition (_b .ST_TickLblPosNextTo );_dbb .Properties ().LineProperties ().SetSolidFill (_fgd .Black );_dbb .SetPosition (_b .ST_AxPosL );return _dbb ;};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddAxis adds an axis to a Scatter chart.
|
|
|
|
func (_bgfa ScatterChart )AddAxis (axis Axis ){_dbe :=_b .NewCT_UnsignedInt ();_dbe .ValAttr =axis .AxisID ();_bgfa ._cede .AxId =append (_bgfa ._cede .AxId ,_dbe );};func (_fff Chart )AddSeriesAxis ()SeriesAxis {_cfb :=_b .NewCT_SerAx ();if _fff ._dfa .Chart .PlotArea .CChoice ==nil {_fff ._dfa .Chart .PlotArea .CChoice =_b .NewCT_PlotAreaChoice1 ();};_cfb .AxId =_b .NewCT_UnsignedInt ();_cfb .AxId .ValAttr =0x7FFFFFFF&_fg .Uint32 ();_fff ._dfa .Chart .PlotArea .CChoice .SerAx =append (_fff ._dfa .Chart .PlotArea .CChoice .SerAx ,_cfb );_cfb .Delete =_b .NewCT_Boolean ();_cfb .Delete .ValAttr =_g .Bool (false );_gga :=MakeSeriesAxis (_cfb );_gga .InitializeDefaults ();return _gga ;};func (_gfd DataLabels )SetShowCategoryName (b bool ){_gfd .ensureChoice ();_gfd ._dadg .Choice .ShowCatName =_b .NewCT_Boolean ();_gfd ._dadg .Choice .ShowCatName .ValAttr =_g .Bool (b );};func MakeCategoryAxis (x *_b .CT_CatAx )CategoryAxis {return CategoryAxis {x }};func MakeMarker (x *_b .CT_Marker )Marker {return Marker {x }};func (_gfg SurfaceChart )InitializeDefaults (){_gfg ._agac .Wireframe =_b .NewCT_Boolean ();_gfg ._agac .Wireframe .ValAttr =_g .Bool (false );_gfg ._agac .BandFmts =_b .NewCT_BandFmts ();for _fefd :=0;_fefd < 15;_fefd ++{_bgcg :=_b .NewCT_BandFmt ();_bgcg .Idx .ValAttr =uint32 (_fefd );_bgcg .SpPr =_d .NewCT_ShapeProperties ();_eac :=_db .MakeShapeProperties (_bgcg .SpPr );_eac .SetSolidFill (_gfg .nextColor (_fefd ));_gfg ._agac .BandFmts .BandFmt =append (_gfg ._agac .BandFmts .BandFmt ,_bgcg );};};func (_eee DateAxis )Properties ()_db .ShapeProperties {if _eee ._fae .SpPr ==nil {_eee ._fae .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_eee ._fae .SpPr );};
|
2017-09-07 09:55:22 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetDirection changes the direction of the bar chart (bar or column).
|
|
|
|
func (_fc Bar3DChart )SetDirection (d _b .ST_BarDir ){_fc ._fga .BarDir .ValAttr =d };func (_bde Legend )InitializeDefaults (){_bde .SetPosition (_b .ST_LegendPosR );_bde .SetOverlay (false );_bde .Properties ().SetNoFill ();_bde .Properties ().LineProperties ().SetNoFill ();};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Properties returns the bar chart series shape properties.
|
|
|
|
func (_cfa RadarChartSeries )Properties ()_db .ShapeProperties {if _cfa ._egc .SpPr ==nil {_cfa ._egc .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_cfa ._egc .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetText sets the series text
|
|
|
|
func (_ede LineChartSeries )SetText (s string ){_ede ._fdd .Tx =_b .NewCT_SerTx ();_ede ._fdd .Tx .Choice .V =&s ;};func (_bba ScatterChartSeries )InitializeDefaults (){_bba .Properties ().LineProperties ().SetNoFill ();_bba .Marker ().SetSymbol (_b .ST_MarkerStyleAuto );_bba .Labels ().SetShowLegendKey (false );_bba .Labels ().SetShowValue (true );_bba .Labels ().SetShowPercent (false );_bba .Labels ().SetShowCategoryName (false );_bba .Labels ().SetShowSeriesName (false );_bba .Labels ().SetShowLeaderLines (false );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Chart is a generic chart.
|
|
|
|
type Chart struct{_dfa *_b .ChartSpace };
|
2017-09-07 09:27:41 -04:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_bfg Chart )X ()*_b .ChartSpace {return _bfg ._dfa };
|
|
|
|
|
|
|
|
// SetValues sets values directly on a source.
|
|
|
|
func (_bgf NumberDataSource )SetValues (v []float64 ){_bgf .ensureChoice ();_bgf ._bff .Choice .NumRef =nil ;_bgf ._bff .Choice .NumLit =_b .NewCT_NumData ();_bgf ._bff .Choice .NumLit .PtCount =_b .NewCT_UnsignedInt ();_bgf ._bff .Choice .NumLit .PtCount .ValAttr =uint32 (len (v ));for _fbc ,_adf :=range v {_bgf ._bff .Choice .NumLit .Pt =append (_bgf ._bff .Choice .NumLit .Pt ,&_b .CT_NumVal {IdxAttr :uint32 (_fbc ),V :_ad .Sprintf ("\u0025\u0067",_adf )});};};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_bab SurfaceChartSeries )X ()*_b .CT_SurfaceSer {return _bab ._ggag };
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_afd BubbleChartSeries )SetText (s string ){_afd ._deb .Tx =_b .NewCT_SerTx ();_afd ._deb .Tx .Choice .V =&s ;};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Properties returns the line chart series shape properties.
|
|
|
|
func (_eag ScatterChartSeries )Properties ()_db .ShapeProperties {if _eag ._dcc .SpPr ==nil {_eag ._dcc .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_eag ._dcc .SpPr );};type Line3DChart struct{chartBase ;_dab *_b .CT_Line3DChart ;};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_gad LineChart )X ()*_b .CT_LineChart {return _gad ._ace };func (_egf Title )RunProperties ()_db .RunProperties {if _egf ._agae .Tx ==nil {_egf .SetText ("");};if _egf ._agae .Tx .Choice .Rich .P [0].EG_TextRun [0].R .RPr ==nil {_egf ._agae .Tx .Choice .Rich .P [0].EG_TextRun [0].R .RPr =_d .NewCT_TextCharacterProperties ();};return _db .MakeRunProperties (_egf ._agae .Tx .Choice .Rich .P [0].EG_TextRun [0].R .RPr );};type ValueAxis struct{_decc *_b .CT_ValAx };
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetOrder sets the order of the series
|
|
|
|
func (_ecbe ScatterChartSeries )SetOrder (idx uint32 ){_ecbe ._dcc .Order .ValAttr =idx };
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetValues is used to set the source data to a set of values.
|
|
|
|
func (_fgf CategoryAxisDataSource )SetValues (v []string ){_fgf ._bda .Choice =_b .NewCT_AxDataSourceChoice ();_fgf ._bda .Choice .StrLit =_b .NewCT_StrData ();_fgf ._bda .Choice .StrLit .PtCount =_b .NewCT_UnsignedInt ();_fgf ._bda .Choice .StrLit .PtCount .ValAttr =uint32 (len (v ));for _cdf ,_aca :=range v {_fgf ._bda .Choice .StrLit .Pt =append (_fgf ._bda .Choice .StrLit .Pt ,&_b .CT_StrVal {IdxAttr :uint32 (_cdf ),V :_aca });};};func (_fec chartBase )nextColor (_fccg int )_fgd .Color {return _caf [_fccg %len (_caf )]};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// StockChart is a 2D Stock chart.
|
|
|
|
type StockChart struct{chartBase ;_eaba *_b .CT_StockChart ;};func (_aba LineChartSeries )SetSmooth (b bool ){_aba ._fdd .Smooth =_b .NewCT_Boolean ();_aba ._fdd .Smooth .ValAttr =&b ;};
|
2017-09-07 09:27:41 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// RadarChart is an Radar chart that has a shaded Radar underneath a curve.
|
|
|
|
type RadarChart struct{chartBase ;_cac *_b .CT_RadarChart ;};func (_df AreaChart )AddAxis (axis Axis ){_cb :=_b .NewCT_UnsignedInt ();_cb .ValAttr =axis .AxisID ();_df ._ae .AxId =append (_df ._ae .AxId ,_cb );};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults initializes an Radar series to the default values.
|
|
|
|
func (_aedc RadarChartSeries )InitializeDefaults (){};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddBar3DChart adds a new 3D bar chart to a chart.
|
|
|
|
func (_gcd Chart )AddBar3DChart ()Bar3DChart {_dgb (_gcd ._dfa .Chart );_cgf :=_b .NewCT_PlotAreaChoice ();_gcd ._dfa .Chart .PlotArea .Choice =append (_gcd ._dfa .Chart .PlotArea .Choice ,_cgf );_cgf .Bar3DChart =_b .NewCT_Bar3DChart ();_cgf .Bar3DChart .Grouping =_b .NewCT_BarGrouping ();_cgf .Bar3DChart .Grouping .ValAttr =_b .ST_BarGroupingStandard ;_gcf :=Bar3DChart {_fga :_cgf .Bar3DChart };_gcf .InitializeDefaults ();return _gcf ;};
|
2017-09-07 10:54:54 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to an area chart.
|
|
|
|
func (_fd Area3DChart )AddSeries ()AreaChartSeries {_dca :=_fd .nextColor (len (_fd ._gd .Ser ));_fe :=_b .NewCT_AreaSer ();_fd ._gd .Ser =append (_fd ._gd .Ser ,_fe );_fe .Idx .ValAttr =uint32 (len (_fd ._gd .Ser )-1);_fe .Order .ValAttr =uint32 (len (_fd ._gd .Ser )-1);_ga :=AreaChartSeries {_fe };_ga .InitializeDefaults ();_ga .Properties ().SetSolidFill (_dca );return _ga ;};
|
2017-09-07 10:54:54 -04:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddAreaChart adds a new area chart to a chart.
|
|
|
|
func (_ecf Chart )AddAreaChart ()AreaChart {_bgc :=_b .NewCT_PlotAreaChoice ();_ecf ._dfa .Chart .PlotArea .Choice =append (_ecf ._dfa .Chart .PlotArea .Choice ,_bgc );_bgc .AreaChart =_b .NewCT_AreaChart ();_cbe :=AreaChart {_ae :_bgc .AreaChart };_cbe .InitializeDefaults ();return _cbe ;};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_efed RadarChartSeries )CategoryAxis ()CategoryAxisDataSource {if _efed ._egc .Cat ==nil {_efed ._egc .Cat =_b .NewCT_AxDataSource ();};return MakeAxisDataSource (_efed ._egc .Cat );};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_cdc PieChartSeries )CategoryAxis ()CategoryAxisDataSource {if _cdc ._cgb .Cat ==nil {_cdc ._cgb .Cat =_b .NewCT_AxDataSource ();};return MakeAxisDataSource (_cdc ._cgb .Cat );};func (_acbc DataLabels )SetShowValue (b bool ){_acbc .ensureChoice ();_acbc ._dadg .Choice .ShowVal =_b .NewCT_Boolean ();_acbc ._dadg .Choice .ShowVal .ValAttr =_g .Bool (b );};type GridLines struct{_eeb *_b .CT_ChartLines };
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddScatterChart adds a scatter (X/Y) chart.
|
|
|
|
func (_ecb Chart )AddScatterChart ()ScatterChart {_feff :=_b .NewCT_PlotAreaChoice ();_ecb ._dfa .Chart .PlotArea .Choice =append (_ecb ._dfa .Chart .PlotArea .Choice ,_feff );_feff .ScatterChart =_b .NewCT_ScatterChart ();_ced :=ScatterChart {_cede :_feff .ScatterChart };_ced .InitializeDefaults ();return _ced ;};func (_gea ValueAxis )Properties ()_db .ShapeProperties {if _gea ._decc .SpPr ==nil {_gea ._decc .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_gea ._decc .SpPr );};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to an area chart.
|
|
|
|
func (_aa AreaChart )AddSeries ()AreaChartSeries {_ff :=_aa .nextColor (len (_aa ._ae .Ser ));_c :=_b .NewCT_AreaSer ();_aa ._ae .Ser =append (_aa ._ae .Ser ,_c );_c .Idx .ValAttr =uint32 (len (_aa ._ae .Ser )-1);_c .Order .ValAttr =uint32 (len (_aa ._ae .Ser )-1);_ge :=AreaChartSeries {_c };_ge .InitializeDefaults ();_ge .Properties ().SetSolidFill (_ff );return _ge ;};type LineChart struct{chartBase ;_ace *_b .CT_LineChart ;};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_gde SeriesAxis )X ()*_b .CT_SerAx {return _gde ._bbd };
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_da AreaChartSeries )X ()*_b .CT_AreaSer {return _da ._ged };
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddCategoryAxis adds a category axis.
|
|
|
|
func (_aac Chart )AddCategoryAxis ()CategoryAxis {_bfc :=_b .NewCT_CatAx ();if _aac ._dfa .Chart .PlotArea .CChoice ==nil {_aac ._dfa .Chart .PlotArea .CChoice =_b .NewCT_PlotAreaChoice1 ();};_bfc .AxId =_b .NewCT_UnsignedInt ();_bfc .AxId .ValAttr =0x7FFFFFFF&_fg .Uint32 ();_aac ._dfa .Chart .PlotArea .CChoice .CatAx =append (_aac ._dfa .Chart .PlotArea .CChoice .CatAx ,_bfc );_bfc .Auto =_b .NewCT_Boolean ();_bfc .Auto .ValAttr =_g .Bool (true );_bfc .Delete =_b .NewCT_Boolean ();_bfc .Delete .ValAttr =_g .Bool (false );_cbc :=MakeCategoryAxis (_bfc );_cbc .InitializeDefaults ();return _cbc ;};func (_afa ValueAxis )SetMinorTickMark (m _b .ST_TickMark ){if m ==_b .ST_TickMarkUnset {_afa ._decc .MinorTickMark =nil ;}else {_afa ._decc .MinorTickMark =_b .NewCT_TickMark ();_afa ._decc .MinorTickMark .ValAttr =m ;};};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_aebc RadarChartSeries )Values ()NumberDataSource {if _aebc ._egc .Val ==nil {_aebc ._egc .Val =_b .NewCT_NumDataSource ();};return MakeNumberDataSource (_aebc ._egc .Val );};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_cef BubbleChartSeries )Values ()NumberDataSource {if _cef ._deb .YVal ==nil {_cef ._deb .YVal =_b .NewCT_NumDataSource ();};return MakeNumberDataSource (_cef ._deb .YVal );};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetText sets the series text
|
|
|
|
func (_fgebe ScatterChartSeries )SetText (s string ){_fgebe ._dcc .Tx =_b .NewCT_SerTx ();_fgebe ._dcc .Tx .Choice .V =&s ;};
|
|
|
|
|
|
|
|
// InitializeDefaults the Stock chart to its defaults
|
|
|
|
func (_daf StockChart )InitializeDefaults (){_daf ._eaba .HiLowLines =_b .NewCT_ChartLines ();_daf ._eaba .UpDownBars =_b .NewCT_UpDownBars ();_daf ._eaba .UpDownBars .GapWidth =_b .NewCT_GapAmount ();_daf ._eaba .UpDownBars .GapWidth .ValAttr =&_b .ST_GapAmount {};_daf ._eaba .UpDownBars .GapWidth .ValAttr .ST_GapAmountUShort =_g .Uint16 (150);_daf ._eaba .UpDownBars .UpBars =_b .NewCT_UpDownBar ();_daf ._eaba .UpDownBars .DownBars =_b .NewCT_UpDownBar ();};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// CreateEmptyNumberCache creates an empty number cache, which is used sometimes
|
|
|
|
// to increase file format compatibility. It should actually contain the
|
|
|
|
// computed cell data, but just creating an empty one is good enough.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_aff NumberDataSource )CreateEmptyNumberCache (){_aff .ensureChoice ();if _aff ._bff .Choice .NumRef ==nil {_aff ._bff .Choice .NumRef =_b .NewCT_NumRef ();};_aff ._bff .Choice .NumLit =nil ;_aff ._bff .Choice .NumRef .NumCache =_b .NewCT_NumData ();_aff ._bff .Choice .NumRef .NumCache .PtCount =_b .NewCT_UnsignedInt ();_aff ._bff .Choice .NumRef .NumCache .PtCount .ValAttr =0;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetDirection changes the direction of the bar chart (bar or column).
|
|
|
|
func (_ceb BarChart )SetDirection (d _b .ST_BarDir ){_ceb ._cda .BarDir .ValAttr =d };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// BarChart is a 2D bar chart.
|
|
|
|
type BarChart struct{chartBase ;_cda *_b .CT_BarChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to a Surface chart.
|
|
|
|
func (_efd SurfaceChart )AddSeries ()SurfaceChartSeries {_cafdf :=_efd .nextColor (len (_efd ._agac .Ser ));_cgd :=_b .NewCT_SurfaceSer ();_efd ._agac .Ser =append (_efd ._agac .Ser ,_cgd );_cgd .Idx .ValAttr =uint32 (len (_efd ._agac .Ser )-1);_cgd .Order .ValAttr =uint32 (len (_efd ._agac .Ser )-1);_bfd :=SurfaceChartSeries {_cgd };_bfd .InitializeDefaults ();_bfd .Properties ().LineProperties ().SetSolidFill (_cafdf );return _bfd ;};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SurfaceChart is a 3D surface chart, viewed from the top-down.
|
|
|
|
type SurfaceChart struct{chartBase ;_agac *_b .CT_SurfaceChart ;};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// ScatterChartSeries is the data series for a scatter chart.
|
|
|
|
type ScatterChartSeries struct{_dcc *_b .CT_ScatterSer };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-07-30 17:03:26 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_fag DoughnutChart )X ()*_b .CT_DoughnutChart {return _fag ._gca };func (_fdb nullAxis )AxisID ()uint32 {return 0};func (_gagg Title )ParagraphProperties ()_db .ParagraphProperties {if _gagg ._agae .Tx ==nil {_gagg .SetText ("");};if _gagg ._agae .Tx .Choice .Rich .P [0].PPr ==nil {_gagg ._agae .Tx .Choice .Rich .P [0].PPr =_d .NewCT_TextParagraphProperties ();};return _db .MakeParagraphProperties (_gagg ._agae .Tx .Choice .Rich .P [0].PPr );};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddAxis adds an axis to a Surface chart.
|
|
|
|
func (_adb Surface3DChart )AddAxis (axis Axis ){_afda :=_b .NewCT_UnsignedInt ();_afda .ValAttr =axis .AxisID ();_adb ._cec .AxId =append (_adb ._cec .AxId ,_afda );};func (_aabc StockChart )AddAxis (axis Axis ){_dcg :=_b .NewCT_UnsignedInt ();_dcg .ValAttr =axis .AxisID ();_aabc ._eaba .AxId =append (_aabc ._eaba .AxId ,_dcg );};func (_dccc ValueAxis )SetCrosses (axis Axis ){_dccc ._decc .CrossAx .ValAttr =axis .AxisID ()};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Marker returns the marker properties.
|
|
|
|
func (_fbf LineChartSeries )Marker ()Marker {if _fbf ._fdd .Marker ==nil {_fbf ._fdd .Marker =_b .NewCT_Marker ();};return MakeMarker (_fbf ._fdd .Marker );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Index returns the index of the series
|
|
|
|
func (_caa LineChartSeries )Index ()uint32 {return _caa ._fdd .Idx .ValAttr };func (_afbf ScatterChart )InitializeDefaults (){_afbf ._cede .ScatterStyle .ValAttr =_b .ST_ScatterStyleMarker ;};func (_gba ScatterChartSeries )Values ()NumberDataSource {if _gba ._dcc .YVal ==nil {_gba ._dcc .YVal =_b .NewCT_NumDataSource ();};return MakeNumberDataSource (_gba ._dcc .YVal );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to an Pie3D chart.
|
|
|
|
func (_ecbf Pie3DChart )AddSeries ()PieChartSeries {_bec :=_b .NewCT_PieSer ();_ecbf ._dd .Ser =append (_ecbf ._dd .Ser ,_bec );_bec .Idx .ValAttr =uint32 (len (_ecbf ._dd .Ser )-1);_bec .Order .ValAttr =uint32 (len (_ecbf ._dd .Ser )-1);_gddb :=PieChartSeries {_bec };_gddb .InitializeDefaults ();return _gddb ;};func (_e Area3DChart )AddAxis (axis Axis ){_bg :=_b .NewCT_UnsignedInt ();_bg .ValAttr =axis .AxisID ();_e ._gd .AxId =append (_e ._gd .AxId ,_bg );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_cab ValueAxis )X ()*_b .CT_ValAx {return _cab ._decc };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_cfe PieOfPieChart )X ()*_b .CT_OfPieChart {return _cfe ._dfce };func (_cde Bar3DChart )AddAxis (axis Axis ){_de :=_b .NewCT_UnsignedInt ();_de .ValAttr =axis .AxisID ();_cde ._fga .AxId =append (_cde ._fga .AxId ,_de );};func (_agg CategoryAxis )InitializeDefaults (){_agg .SetPosition (_b .ST_AxPosB );_agg .SetMajorTickMark (_b .ST_TickMarkOut );_agg .SetMinorTickMark (_b .ST_TickMarkIn );_agg .SetTickLabelPosition (_b .ST_TickLblPosNextTo );_agg .MajorGridLines ().Properties ().LineProperties ().SetSolidFill (_fgd .LightGray );_agg .Properties ().LineProperties ().SetSolidFill (_fgd .Black );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetIndex sets the index of the series
|
|
|
|
func (_ffe LineChartSeries )SetIndex (idx uint32 ){_ffe ._fdd .Idx .ValAttr =idx };func (_bagb LineChartSeries )Values ()NumberDataSource {if _bagb ._fdd .Val ==nil {_bagb ._fdd .Val =_b .NewCT_NumDataSource ();};return MakeNumberDataSource (_bagb ._fdd .Val );};type NumberDataSource struct{_bff *_b .CT_NumDataSource };
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddPieChart adds a new pie chart to a chart.
|
|
|
|
func (_bea Chart )AddPieChart ()PieChart {_dgf :=_b .NewCT_PlotAreaChoice ();_bea ._dfa .Chart .PlotArea .Choice =append (_bea ._dfa .Chart .PlotArea .Choice ,_dgf );_dgf .PieChart =_b .NewCT_PieChart ();_gagb :=PieChart {_cefg :_dgf .PieChart };_gagb .InitializeDefaults ();return _gagb ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_gbeb RadarChartSeries )SetText (s string ){_gbeb ._egc .Tx =_b .NewCT_SerTx ();_gbeb ._egc .Tx .Choice .V =&s ;};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_fgc StockChart )X ()*_b .CT_StockChart {return _fgc ._eaba };
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Properties returns the line chart series shape properties.
|
|
|
|
func (_gfa LineChartSeries )Properties ()_db .ShapeProperties {if _gfa ._fdd .SpPr ==nil {_gfa ._fdd .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_gfa ._fdd .SpPr );};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetText sets the series text
|
|
|
|
func (_fafa SurfaceChartSeries )SetText (s string ){_fafa ._ggag .Tx =_b .NewCT_SerTx ();_fafa ._ggag .Tx .Choice .V =&s ;};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetExplosion sets the value that the segements of the pie are 'exploded' by
|
|
|
|
func (_dfca PieChartSeries )SetExplosion (v uint32 ){_dfca ._cgb .Explosion =_b .NewCT_UnsignedInt ();_dfca ._cgb .Explosion .ValAttr =v ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Labels returns the data label properties.
|
|
|
|
func (_dgc ScatterChartSeries )Labels ()DataLabels {if _dgc ._dcc .DLbls ==nil {_dgc ._dcc .DLbls =_b .NewCT_DLbls ();};return MakeDataLabels (_dgc ._dcc .DLbls );};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetDisplayBlanksAs controls how missing values are displayed.
|
|
|
|
func (_eec Chart )SetDisplayBlanksAs (v _b .ST_DispBlanksAs ){_eec ._dfa .Chart .DispBlanksAs =_b .NewCT_DispBlanksAs ();_eec ._dfa .Chart .DispBlanksAs .ValAttr =v ;};func (_dbf ScatterChartSeries )SetSmooth (b bool ){_dbf ._dcc .Smooth =_b .NewCT_Boolean ();_dbf ._dcc .Smooth .ValAttr =&b ;};func (_abb Legend )SetPosition (p _b .ST_LegendPos ){if p ==_b .ST_LegendPosUnset {_abb ._dbcb .LegendPos =nil ;}else {_abb ._dbcb .LegendPos =_b .NewCT_LegendPos ();_abb ._dbcb .LegendPos .ValAttr =p ;};};func (_cbab Legend )SetOverlay (b bool ){_cbab ._dbcb .Overlay =_b .NewCT_Boolean ();_cbab ._dbcb .Overlay .ValAttr =_g .Bool (b );};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_cd AreaChartSeries )Values ()NumberDataSource {if _cd ._ged .Val ==nil {_cd ._ged .Val =_b .NewCT_NumDataSource ();};return MakeNumberDataSource (_cd ._ged .Val );};func (_cdb ValueAxis )SetMajorTickMark (m _b .ST_TickMark ){if m ==_b .ST_TickMarkUnset {_cdb ._decc .MajorTickMark =nil ;}else {_cdb ._decc .MajorTickMark =_b .NewCT_TickMark ();_cdb ._decc .MajorTickMark .ValAttr =m ;};};type SeriesAxis struct{_bbd *_b .CT_SerAx };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_cgbf Surface3DChart )X ()*_b .CT_Surface3DChart {return _cgbf ._cec };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddRadarChart adds a new radar chart to a chart.
|
|
|
|
func (_dad Chart )AddRadarChart ()RadarChart {_bag :=_b .NewCT_PlotAreaChoice ();_dad ._dfa .Chart .PlotArea .Choice =append (_dad ._dfa .Chart .PlotArea .Choice ,_bag );_bag .RadarChart =_b .NewCT_RadarChart ();_ffb :=RadarChart {_cac :_bag .RadarChart };_ffb .InitializeDefaults ();return _ffb ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetIndex sets the index of the series
|
|
|
|
func (_gcff ScatterChartSeries )SetIndex (idx uint32 ){_gcff ._dcc .Idx .ValAttr =idx };
|
|
|
|
|
|
|
|
// SetText sets the series text.
|
|
|
|
func (_bc BarChartSeries )SetText (s string ){_bc ._dbgb .Tx =_b .NewCT_SerTx ();_bc ._dbgb .Tx .Choice .V =&s ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// AddBubbleChart adds a new bubble chart.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_dac Chart )AddBubbleChart ()BubbleChart {_cba :=_b .NewCT_PlotAreaChoice ();_dac ._dfa .Chart .PlotArea .Choice =append (_dac ._dfa .Chart .PlotArea .Choice ,_cba );_cba .BubbleChart =_b .NewCT_BubbleChart ();_bae :=BubbleChart {_add :_cba .BubbleChart };_bae .InitializeDefaults ();return _bae ;};func (_cgff SeriesAxis )AxisID ()uint32 {return _cgff ._bbd .AxId .ValAttr };func (_af BarChart )AddAxis (axis Axis ){_afc :=_b .NewCT_UnsignedInt ();_afc .ValAttr =axis .AxisID ();_af ._cda .AxId =append (_af ._cda .AxId ,_afc );};func MakeNumberDataSource (x *_b .CT_NumDataSource )NumberDataSource {return NumberDataSource {x }};func (_fedc SurfaceChartSeries )Values ()NumberDataSource {if _fedc ._ggag .Val ==nil {_fedc ._ggag .Val =_b .NewCT_NumDataSource ();};_afbfe :=MakeNumberDataSource (_fedc ._ggag .Val );_afbfe .CreateEmptyNumberCache ();return _afbfe ;};
|
|
|
|
|
|
|
|
// AddSeries adds a default series to a Scatter chart.
|
|
|
|
func (_bcee ScatterChart )AddSeries ()ScatterChartSeries {_agbe :=_bcee .nextColor (len (_bcee ._cede .Ser ));_fgg :=_b .NewCT_ScatterSer ();_bcee ._cede .Ser =append (_bcee ._cede .Ser ,_fgg );_fgg .Idx .ValAttr =uint32 (len (_bcee ._cede .Ser )-1);_fgg .Order .ValAttr =uint32 (len (_bcee ._cede .Ser )-1);_aef :=ScatterChartSeries {_fgg };_aef .InitializeDefaults ();_aef .Marker ().Properties ().LineProperties ().SetSolidFill (_agbe );_aef .Marker ().Properties ().SetSolidFill (_agbe );return _aef ;};type nullAxis byte ;func (_fefe GridLines )Properties ()_db .ShapeProperties {if _fefe ._eeb .SpPr ==nil {_fefe ._eeb .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_fefe ._eeb .SpPr );};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_ffed PieChartSeries )X ()*_b .CT_PieSer {return _ffed ._cgb };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_gce Line3DChart )X ()*_b .CT_Line3DChart {return _gce ._dab };
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddAxis adds an axis to a Surface chart.
|
|
|
|
func (_agd SurfaceChart )AddAxis (axis Axis ){_dabb :=_b .NewCT_UnsignedInt ();_dabb .ValAttr =axis .AxisID ();_agd ._agac .AxId =append (_agd ._agac .AxId ,_dabb );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults initializes an area series to the default values.
|
|
|
|
func (_ac AreaChartSeries )InitializeDefaults (){};func (_faf DataLabels )SetShowLeaderLines (b bool ){_faf .ensureChoice ();_faf ._dadg .Choice .ShowLeaderLines =_b .NewCT_Boolean ();_faf ._dadg .Choice .ShowLeaderLines .ValAttr =_g .Bool (b );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults the Bubble chart to its defaults
|
|
|
|
func (_gc BubbleChart )InitializeDefaults (){};func (_caee DateAxis )SetTickLabelPosition (p _b .ST_TickLblPos ){if p ==_b .ST_TickLblPosUnset {_caee ._fae .TickLblPos =nil ;}else {_caee ._fae .TickLblPos =_b .NewCT_TickLblPos ();_caee ._fae .TickLblPos .ValAttr =p ;};};func (_ag CategoryAxis )Properties ()_db .ShapeProperties {if _ag ._ab .SpPr ==nil {_ag ._ab .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_ag ._ab .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// LineChartSeries is the data series for a line chart.
|
|
|
|
type LineChartSeries struct{_fdd *_b .CT_LineSer };func (_fdcf ValueAxis )SetTickLabelPosition (p _b .ST_TickLblPos ){if p ==_b .ST_TickLblPosUnset {_fdcf ._decc .TickLblPos =nil ;}else {_fdcf ._decc .TickLblPos =_b .NewCT_TickLblPos ();_fdcf ._decc .TickLblPos .ValAttr =p ;};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddPieOfPieChart adds a new pie chart to a chart.
|
|
|
|
func (_cee Chart )AddPieOfPieChart ()PieOfPieChart {_aab :=_b .NewCT_PlotAreaChoice ();_cee ._dfa .Chart .PlotArea .Choice =append (_cee ._dfa .Chart .PlotArea .Choice ,_aab );_aab .OfPieChart =_b .NewCT_OfPieChart ();_fcb :=PieOfPieChart {_dfce :_aab .OfPieChart };_fcb .InitializeDefaults ();return _fcb ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddAxis adds an axis to a line chart.
|
|
|
|
func (_cgca Line3DChart )AddAxis (axis Axis ){_eda :=_b .NewCT_UnsignedInt ();_eda .ValAttr =axis .AxisID ();_cgca ._dab .AxId =append (_cgca ._dab .AxId ,_eda );};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_cgc BarChartSeries )CategoryAxis ()CategoryAxisDataSource {if _cgc ._dbgb .Cat ==nil {_cgc ._dbgb .Cat =_b .NewCT_AxDataSource ();};return MakeAxisDataSource (_cgc ._dbgb .Cat );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddLegend adds a legend to a chart, replacing any existing legend.
|
|
|
|
func (_gfc Chart )AddLegend ()Legend {_gfc ._dfa .Chart .Legend =_b .NewCT_Legend ();_bcba :=MakeLegend (_gfc ._dfa .Chart .Legend );_bcba .InitializeDefaults ();return _bcba ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_feb AreaChartSeries )CategoryAxis ()CategoryAxisDataSource {if _feb ._ged .Cat ==nil {_feb ._ged .Cat =_b .NewCT_AxDataSource ();};return MakeAxisDataSource (_feb ._ged .Cat );};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to a line chart.
|
|
|
|
func (_gdd LineChart )AddSeries ()LineChartSeries {_fee :=_gdd .nextColor (len (_gdd ._ace .Ser ));_fab :=_b .NewCT_LineSer ();_gdd ._ace .Ser =append (_gdd ._ace .Ser ,_fab );_fab .Idx .ValAttr =uint32 (len (_gdd ._ace .Ser )-1);_fab .Order .ValAttr =uint32 (len (_gdd ._ace .Ser )-1);_gfca :=LineChartSeries {_fab };_gfca .InitializeDefaults ();_gfca .Properties ().LineProperties ().SetSolidFill (_fee );return _gfca ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults initializes an Pie series to the default values.
|
|
|
|
func (_ebc PieChartSeries )InitializeDefaults (){};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Index returns the index of the series
|
|
|
|
func (_dae ScatterChartSeries )Index ()uint32 {return _dae ._dcc .Idx .ValAttr };func _dgb (_fgeb *_b .CT_Chart ){_fgeb .View3D =_b .NewCT_View3D ();_fgeb .View3D .RotX =_b .NewCT_RotX ();_fgeb .View3D .RotX .ValAttr =_g .Int8 (15);_fgeb .View3D .RotY =_b .NewCT_RotY ();_fgeb .View3D .RotY .ValAttr =_g .Uint16 (20);_fgeb .View3D .RAngAx =_b .NewCT_Boolean ();_fgeb .View3D .RAngAx .ValAttr =_g .Bool (false );_fgeb .Floor =_b .NewCT_Surface ();_fgeb .Floor .Thickness =_b .NewCT_Thickness ();_fgeb .Floor .Thickness .ValAttr .Uint32 =_g .Uint32 (0);_fgeb .SideWall =_b .NewCT_Surface ();_fgeb .SideWall .Thickness =_b .NewCT_Thickness ();_fgeb .SideWall .Thickness .ValAttr .Uint32 =_g .Uint32 (0);_fgeb .BackWall =_b .NewCT_Surface ();_fgeb .BackWall .Thickness =_b .NewCT_Thickness ();_fgeb .BackWall .Thickness .ValAttr .Uint32 =_g .Uint32 (0);};func (_dbgc LineChartSeries )CategoryAxis ()CategoryAxisDataSource {if _dbgc ._fdd .Cat ==nil {_dbgc ._fdd .Cat =_b .NewCT_AxDataSource ();};return MakeAxisDataSource (_dbgc ._fdd .Cat );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// BarChartSeries is a series to be used on a bar chart.
|
|
|
|
type BarChartSeries struct{_dbgb *_b .CT_BarSer };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddPie3DChart adds a new pie chart to a chart.
|
|
|
|
func (_fa Chart )AddPie3DChart ()Pie3DChart {_dgb (_fa ._dfa .Chart );_ed :=_b .NewCT_PlotAreaChoice ();_fa ._dfa .Chart .PlotArea .Choice =append (_fa ._dfa .Chart .PlotArea .Choice ,_ed );_ed .Pie3DChart =_b .NewCT_Pie3DChart ();_dgfa :=Pie3DChart {_dd :_ed .Pie3DChart };_dgfa .InitializeDefaults ();return _dgfa ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_fdg RadarChart )InitializeDefaults (){_fdg ._cac .RadarStyle .ValAttr =_b .ST_RadarStyleMarker };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_gcaa Title )X ()*_b .CT_Title {return _gcaa ._agae };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// AddSeries adds a default series to an Pie chart.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_gef PieChart )AddSeries ()PieChartSeries {_cfd :=_b .NewCT_PieSer ();_gef ._cefg .Ser =append (_gef ._cefg .Ser ,_cfd );_cfd .Idx .ValAttr =uint32 (len (_gef ._cefg .Ser )-1);_cfd .Order .ValAttr =uint32 (len (_gef ._cefg .Ser )-1);_bbb :=PieChartSeries {_cfd };_bbb .InitializeDefaults ();return _bbb ;};func (_ded Title )InitializeDefaults (){_ded .SetText ("\u0054\u0069\u0074l\u0065");_ded .RunProperties ().SetSize (16*_f .Point );_ded .RunProperties ().SetSolidFill (_fgd .Black );_ded .RunProperties ().SetFont ("\u0043\u0061\u006c\u0069\u0062\u0020\u0072\u0069");_ded .RunProperties ().SetBold (false );};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetOrder sets the order of the series
|
|
|
|
func (_feda SurfaceChartSeries )SetOrder (idx uint32 ){_feda ._ggag .Order .ValAttr =idx };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to a bar chart.
|
|
|
|
func (_acb Bar3DChart )AddSeries ()BarChartSeries {_ec :=_acb .nextColor (len (_acb ._fga .Ser ));_ea :=_b .NewCT_BarSer ();_acb ._fga .Ser =append (_acb ._fga .Ser ,_ea );_ea .Idx .ValAttr =uint32 (len (_acb ._fga .Ser )-1);_ea .Order .ValAttr =uint32 (len (_acb ._fga .Ser )-1);_ca :=BarChartSeries {_ea };_ca .InitializeDefaults ();_ca .Properties ().SetSolidFill (_ec );return _ca ;};func (_fecc Surface3DChart )InitializeDefaults (){_fecc ._cec .Wireframe =_b .NewCT_Boolean ();_fecc ._cec .Wireframe .ValAttr =_g .Bool (false );_fecc ._cec .BandFmts =_b .NewCT_BandFmts ();for _cfag :=0;_cfag < 15;_cfag ++{_aabf :=_b .NewCT_BandFmt ();_aabf .Idx .ValAttr =uint32 (_cfag );_aabf .SpPr =_d .NewCT_ShapeProperties ();_cgbg :=_db .MakeShapeProperties (_aabf .SpPr );_cgbg .SetSolidFill (_fecc .nextColor (_cfag ));_fecc ._cec .BandFmts .BandFmt =append (_fecc ._cec .BandFmts .BandFmt ,_aabf );};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_gae LineChartSeries )X ()*_b .CT_LineSer {return _gae ._fdd };
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_eff GridLines )X ()*_b .CT_ChartLines {return _eff ._eeb };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_eabb PieChart )InitializeDefaults (){_eabb ._cefg .VaryColors =_b .NewCT_Boolean ();_eabb ._cefg .VaryColors .ValAttr =_g .Bool (true );};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddDateAxis adds a value axis to the chart.
|
|
|
|
func (_acbb Chart )AddDateAxis ()DateAxis {_fgb :=_b .NewCT_DateAx ();if _acbb ._dfa .Chart .PlotArea .CChoice ==nil {_acbb ._dfa .Chart .PlotArea .CChoice =_b .NewCT_PlotAreaChoice1 ();};_fgb .AxId =_b .NewCT_UnsignedInt ();_fgb .AxId .ValAttr =0x7FFFFFFF&_fg .Uint32 ();_acbb ._dfa .Chart .PlotArea .CChoice .DateAx =append (_acbb ._dfa .Chart .PlotArea .CChoice .DateAx ,_fgb );_fgb .Delete =_b .NewCT_Boolean ();_fgb .Delete .ValAttr =_g .Bool (false );_fgb .Scaling =_b .NewCT_Scaling ();_fgb .Scaling .Orientation =_b .NewCT_Orientation ();_fgb .Scaling .Orientation .ValAttr =_b .ST_OrientationMinMax ;_fgb .Choice =&_b .EG_AxSharedChoice {};_fgb .Choice .Crosses =_b .NewCT_Crosses ();_fgb .Choice .Crosses .ValAttr =_b .ST_CrossesAutoZero ;_ggcd :=DateAxis {_fgb };_ggcd .MajorGridLines ().Properties ().LineProperties ().SetSolidFill (_fgd .LightGray );_ggcd .SetMajorTickMark (_b .ST_TickMarkOut );_ggcd .SetMinorTickMark (_b .ST_TickMarkIn );_ggcd .SetTickLabelPosition (_b .ST_TickLblPosNextTo );_ggcd .Properties ().LineProperties ().SetSolidFill (_fgd .Black );_ggcd .SetPosition (_b .ST_AxPosL );return _ggcd ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to a Stock chart.
|
|
|
|
func (_cbdb StockChart )AddSeries ()LineChartSeries {_feg :=_b .NewCT_LineSer ();_cbdb ._eaba .Ser =append (_cbdb ._eaba .Ser ,_feg );_feg .Idx .ValAttr =uint32 (len (_cbdb ._eaba .Ser )-1);_feg .Order .ValAttr =uint32 (len (_cbdb ._eaba .Ser )-1);_fgebef :=LineChartSeries {_feg };_fgebef .Values ().CreateEmptyNumberCache ();_fgebef .Properties ().LineProperties ().SetNoFill ();return _fgebef ;};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Properties returns the Bubble chart series shape properties.
|
|
|
|
func (_ccg BubbleChartSeries )Properties ()_db .ShapeProperties {if _ccg ._deb .SpPr ==nil {_ccg ._deb .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_ccg ._deb .SpPr );};func (_fddc ValueAxis )MajorGridLines ()GridLines {if _fddc ._decc .MajorGridlines ==nil {_fddc ._decc .MajorGridlines =_b .NewCT_ChartLines ();};return GridLines {_fddc ._decc .MajorGridlines };};func (_aaga NumberDataSource )ensureChoice (){if _aaga ._bff .Choice ==nil {_aaga ._bff .Choice =_b .NewCT_NumDataSourceChoice ();};};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// CategoryAxisDataSource specifies the data for an axis. It's commonly used with
|
|
|
|
// SetReference to set the axis data to a range of cells.
|
|
|
|
type CategoryAxisDataSource struct{_bda *_b .CT_AxDataSource };
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Properties returns the chart's shape properties.
|
|
|
|
func (_bcg Chart )Properties ()_db .ShapeProperties {if _bcg ._dfa .SpPr ==nil {_bcg ._dfa .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_bcg ._dfa .SpPr );};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddLineChart adds a new line chart to a chart.
|
|
|
|
func (_bb Chart )AddLineChart ()LineChart {_aae :=_b .NewCT_PlotAreaChoice ();_bb ._dfa .Chart .PlotArea .Choice =append (_bb ._dfa .Chart .PlotArea .Choice ,_aae );_aae .LineChart =_b .NewCT_LineChart ();_aae .LineChart .Grouping =_b .NewCT_Grouping ();_aae .LineChart .Grouping .ValAttr =_b .ST_GroupingStandard ;return LineChart {_ace :_aae .LineChart };};func MakeSeriesAxis (x *_b .CT_SerAx )SeriesAxis {return SeriesAxis {x }};type SurfaceChartSeries struct{_ggag *_b .CT_SurfaceSer };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_effe PieChartSeries )Values ()NumberDataSource {if _effe ._cgb .Val ==nil {_effe ._cgb .Val =_b .NewCT_NumDataSource ();};return MakeNumberDataSource (_effe ._cgb .Val );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddLine3DChart adds a new 3D line chart to a chart.
|
|
|
|
func (_bcc Chart )AddLine3DChart ()Line3DChart {_dgb (_bcc ._dfa .Chart );_aafg :=_b .NewCT_PlotAreaChoice ();_bcc ._dfa .Chart .PlotArea .Choice =append (_bcc ._dfa .Chart .PlotArea .Choice ,_aafg );_aafg .Line3DChart =_b .NewCT_Line3DChart ();_aafg .Line3DChart .Grouping =_b .NewCT_Grouping ();_aafg .Line3DChart .Grouping .ValAttr =_b .ST_GroupingStandard ;return Line3DChart {_dab :_aafg .Line3DChart };};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-07-30 17:03:26 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_adg BubbleChartSeries )X ()*_b .CT_BubbleSer {return _adg ._deb };func (_ecfb SeriesAxis )InitializeDefaults (){};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_dcec PieChartSeries )SetText (s string ){_dcec ._cgb .Tx =_b .NewCT_SerTx ();_dcec ._cgb .Tx .Choice .V =&s ;};func (_agf Title )SetText (s string ){if _agf ._agae .Tx ==nil {_agf ._agae .Tx =_b .NewCT_Tx ();};if _agf ._agae .Tx .Choice .Rich ==nil {_agf ._agae .Tx .Choice .Rich =_d .NewCT_TextBody ();};var _eceg *_d .CT_TextParagraph ;if len (_agf ._agae .Tx .Choice .Rich .P )==0{_eceg =_d .NewCT_TextParagraph ();_agf ._agae .Tx .Choice .Rich .P =[]*_d .CT_TextParagraph {_eceg };}else {_eceg =_agf ._agae .Tx .Choice .Rich .P [0];};var _dbgfg *_d .EG_TextRun ;if len (_eceg .EG_TextRun )==0{_dbgfg =_d .NewEG_TextRun ();_eceg .EG_TextRun =[]*_d .EG_TextRun {_dbgfg };}else {_dbgfg =_eceg .EG_TextRun [0];};if _dbgfg .R ==nil {_dbgfg .R =_d .NewCT_RegularTextRun ();};_dbgfg .R .T =s ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetOrder sets the order of the series
|
|
|
|
func (_gagc LineChartSeries )SetOrder (idx uint32 ){_gagc ._fdd .Order .ValAttr =idx };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// MakeAxisDataSource constructs an AxisDataSource wrapper.
|
|
|
|
func MakeAxisDataSource (x *_b .CT_AxDataSource )CategoryAxisDataSource {return CategoryAxisDataSource {x };};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_fge AreaChart )InitializeDefaults (){};func (_ddg ValueAxis )SetPosition (p _b .ST_AxPos ){_ddg ._decc .AxPos =_b .NewCT_AxPos ();_ddg ._decc .AxPos .ValAttr =p ;};func (_gag CategoryAxis )MajorGridLines ()GridLines {if _gag ._ab .MajorGridlines ==nil {_gag ._ab .MajorGridlines =_b .NewCT_ChartLines ();};return GridLines {_gag ._ab .MajorGridlines };};func (_cbd CategoryAxis )SetMajorTickMark (m _b .ST_TickMark ){if m ==_b .ST_TickMarkUnset {_cbd ._ab .MajorTickMark =nil ;}else {_cbd ._ab .MajorTickMark =_b .NewCT_TickMark ();_cbd ._ab .MajorTickMark .ValAttr =m ;};};func (_bbc Marker )SetSize (sz uint8 ){_bbc ._cdaf .Size =_b .NewCT_MarkerSize ();_bbc ._cdaf .Size .ValAttr =&sz ;};func (_afb DateAxis )SetMajorTickMark (m _b .ST_TickMark ){if m ==_b .ST_TickMarkUnset {_afb ._fae .MajorTickMark =nil ;}else {_afb ._fae .MajorTickMark =_b .NewCT_TickMark ();_afb ._fae .MajorTickMark .ValAttr =m ;};};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSurfaceChart adds a new surface chart to a chart.
|
|
|
|
func (_cbb Chart )AddSurfaceChart ()SurfaceChart {_dgg :=_b .NewCT_PlotAreaChoice ();_cbb ._dfa .Chart .PlotArea .Choice =append (_cbb ._dfa .Chart .PlotArea .Choice ,_dgg );_dgg .SurfaceChart =_b .NewCT_SurfaceChart ();_dgb (_cbb ._dfa .Chart );_cbb ._dfa .Chart .View3D .RotX .ValAttr =_g .Int8 (90);_cbb ._dfa .Chart .View3D .RotY .ValAttr =_g .Uint16 (0);_cbb ._dfa .Chart .View3D .Perspective =_b .NewCT_Perspective ();_cbb ._dfa .Chart .View3D .Perspective .ValAttr =_g .Uint8 (0);_ggf :=SurfaceChart {_agac :_dgg .SurfaceChart };_ggf .InitializeDefaults ();return _ggf ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Labels returns the data label properties.
|
|
|
|
func (_edg LineChartSeries )Labels ()DataLabels {if _edg ._fdd .DLbls ==nil {_edg ._fdd .DLbls =_b .NewCT_DLbls ();};return MakeDataLabels (_edg ._fdd .DLbls );};type Marker struct{_cdaf *_b .CT_Marker };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Surface3DChart is a 3D view of a surface chart.
|
|
|
|
type Surface3DChart struct{chartBase ;_cec *_b .CT_Surface3DChart ;};func (_cad DateAxis )MajorGridLines ()GridLines {if _cad ._fae .MajorGridlines ==nil {_cad ._fae .MajorGridlines =_b .NewCT_ChartLines ();};return GridLines {_cad ._fae .MajorGridlines };};func (_ega ValueAxis )AxisID ()uint32 {return _ega ._decc .AxId .ValAttr };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// RemoveLegend removes the legend if the chart has one.
|
|
|
|
func (_efe Chart )RemoveLegend (){_efe ._dfa .Chart .Legend =nil };func (_ceag DataLabels )SetPosition (p _b .ST_DLblPos ){_ceag .ensureChoice ();_ceag ._dadg .Choice .DLblPos =_b .NewCT_DLblPos ();_ceag ._dadg .Choice .DLblPos .ValAttr =p ;};func MakeValueAxis (x *_b .CT_ValAx )ValueAxis {return ValueAxis {x }};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_effa RadarChartSeries )X ()*_b .CT_RadarSer {return _effa ._egc };
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-07-30 17:03:26 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_ce Bar3DChart )X ()*_b .CT_Bar3DChart {return _ce ._fga };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to an Pie chart.
|
|
|
|
func (_debd PieOfPieChart )AddSeries ()PieChartSeries {_bfb :=_b .NewCT_PieSer ();_debd ._dfce .Ser =append (_debd ._dfce .Ser ,_bfb );_bfb .Idx .ValAttr =uint32 (len (_debd ._dfce .Ser )-1);_bfb .Order .ValAttr =uint32 (len (_debd ._dfce .Ser )-1);_eebg :=PieChartSeries {_bfb };_eebg .InitializeDefaults ();return _eebg ;};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AreaChart is an area chart that has a shaded area underneath a curve.
|
|
|
|
type AreaChart struct{chartBase ;_ae *_b .CT_AreaChart ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// BubbleChart is a 2D Bubble chart.
|
|
|
|
type BubbleChart struct{chartBase ;_add *_b .CT_BubbleChart ;};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSurface3DChart adds a new 3D surface chart to a chart.
|
|
|
|
func (_fcc Chart )AddSurface3DChart ()Surface3DChart {_fdc :=_b .NewCT_PlotAreaChoice ();_fcc ._dfa .Chart .PlotArea .Choice =append (_fcc ._dfa .Chart .PlotArea .Choice ,_fdc );_fdc .Surface3DChart =_b .NewCT_Surface3DChart ();_dgb (_fcc ._dfa .Chart );_bdfaa :=Surface3DChart {_cec :_fdc .Surface3DChart };_bdfaa .InitializeDefaults ();return _bdfaa ;};type DateAxis struct{_fae *_b .CT_DateAx };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_gaa PieChart )X ()*_b .CT_PieChart {return _gaa ._cefg };func (_gge DateAxis )AxisID ()uint32 {return _gge ._fae .AxId .ValAttr };func (_abg CategoryAxis )SetTickLabelPosition (p _b .ST_TickLblPos ){if p ==_b .ST_TickLblPosUnset {_abg ._ab .TickLblPos =nil ;}else {_abg ._ab .TickLblPos =_b .NewCT_TickLblPos ();_abg ._ab .TickLblPos .ValAttr =p ;};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_acg PieOfPieChart )InitializeDefaults (){_acg ._dfce .VaryColors =_b .NewCT_Boolean ();_acg ._dfce .VaryColors .ValAttr =_g .Bool (true );_acg .SetType (_b .ST_OfPieTypePie );_acg ._dfce .SecondPieSize =_b .NewCT_SecondPieSize ();_acg ._dfce .SecondPieSize .ValAttr =&_b .ST_SecondPieSize {};_acg ._dfce .SecondPieSize .ValAttr .ST_SecondPieSizeUShort =_g .Uint16 (75);_aec :=_b .NewCT_ChartLines ();_aec .SpPr =_d .NewCT_ShapeProperties ();_aggg :=_db .MakeShapeProperties (_aec .SpPr );_aggg .LineProperties ().SetSolidFill (_fgd .Auto );_acg ._dfce .SerLines =append (_acg ._dfce .SerLines ,_aec );};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Index returns the index of the series
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_aad SurfaceChartSeries )Index ()uint32 {return _aad ._ggag .Idx .ValAttr };
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_dc Area3DChart )X ()*_b .CT_Area3DChart {return _dc ._gd };func MakeLegend (l *_b .CT_Legend )Legend {return Legend {l }};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Properties returns the bar chart series shape properties.
|
|
|
|
func (_ebb PieChartSeries )Properties ()_db .ShapeProperties {if _ebb ._cgb .SpPr ==nil {_ebb ._cgb .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_ebb ._cgb .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults initializes a Bubble chart series to the default values.
|
|
|
|
func (_aag BubbleChartSeries )InitializeDefaults (){};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// AddSeries adds a default series to a line chart.
|
|
|
|
func (_ece Line3DChart )AddSeries ()LineChartSeries {_dec :=_ece .nextColor (len (_ece ._dab .Ser ));_dfc :=_b .NewCT_LineSer ();_ece ._dab .Ser =append (_ece ._dab .Ser ,_dfc );_dfc .Idx .ValAttr =uint32 (len (_ece ._dab .Ser )-1);_dfc .Order .ValAttr =uint32 (len (_ece ._dab .Ser )-1);_adab :=LineChartSeries {_dfc };_adab .InitializeDefaults ();_adab .Properties ().LineProperties ().SetSolidFill (_dec );_adab .Properties ().SetSolidFill (_dec );return _adab ;};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// SetNumberReference is used to set the source data to a range of cells containing
|
|
|
|
// numbers.
|
|
|
|
func (_gg CategoryAxisDataSource )SetNumberReference (s string ){_gg ._bda .Choice =_b .NewCT_AxDataSourceChoice ();_gg ._bda .Choice .NumRef =_b .NewCT_NumRef ();_gg ._bda .Choice .NumRef .F =s ;};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Order returns the order of the series
|
|
|
|
func (_ecd LineChartSeries )Order ()uint32 {return _ecd ._fdd .Order .ValAttr };func (_dcab Marker )Properties ()_db .ShapeProperties {if _dcab ._cdaf .SpPr ==nil {_dcab ._cdaf .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_dcab ._cdaf .SpPr );};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_faea DoughnutChart )InitializeDefaults (){_faea ._gca .VaryColors =_b .NewCT_Boolean ();_faea ._gca .VaryColors .ValAttr =_g .Bool (true );_faea ._gca .HoleSize =_b .NewCT_HoleSize ();_faea ._gca .HoleSize .ValAttr =&_b .ST_HoleSize {};_faea ._gca .HoleSize .ValAttr .ST_HoleSizeUByte =_g .Uint8 (50);};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Properties returns the bar chart series shape properties.
|
|
|
|
func (_ba AreaChartSeries )Properties ()_db .ShapeProperties {if _ba ._ged .SpPr ==nil {_ba ._ged .SpPr =_d .NewCT_ShapeProperties ();};return _db .MakeShapeProperties (_ba ._ged .SpPr );};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// RadarChartSeries is a series to be used on an Radar chart.
|
|
|
|
type RadarChartSeries struct{_egc *_b .CT_RadarSer };type CategoryAxis struct{_ab *_b .CT_CatAx };func MakeChart (x *_b .ChartSpace )Chart {return Chart {x }};type Title struct{_agae *_b .CT_Title };
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_dacf DateAxis )X ()*_b .CT_DateAx {return _dacf ._fae };
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// Order returns the order of the series
|
|
|
|
func (_bcdd SurfaceChartSeries )Order ()uint32 {return _bcdd ._ggag .Order .ValAttr };
|
|
|
|
|
|
|
|
// AddStockChart adds a new stock chart.
|
|
|
|
func (_fef Chart )AddStockChart ()StockChart {_afce :=_b .NewCT_PlotAreaChoice ();_fef ._dfa .Chart .PlotArea .Choice =append (_fef ._dfa .Chart .PlotArea .Choice ,_afce );_afce .StockChart =_b .NewCT_StockChart ();_agc :=StockChart {_eaba :_afce .StockChart };_agc .InitializeDefaults ();return _agc ;};func (_afe CategoryAxis )SetMinorTickMark (m _b .ST_TickMark ){if m ==_b .ST_TickMarkUnset {_afe ._ab .MinorTickMark =nil ;}else {_afe ._ab .MinorTickMark =_b .NewCT_TickMark ();_afe ._ab .MinorTickMark .ValAttr =m ;};};
|
|
|
|
|
|
|
|
// AddSeries adds a default series to a bar chart.
|
|
|
|
func (_gb BarChart )AddSeries ()BarChartSeries {_dbg :=_gb .nextColor (len (_gb ._cda .Ser ));_eg :=_b .NewCT_BarSer ();_gb ._cda .Ser =append (_gb ._cda .Ser ,_eg );_eg .Idx .ValAttr =uint32 (len (_gb ._cda .Ser )-1);_eg .Order .ValAttr =uint32 (len (_gb ._cda .Ser )-1);_cc :=BarChartSeries {_eg };_cc .InitializeDefaults ();_cc .Properties ().SetSolidFill (_dbg );return _cc ;};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
2021-09-22 16:41:01 +00:00
|
|
|
func (_cae BarChart )InitializeDefaults (){_cae .SetDirection (_b .ST_BarDirCol )};func MakeTitle (x *_b .CT_Title )Title {return Title {x }};
|