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
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
package chart ;import (_c "fmt";_gd "github.com/unidoc/unioffice";_e "github.com/unidoc/unioffice/color";_gf "github.com/unidoc/unioffice/drawing";_f "github.com/unidoc/unioffice/measurement";_bg "github.com/unidoc/unioffice/schema/soo/dml";_g "github.com/unidoc/unioffice/schema/soo/dml/chart";_b "math/rand";);
|
2017-09-03 16:47:46 -05:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetOrder sets the order of the series
|
|
|
|
func (_ecc ScatterChartSeries )SetOrder (idx uint32 ){_ecc ._eaf .Order .ValAttr =idx };
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddBubbleChart adds a new bubble chart.
|
|
|
|
func (_ead Chart )AddBubbleChart ()BubbleChart {_ada :=_g .NewCT_PlotAreaChoice ();_ead ._gad .Chart .PlotArea .Choice =append (_ead ._gad .Chart .PlotArea .Choice ,_ada );_ada .BubbleChart =_g .NewCT_BubbleChart ();_gee :=BubbleChart {_eef :_ada .BubbleChart };_gee .InitializeDefaults ();return _gee ;};func (_bbc LineChartSeries )Values ()NumberDataSource {if _bbc ._dae .Val ==nil {_bbc ._dae .Val =_g .NewCT_NumDataSource ();};return MakeNumberDataSource (_bbc ._dae .Val );};func (_ece RadarChart )AddAxis (axis Axis ){_bcg :=_g .NewCT_UnsignedInt ();_bcg .ValAttr =axis .AxisID ();_ece ._deff .AxId =append (_ece ._deff .AxId ,_bcg );};func (_ffcc ScatterChart )InitializeDefaults (){_ffcc ._fdee .ScatterStyle .ValAttr =_g .ST_ScatterStyleMarker ;};func (_dad Chart )AddSeriesAxis ()SeriesAxis {_gge :=_g .NewCT_SerAx ();if _dad ._gad .Chart .PlotArea .CChoice ==nil {_dad ._gad .Chart .PlotArea .CChoice =_g .NewCT_PlotAreaChoice1 ();};_gge .AxId =_g .NewCT_UnsignedInt ();_gge .AxId .ValAttr =0x7FFFFFFF&_b .Uint32 ();_dad ._gad .Chart .PlotArea .CChoice .SerAx =append (_dad ._gad .Chart .PlotArea .CChoice .SerAx ,_gge );_gge .Delete =_g .NewCT_Boolean ();_gge .Delete .ValAttr =_gd .Bool (false );_bgaa :=MakeSeriesAxis (_gge );_bgaa .InitializeDefaults ();return _bgaa ;};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Index returns the index of the series
|
|
|
|
func (_cfg SurfaceChartSeries )Index ()uint32 {return _cfg ._facf .Idx .ValAttr };func (_ggb ValueAxis )SetCrosses (axis Axis ){_ggb ._edg .CrossAx .ValAttr =axis .AxisID ()};
|
|
|
|
|
|
|
|
// SetDirection changes the direction of the bar chart (bar or column).
|
|
|
|
func (_cd BarChart )SetDirection (d _g .ST_BarDir ){_cd ._gea .BarDir .ValAttr =d };
|
2017-09-03 16:47:46 -05:00
|
|
|
|
2020-08-23 14:15:53 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_af BarChart )InitializeDefaults (){_af .SetDirection (_g .ST_BarDirCol )};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to a Scatter chart.
|
|
|
|
func (_defd ScatterChart )AddSeries ()ScatterChartSeries {_ac :=_defd .nextColor (len (_defd ._fdee .Ser ));_baea :=_g .NewCT_ScatterSer ();_defd ._fdee .Ser =append (_defd ._fdee .Ser ,_baea );_baea .Idx .ValAttr =uint32 (len (_defd ._fdee .Ser )-1);_baea .Order .ValAttr =uint32 (len (_defd ._fdee .Ser )-1);_fgd :=ScatterChartSeries {_baea };_fgd .InitializeDefaults ();_fgd .Marker ().Properties ().LineProperties ().SetSolidFill (_ac );_fgd .Marker ().Properties ().SetSolidFill (_ac );return _fgd ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Properties returns the bar chart series shape properties.
|
|
|
|
func (_df AreaChartSeries )Properties ()_gf .ShapeProperties {if _df ._bf .SpPr ==nil {_df ._bf .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_df ._bf .SpPr );};
|
2017-09-03 16:47:46 -05:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to a bar chart.
|
|
|
|
func (_eac BarChart )AddSeries ()BarChartSeries {_eg :=_eac .nextColor (len (_eac ._gea .Ser ));_bea :=_g .NewCT_BarSer ();_eac ._gea .Ser =append (_eac ._gea .Ser ,_bea );_bea .Idx .ValAttr =uint32 (len (_eac ._gea .Ser )-1);_bea .Order .ValAttr =uint32 (len (_eac ._gea .Ser )-1);_age :=BarChartSeries {_bea };_age .InitializeDefaults ();_age .Properties ().SetSolidFill (_eg );return _age ;};
|
2017-09-04 15:32:59 -05:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetExplosion sets the value that the segements of the pie are 'exploded' by
|
|
|
|
func (_cddd PieChartSeries )SetExplosion (v uint32 ){_cddd ._aad .Explosion =_g .NewCT_UnsignedInt ();_cddd ._aad .Explosion .ValAttr =v ;};type DataLabels struct{_cda *_g .CT_DLbls };
|
2017-09-03 16:47:46 -05:00
|
|
|
|
2020-08-23 14:15:53 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_faed SurfaceChart )X ()*_g .CT_SurfaceChart {return _faed ._adeg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_bdf RadarChart )X ()*_g .CT_RadarChart {return _bdf ._deff };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to an Radar chart.
|
|
|
|
func (_fcb RadarChart )AddSeries ()RadarChartSeries {_cfae :=_fcb .nextColor (len (_fcb ._deff .Ser ));_ccdd :=_g .NewCT_RadarSer ();_fcb ._deff .Ser =append (_fcb ._deff .Ser ,_ccdd );_ccdd .Idx .ValAttr =uint32 (len (_fcb ._deff .Ser )-1);_ccdd .Order .ValAttr =uint32 (len (_fcb ._deff .Ser )-1);_aaa :=RadarChartSeries {_ccdd };_aaa .InitializeDefaults ();_aaa .Properties ().SetSolidFill (_cfae );return _aaa ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to an Pie chart.
|
|
|
|
func (_eee PieChart )AddSeries ()PieChartSeries {_ffff :=_g .NewCT_PieSer ();_eee ._ebf .Ser =append (_eee ._ebf .Ser ,_ffff );_ffff .Idx .ValAttr =uint32 (len (_eee ._ebf .Ser )-1);_ffff .Order .ValAttr =uint32 (len (_eee ._ebf .Ser )-1);_fdf :=PieChartSeries {_ffff };_fdf .InitializeDefaults ();return _fdf ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetDisplayBlanksAs controls how missing values are displayed.
|
|
|
|
func (_bab Chart )SetDisplayBlanksAs (v _g .ST_DispBlanksAs ){_bab ._gad .Chart .DispBlanksAs =_g .NewCT_DispBlanksAs ();_bab ._gad .Chart .DispBlanksAs .ValAttr =v ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_cce AreaChart )X ()*_g .CT_AreaChart {return _cce ._d };func (_ged DataLabels )SetShowPercent (b bool ){_ged .ensureChoice ();_ged ._cda .Choice .ShowPercent =_g .NewCT_Boolean ();_ged ._cda .Choice .ShowPercent .ValAttr =_gd .Bool (b );};func (_dgf Bar3DChart )AddAxis (axis Axis ){_da :=_g .NewCT_UnsignedInt ();_da .ValAttr =axis .AxisID ();_dgf ._ebd .AxId =append (_dgf ._ebd .AxId ,_da );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to a Bubble chart.
|
|
|
|
func (_gfec BubbleChart )AddSeries ()BubbleChartSeries {_dda :=_gfec .nextColor (len (_gfec ._eef .Ser ));_fab :=_g .NewCT_BubbleSer ();_gfec ._eef .Ser =append (_gfec ._eef .Ser ,_fab );_fab .Idx .ValAttr =uint32 (len (_gfec ._eef .Ser )-1);_fab .Order .ValAttr =uint32 (len (_gfec ._eef .Ser )-1);_ege :=BubbleChartSeries {_fab };_ege .InitializeDefaults ();_ege .Properties ().SetSolidFill (_dda );return _ege ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetText sets the series text
|
|
|
|
func (_cbcd LineChartSeries )SetText (s string ){_cbcd ._dae .Tx =_g .NewCT_SerTx ();_cbcd ._dae .Tx .Choice .V =&s ;};func (_be nullAxis )AxisID ()uint32 {return 0};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddBar3DChart adds a new 3D bar chart to a chart.
|
|
|
|
func (_fae Chart )AddBar3DChart ()Bar3DChart {_bce (_fae ._gad .Chart );_ade :=_g .NewCT_PlotAreaChoice ();_fae ._gad .Chart .PlotArea .Choice =append (_fae ._gad .Chart .PlotArea .Choice ,_ade );_ade .Bar3DChart =_g .NewCT_Bar3DChart ();_ade .Bar3DChart .Grouping =_g .NewCT_BarGrouping ();_ade .Bar3DChart .Grouping .ValAttr =_g .ST_BarGroupingStandard ;_ecb :=Bar3DChart {_ebd :_ade .Bar3DChart };_ecb .InitializeDefaults ();return _ecb ;};func (_cae NumberDataSource )ensureChoice (){if _cae ._bcec .Choice ==nil {_cae ._bcec .Choice =_g .NewCT_NumDataSourceChoice ();};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to an Pie chart.
|
|
|
|
func (_ddd PieOfPieChart )AddSeries ()PieChartSeries {_fbeg :=_g .NewCT_PieSer ();_ddd ._babg .Ser =append (_ddd ._babg .Ser ,_fbeg );_fbeg .Idx .ValAttr =uint32 (len (_ddd ._babg .Ser )-1);_fbeg .Order .ValAttr =uint32 (len (_ddd ._babg .Ser )-1);_deag :=PieChartSeries {_fbeg };_deag .InitializeDefaults ();return _deag ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// InitializeDefaults the Bubble chart to its defaults
|
|
|
|
func (_de BubbleChart )InitializeDefaults (){};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_fbc BubbleChartSeries )SetText (s string ){_fbc ._caa .Tx =_g .NewCT_SerTx ();_fbc ._caa .Tx .Choice .V =&s ;};type LineChart struct{chartBase ;_cbc *_g .CT_LineChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddValueAxis adds a value axis to the chart.
|
|
|
|
func (_eba Chart )AddValueAxis ()ValueAxis {_bb :=_g .NewCT_ValAx ();if _eba ._gad .Chart .PlotArea .CChoice ==nil {_eba ._gad .Chart .PlotArea .CChoice =_g .NewCT_PlotAreaChoice1 ();};_bb .AxId =_g .NewCT_UnsignedInt ();_bb .AxId .ValAttr =0x7FFFFFFF&_b .Uint32 ();_eba ._gad .Chart .PlotArea .CChoice .ValAx =append (_eba ._gad .Chart .PlotArea .CChoice .ValAx ,_bb );_bb .Delete =_g .NewCT_Boolean ();_bb .Delete .ValAttr =_gd .Bool (false );_bb .Scaling =_g .NewCT_Scaling ();_bb .Scaling .Orientation =_g .NewCT_Orientation ();_bb .Scaling .Orientation .ValAttr =_g .ST_OrientationMinMax ;_bb .Choice =&_g .EG_AxSharedChoice {};_bb .Choice .Crosses =_g .NewCT_Crosses ();_bb .Choice .Crosses .ValAttr =_g .ST_CrossesAutoZero ;_bb .CrossBetween =_g .NewCT_CrossBetween ();_bb .CrossBetween .ValAttr =_g .ST_CrossBetweenBetween ;_edf :=MakeValueAxis (_bb );_edf .MajorGridLines ().Properties ().LineProperties ().SetSolidFill (_e .LightGray );_edf .SetMajorTickMark (_g .ST_TickMarkOut );_edf .SetMinorTickMark (_g .ST_TickMarkIn );_edf .SetTickLabelPosition (_g .ST_TickLblPosNextTo );_edf .Properties ().LineProperties ().SetSolidFill (_e .Black );_edf .SetPosition (_g .ST_AxPosL );return _edf ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_fcfa ValueAxis )X ()*_g .CT_ValAx {return _fcfa ._edg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddAxis adds an axis to a line chart.
|
|
|
|
func (_feec LineChart )AddAxis (axis Axis ){_adc :=_g .NewCT_UnsignedInt ();_adc .ValAttr =axis .AxisID ();_feec ._cbc .AxId =append (_feec ._cbc .AxId ,_adc );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_cgfe Legend )X ()*_g .CT_Legend {return _cgfe ._ccd };type Line3DChart struct{chartBase ;_gbda *_g .CT_Line3DChart ;};
|
|
|
|
|
|
|
|
// AddAreaChart adds a new area chart to a chart.
|
|
|
|
func (_abd Chart )AddAreaChart ()AreaChart {_gfb :=_g .NewCT_PlotAreaChoice ();_abd ._gad .Chart .PlotArea .Choice =append (_abd ._gad .Chart .PlotArea .Choice ,_gfb );_gfb .AreaChart =_g .NewCT_AreaChart ();_gga :=AreaChart {_d :_gfb .AreaChart };_gga .InitializeDefaults ();return _gga ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_ee Bar3DChart )X ()*_g .CT_Bar3DChart {return _ee ._ebd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_bgf StockChart )X ()*_g .CT_StockChart {return _bgf ._gfac };func (_cc Area3DChart )AddAxis (axis Axis ){_fc :=_g .NewCT_UnsignedInt ();_fc .ValAttr =axis .AxisID ();_cc ._gfe .AxId =append (_cc ._gfe .AxId ,_fc );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_gc Area3DChart )X ()*_g .CT_Area3DChart {return _gc ._gfe };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Pie3DChart is a Pie3D chart.
|
|
|
|
type Pie3DChart struct{chartBase ;_gdfg *_g .CT_Pie3DChart ;};type NumberDataSource struct{_bcec *_g .CT_NumDataSource };func (_bfgf DataLabels )SetPosition (p _g .ST_DLblPos ){_bfgf .ensureChoice ();_bfgf ._cda .Choice .DLblPos =_g .NewCT_DLblPos ();_bfgf ._cda .Choice .DLblPos .ValAttr =p ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_ff AreaChartSeries )Values ()NumberDataSource {if _ff ._bf .Val ==nil {_ff ._bf .Val =_g .NewCT_NumDataSource ();};return MakeNumberDataSource (_ff ._bf .Val );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddCategoryAxis adds a category axis.
|
|
|
|
func (_efc Chart )AddCategoryAxis ()CategoryAxis {_bga :=_g .NewCT_CatAx ();if _efc ._gad .Chart .PlotArea .CChoice ==nil {_efc ._gad .Chart .PlotArea .CChoice =_g .NewCT_PlotAreaChoice1 ();};_bga .AxId =_g .NewCT_UnsignedInt ();_bga .AxId .ValAttr =0x7FFFFFFF&_b .Uint32 ();_efc ._gad .Chart .PlotArea .CChoice .CatAx =append (_efc ._gad .Chart .PlotArea .CChoice .CatAx ,_bga );_bga .Auto =_g .NewCT_Boolean ();_bga .Auto .ValAttr =_gd .Bool (true );_bga .Delete =_g .NewCT_Boolean ();_bga .Delete .ValAttr =_gd .Bool (false );_gec :=MakeCategoryAxis (_bga );_gec .InitializeDefaults ();return _gec ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_eb AreaChartSeries )CategoryAxis ()CategoryAxisDataSource {if _eb ._bf .Cat ==nil {_eb ._bf .Cat =_g .NewCT_AxDataSource ();};return MakeAxisDataSource (_eb ._bf .Cat );};func (_ddc DataLabels )SetShowSeriesName (b bool ){_ddc .ensureChoice ();_ddc ._cda .Choice .ShowSerName =_g .NewCT_Boolean ();_ddc ._cda .Choice .ShowSerName .ValAttr =_gd .Bool (b );};type chartBase struct{};func MakeLegend (l *_g .CT_Legend )Legend {return Legend {l }};
|
2017-09-05 20:20:00 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddArea3DChart adds a new area chart to a chart.
|
|
|
|
func (_ae Chart )AddArea3DChart ()Area3DChart {_bce (_ae ._gad .Chart );_faf :=_g .NewCT_PlotAreaChoice ();_ae ._gad .Chart .PlotArea .Choice =append (_ae ._gad .Chart .PlotArea .Choice ,_faf );_faf .Area3DChart =_g .NewCT_Area3DChart ();_edd :=Area3DChart {_gfe :_faf .Area3DChart };_edd .InitializeDefaults ();return _edd ;};func (_bee chartBase )nextColor (_deb int )_e .Color {return _cb [_deb %len (_cb )]};func (_cfd CategoryAxis )SetMajorTickMark (m _g .ST_TickMark ){if m ==_g .ST_TickMarkUnset {_cfd ._ccf .MajorTickMark =nil ;}else {_cfd ._ccf .MajorTickMark =_g .NewCT_TickMark ();_cfd ._ccf .MajorTickMark .ValAttr =m ;};};
|
2017-09-07 12:08:13 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_ddab PieChartSeries )SetText (s string ){_ddab ._aad .Tx =_g .NewCT_SerTx ();_ddab ._aad .Tx .Choice .V =&s ;};func (_cfdg SurfaceChartSeries )Values ()NumberDataSource {if _cfdg ._facf .Val ==nil {_cfdg ._facf .Val =_g .NewCT_NumDataSource ();};_cga :=MakeNumberDataSource (_cfdg ._facf .Val );_cga .CreateEmptyNumberCache ();return _cga ;};
|
2017-09-07 12:08:13 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetHoleSize controls the hole size in the pie chart and is measured in percent.
|
|
|
|
func (_eed DoughnutChart )SetHoleSize (pct uint8 ){if _eed ._aba .HoleSize ==nil {_eed ._aba .HoleSize =_g .NewCT_HoleSize ();};if _eed ._aba .HoleSize .ValAttr ==nil {_eed ._aba .HoleSize .ValAttr =&_g .ST_HoleSize {};};_eed ._aba .HoleSize .ValAttr .ST_HoleSizeUByte =&pct ;};
|
2017-09-04 15:32:59 -05:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// RemoveLegend removes the legend if the chart has one.
|
|
|
|
func (_cca Chart )RemoveLegend (){_cca ._gad .Chart .Legend =nil };
|
2017-09-06 16:52:39 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Order returns the order of the series
|
|
|
|
func (_egfa SurfaceChartSeries )Order ()uint32 {return _egfa ._facf .Order .ValAttr };
|
2017-09-06 17:02:21 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddAxis adds an axis to a line chart.
|
|
|
|
func (_ccec Line3DChart )AddAxis (axis Axis ){_egc :=_g .NewCT_UnsignedInt ();_egc .ValAttr =axis .AxisID ();_ccec ._gbda .AxId =append (_ccec ._gbda .AxId ,_egc );};
|
2017-09-06 17:02:21 -04:00
|
|
|
|
2020-08-23 14:15:53 +00:00
|
|
|
// AddSeries adds a default series to a line chart.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_gbe Line3DChart )AddSeries ()LineChartSeries {_deba :=_gbe .nextColor (len (_gbe ._gbda .Ser ));_cab :=_g .NewCT_LineSer ();_gbe ._gbda .Ser =append (_gbe ._gbda .Ser ,_cab );_cab .Idx .ValAttr =uint32 (len (_gbe ._gbda .Ser )-1);_cab .Order .ValAttr =uint32 (len (_gbe ._gbda .Ser )-1);_bcab :=LineChartSeries {_cab };_bcab .InitializeDefaults ();_bcab .Properties ().LineProperties ().SetSolidFill (_deba );_bcab .Properties ().SetSolidFill (_deba );return _bcab ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_fbcd Line3DChart )X ()*_g .CT_Line3DChart {return _fbcd ._gbda };
|
2017-09-06 17:24:30 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_cac BarChartSeries )CategoryAxis ()CategoryAxisDataSource {if _cac ._ccb .Cat ==nil {_cac ._ccb .Cat =_g .NewCT_AxDataSource ();};return MakeAxisDataSource (_cac ._ccb .Cat );};
|
2017-09-06 17:24:30 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetNumberReference is used to set the source data to a range of cells containing
|
|
|
|
// numbers.
|
|
|
|
func (_dga CategoryAxisDataSource )SetNumberReference (s string ){_dga ._egb .Choice =_g .NewCT_AxDataSourceChoice ();_dga ._egb .Choice .NumRef =_g .NewCT_NumRef ();_dga ._egb .Choice .NumRef .F =s ;};func (_dag Marker )Properties ()_gf .ShapeProperties {if _dag ._aac .SpPr ==nil {_dag ._aac .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_dag ._aac .SpPr );};
|
2017-09-06 17:33:34 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Index returns the index of the series
|
|
|
|
func (_bbb LineChartSeries )Index ()uint32 {return _bbb ._dae .Idx .ValAttr };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// InitializeDefaults initializes an Radar series to the default values.
|
|
|
|
func (_ebc RadarChartSeries )InitializeDefaults (){};
|
2017-09-06 17:33:34 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_cbb PieChart )X ()*_g .CT_PieChart {return _cbb ._ebf };
|
2017-09-06 17:36:49 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_ccda PieOfPieChart )InitializeDefaults (){_ccda ._babg .VaryColors =_g .NewCT_Boolean ();_ccda ._babg .VaryColors .ValAttr =_gd .Bool (true );_ccda .SetType (_g .ST_OfPieTypePie );_ccda ._babg .SecondPieSize =_g .NewCT_SecondPieSize ();_ccda ._babg .SecondPieSize .ValAttr =&_g .ST_SecondPieSize {};_ccda ._babg .SecondPieSize .ValAttr .ST_SecondPieSizeUShort =_gd .Uint16 (75);_fbb :=_g .NewCT_ChartLines ();_fbb .SpPr =_bg .NewCT_ShapeProperties ();_gbfa :=_gf .MakeShapeProperties (_fbb .SpPr );_gbfa .LineProperties ().SetSolidFill (_e .Auto );_ccda ._babg .SerLines =append (_ccda ._babg .SerLines ,_fbb );};func (_ede DataLabels )SetShowLegendKey (b bool ){_ede .ensureChoice ();_ede ._cda .Choice .ShowLegendKey =_g .NewCT_Boolean ();_ede ._cda .Choice .ShowLegendKey .ValAttr =_gd .Bool (b );};
|
2017-09-06 17:36:49 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetIndex sets the index of the series
|
|
|
|
func (_dbe ScatterChartSeries )SetIndex (idx uint32 ){_dbe ._eaf .Idx .ValAttr =idx };var NullAxis Axis =nullAxis (0);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to a line chart.
|
|
|
|
func (_ddga LineChart )AddSeries ()LineChartSeries {_cddc :=_ddga .nextColor (len (_ddga ._cbc .Ser ));_dfdb :=_g .NewCT_LineSer ();_ddga ._cbc .Ser =append (_ddga ._cbc .Ser ,_dfdb );_dfdb .Idx .ValAttr =uint32 (len (_ddga ._cbc .Ser )-1);_dfdb .Order .ValAttr =uint32 (len (_ddga ._cbc .Ser )-1);_fac :=LineChartSeries {_dfdb };_fac .InitializeDefaults ();_fac .Properties ().LineProperties ().SetSolidFill (_cddc );return _fac ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddScatterChart adds a scatter (X/Y) chart.
|
|
|
|
func (_bcef Chart )AddScatterChart ()ScatterChart {_cea :=_g .NewCT_PlotAreaChoice ();_bcef ._gad .Chart .PlotArea .Choice =append (_bcef ._gad .Chart .PlotArea .Choice ,_cea );_cea .ScatterChart =_g .NewCT_ScatterChart ();_fbag :=ScatterChart {_fdee :_cea .ScatterChart };_fbag .InitializeDefaults ();return _fbag ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_dada PieChartSeries )X ()*_g .CT_PieSer {return _dada ._aad };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to a bar chart.
|
|
|
|
func (_ggc Bar3DChart )AddSeries ()BarChartSeries {_dc :=_ggc .nextColor (len (_ggc ._ebd .Ser ));_ebg :=_g .NewCT_BarSer ();_ggc ._ebd .Ser =append (_ggc ._ebd .Ser ,_ebg );_ebg .Idx .ValAttr =uint32 (len (_ggc ._ebd .Ser )-1);_ebg .Order .ValAttr =uint32 (len (_ggc ._ebd .Ser )-1);_fb :=BarChartSeries {_ebg };_fb .InitializeDefaults ();_fb .Properties ().SetSolidFill (_dc );return _fb ;};
|
2017-09-07 09:03:05 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_fee GridLines )X ()*_g .CT_ChartLines {return _fee ._bd };
|
2017-09-07 09:08:32 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Properties returns the chart's shape properties.
|
|
|
|
func (_gff Chart )Properties ()_gf .ShapeProperties {if _gff ._gad .SpPr ==nil {_gff ._gad .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_gff ._gad .SpPr );};
|
2017-09-07 09:08:32 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetText sets the series text
|
|
|
|
func (_efg SurfaceChartSeries )SetText (s string ){_efg ._facf .Tx =_g .NewCT_SerTx ();_efg ._facf .Tx .Choice .V =&s ;};
|
2017-09-07 09:45:34 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to an Doughnut chart.
|
|
|
|
func (_bed DoughnutChart )AddSeries ()PieChartSeries {_cfa :=_g .NewCT_PieSer ();_bed ._aba .Ser =append (_bed ._aba .Ser ,_cfa );_cfa .Idx .ValAttr =uint32 (len (_bed ._aba .Ser )-1);_cfa .Order .ValAttr =uint32 (len (_bed ._aba .Ser )-1);_baa :=PieChartSeries {_cfa };_baa .InitializeDefaults ();return _baa ;};
|
2017-09-07 09:45:34 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_ccfb Marker )X ()*_g .CT_Marker {return _ccfb ._aac };func (_adg BubbleChart )AddAxis (axis Axis ){_ce :=_g .NewCT_UnsignedInt ();_ce .ValAttr =axis .AxisID ();_adg ._eef .AxId =append (_adg ._eef .AxId ,_ce );};
|
2017-09-07 09:55:22 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_eae BarChartSeries )X ()*_g .CT_BarSer {return _eae ._ccb };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// RadarChartSeries is a series to be used on an Radar chart.
|
|
|
|
type RadarChartSeries struct{_gbc *_g .CT_RadarSer };func (_ffe DateAxis )SetCrosses (axis Axis ){_ffe ._aab .CrossAx .ValAttr =axis .AxisID ()};type Title struct{_gaa *_g .CT_Title };func (_gde Title )ParagraphProperties ()_gf .ParagraphProperties {if _gde ._gaa .Tx ==nil {_gde .SetText ("");};if _gde ._gaa .Tx .Choice .Rich .P [0].PPr ==nil {_gde ._gaa .Tx .Choice .Rich .P [0].PPr =_bg .NewCT_TextParagraphProperties ();};return _gf .MakeParagraphProperties (_gde ._gaa .Tx .Choice .Rich .P [0].PPr );};func (_bef DataLabels )SetShowLeaderLines (b bool ){_bef .ensureChoice ();_bef ._cda .Choice .ShowLeaderLines =_g .NewCT_Boolean ();_bef ._cda .Choice .ShowLeaderLines .ValAttr =_gd .Bool (b );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_fd BubbleChartSeries )CategoryAxis ()CategoryAxisDataSource {if _fd ._caa .XVal ==nil {_fd ._caa .XVal =_g .NewCT_AxDataSource ();};return MakeAxisDataSource (_fd ._caa .XVal );};func (_bbd DateAxis )MajorGridLines ()GridLines {if _bbd ._aab .MajorGridlines ==nil {_bbd ._aab .MajorGridlines =_g .NewCT_ChartLines ();};return GridLines {_bbd ._aab .MajorGridlines };};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_ba AreaChart )InitializeDefaults (){};
|
2017-09-07 09:27:41 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// StockChart is a 2D Stock chart.
|
|
|
|
type StockChart struct{chartBase ;_gfac *_g .CT_StockChart ;};
|
2017-09-07 09:27:41 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_gac RadarChartSeries )CategoryAxis ()CategoryAxisDataSource {if _gac ._gbc .Cat ==nil {_gac ._gbc .Cat =_g .NewCT_AxDataSource ();};return MakeAxisDataSource (_gac ._gbc .Cat );};func (_bfd SurfaceChartSeries )CategoryAxis ()CategoryAxisDataSource {if _bfd ._facf .Cat ==nil {_bfd ._facf .Cat =_g .NewCT_AxDataSource ();};return MakeAxisDataSource (_bfd ._facf .Cat );};
|
2017-09-07 10:54:54 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddDoughnutChart adds a new doughnut (pie with a hole in the center) chart to a chart.
|
|
|
|
func (_cgc Chart )AddDoughnutChart ()DoughnutChart {_afb :=_g .NewCT_PlotAreaChoice ();_cgc ._gad .Chart .PlotArea .Choice =append (_cgc ._gad .Chart .PlotArea .Choice ,_afb );_afb .DoughnutChart =_g .NewCT_DoughnutChart ();_afa :=DoughnutChart {_aba :_afb .DoughnutChart };_afa .InitializeDefaults ();return _afa ;};
|
2017-09-07 10:54:54 -04:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// PieChart is a Pie chart.
|
|
|
|
type PieChart struct{chartBase ;_ebf *_g .CT_PieChart ;};func (_cfbc ValueAxis )SetTickLabelPosition (p _g .ST_TickLblPos ){if p ==_g .ST_TickLblPosUnset {_cfbc ._edg .TickLblPos =nil ;}else {_cfbc ._edg .TickLblPos =_g .NewCT_TickLblPos ();_cfbc ._edg .TickLblPos .ValAttr =p ;};};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Labels returns the data label properties.
|
|
|
|
func (_cceb ScatterChartSeries )Labels ()DataLabels {if _cceb ._eaf .DLbls ==nil {_cceb ._eaf .DLbls =_g .NewCT_DLbls ();};return MakeDataLabels (_cceb ._eaf .DLbls );};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2020-08-23 14:15:53 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_ebeg DateAxis )X ()*_g .CT_DateAx {return _ebeg ._aab };
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddPieOfPieChart adds a new pie chart to a chart.
|
|
|
|
func (_gaf Chart )AddPieOfPieChart ()PieOfPieChart {_eda :=_g .NewCT_PlotAreaChoice ();_gaf ._gad .Chart .PlotArea .Choice =append (_gaf ._gad .Chart .PlotArea .Choice ,_eda );_eda .OfPieChart =_g .NewCT_OfPieChart ();_ecg :=PieOfPieChart {_babg :_eda .OfPieChart };_ecg .InitializeDefaults ();return _ecg ;};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2020-08-23 14:15:53 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_ebb Pie3DChart )InitializeDefaults (){_ebb ._gdfg .VaryColors =_g .NewCT_Boolean ();_ebb ._gdfg .VaryColors .ValAttr =_gd .Bool (true );};func (_fgg LineChartSeries )CategoryAxis ()CategoryAxisDataSource {if _fgg ._dae .Cat ==nil {_fgg ._dae .Cat =_g .NewCT_AxDataSource ();};return MakeAxisDataSource (_fgg ._dae .Cat );};func (_faa GridLines )Properties ()_gf .ShapeProperties {if _faa ._bd .SpPr ==nil {_faa ._bd .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_faa ._bd .SpPr );};func (_ddaba SeriesAxis )InitializeDefaults (){};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2020-08-23 14:15:53 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_afd RadarChartSeries )X ()*_g .CT_RadarSer {return _afd ._gbc };func (_cf CategoryAxis )Properties ()_gf .ShapeProperties {if _cf ._ccf .SpPr ==nil {_cf ._ccf .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_cf ._ccf .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// AddSeries adds a default series to a Stock chart.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_fafg StockChart )AddSeries ()LineChartSeries {_cge :=_g .NewCT_LineSer ();_fafg ._gfac .Ser =append (_fafg ._gfac .Ser ,_cge );_cge .Idx .ValAttr =uint32 (len (_fafg ._gfac .Ser )-1);_cge .Order .ValAttr =uint32 (len (_fafg ._gfac .Ser )-1);_fed :=LineChartSeries {_cge };_fed .Values ().CreateEmptyNumberCache ();_fed .Properties ().LineProperties ().SetNoFill ();return _fed ;};func (_gdf CategoryAxis )InitializeDefaults (){_gdf .SetPosition (_g .ST_AxPosB );_gdf .SetMajorTickMark (_g .ST_TickMarkOut );_gdf .SetMinorTickMark (_g .ST_TickMarkIn );_gdf .SetTickLabelPosition (_g .ST_TickLblPosNextTo );_gdf .MajorGridLines ().Properties ().LineProperties ().SetSolidFill (_e .LightGray );_gdf .Properties ().LineProperties ().SetSolidFill (_e .Black );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// BarChartSeries is a series to be used on a bar chart.
|
|
|
|
type BarChartSeries struct{_ccb *_g .CT_BarSer };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// Axis is the interface implemented by different axes when assigning to a
|
|
|
|
// chart.
|
2020-08-31 22:58:25 +00:00
|
|
|
type Axis interface{AxisID ()uint32 ;};func (_dcd DateAxis )AxisID ()uint32 {return _dcd ._aab .AxId .ValAttr };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// InitializeDefaults initializes a Bubble chart series to the default values.
|
|
|
|
func (_bge BubbleChartSeries )InitializeDefaults (){};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddTitle sets a new title on the chart.
|
|
|
|
func (_eec Chart )AddTitle ()Title {_eec ._gad .Chart .Title =_g .NewCT_Title ();_eec ._gad .Chart .Title .Overlay =_g .NewCT_Boolean ();_eec ._gad .Chart .Title .Overlay .ValAttr =_gd .Bool (false );_eec ._gad .Chart .AutoTitleDeleted =_g .NewCT_Boolean ();_eec ._gad .Chart .AutoTitleDeleted .ValAttr =_gd .Bool (false );_eaee :=MakeTitle (_eec ._gad .Chart .Title );_eaee .InitializeDefaults ();return _eaee ;};func (_dea LineChartSeries )InitializeDefaults (){_dea .Properties ().LineProperties ().SetWidth (1*_f .Point );_dea .Properties ().LineProperties ().SetSolidFill (_e .Black );_dea .Properties ().LineProperties ().SetJoin (_gf .LineJoinRound );_dea .Marker ().SetSymbol (_g .ST_MarkerStyleNone );_dea .Labels ().SetShowLegendKey (false );_dea .Labels ().SetShowValue (false );_dea .Labels ().SetShowPercent (false );_dea .Labels ().SetShowCategoryName (false );_dea .Labels ().SetShowSeriesName (false );_dea .Labels ().SetShowLeaderLines (false );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Marker returns the marker properties.
|
|
|
|
func (_cffa LineChartSeries )Marker ()Marker {if _cffa ._dae .Marker ==nil {_cffa ._dae .Marker =_g .NewCT_Marker ();};return MakeMarker (_cffa ._dae .Marker );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// BarChart is a 2D bar chart.
|
|
|
|
type BarChart struct{chartBase ;_gea *_g .CT_BarChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// InitializeDefaults initializes a bar chart series to the default values.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_db BarChartSeries )InitializeDefaults (){};func (_afe ValueAxis )SetPosition (p _g .ST_AxPos ){_afe ._edg .AxPos =_g .NewCT_AxPos ();_afe ._edg .AxPos .ValAttr =p ;};
|
2017-09-05 20:20:00 -04:00
|
|
|
|
2020-08-31 22:58:25 +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.
|
|
|
|
func (_daea NumberDataSource )CreateEmptyNumberCache (){_daea .ensureChoice ();if _daea ._bcec .Choice .NumRef ==nil {_daea ._bcec .Choice .NumRef =_g .NewCT_NumRef ();};_daea ._bcec .Choice .NumLit =nil ;_daea ._bcec .Choice .NumRef .NumCache =_g .NewCT_NumData ();_daea ._bcec .Choice .NumRef .NumCache .PtCount =_g .NewCT_UnsignedInt ();_daea ._bcec .Choice .NumRef .NumCache .PtCount .ValAttr =0;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_gfa ScatterChart )X ()*_g .CT_ScatterChart {return _gfa ._fdee };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Values returns the bubble size data source.
|
|
|
|
func (_fde BubbleChartSeries )BubbleSizes ()NumberDataSource {if _fde ._caa .BubbleSize ==nil {_fde ._caa .BubbleSize =_g .NewCT_NumDataSource ();};return MakeNumberDataSource (_fde ._caa .BubbleSize );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetValues sets values directly on a source.
|
|
|
|
func (_bced NumberDataSource )SetValues (v []float64 ){_bced .ensureChoice ();_bced ._bcec .Choice .NumRef =nil ;_bced ._bcec .Choice .NumLit =_g .NewCT_NumData ();_bced ._bcec .Choice .NumLit .PtCount =_g .NewCT_UnsignedInt ();_bced ._bcec .Choice .NumLit .PtCount .ValAttr =uint32 (len (v ));for _gffa ,_cdg :=range v {_bced ._bcec .Choice .NumLit .Pt =append (_bced ._bcec .Choice .NumLit .Pt ,&_g .CT_NumVal {IdxAttr :uint32 (_gffa ),V :_c .Sprintf ("\u0025\u0067",_cdg )});};};func (_gae CategoryAxis )SetMinorTickMark (m _g .ST_TickMark ){if m ==_g .ST_TickMarkUnset {_gae ._ccf .MinorTickMark =nil ;}else {_gae ._ccf .MinorTickMark =_g .NewCT_TickMark ();_gae ._ccf .MinorTickMark .ValAttr =m ;};};type GridLines struct{_bd *_g .CT_ChartLines };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Properties returns the line chart series shape properties.
|
|
|
|
func (_ffc LineChartSeries )Properties ()_gf .ShapeProperties {if _ffc ._dae .SpPr ==nil {_ffc ._dae .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_ffc ._dae .SpPr );};var _cb =[]_e .Color {_e .RGB (0x33,0x66,0xcc),_e .RGB (0xDC,0x39,0x12),_e .RGB (0xFF,0x99,0x00),_e .RGB (0x10,0x96,0x18),_e .RGB (0x99,0x00,0x99),_e .RGB (0x3B,0x3E,0xAC),_e .RGB (0x00,0x99,0xC6),_e .RGB (0xDD,0x44,0x77),_e .RGB (0x66,0xAA,0x00),_e .RGB (0xB8,0x2E,0x2E),_e .RGB (0x31,0x63,0x95),_e .RGB (0x99,0x44,0x99),_e .RGB (0x22,0xAA,0x99),_e .RGB (0xAA,0xAA,0x11),_e .RGB (0x66,0x33,0xCC),_e .RGB (0xE6,0x73,0x00),_e .RGB (0x8B,0x07,0x07),_e .RGB (0x32,0x92,0x62),_e .RGB (0x55,0x74,0xA6),_e .RGB (0x3B,0x3E,0xAC)};func (_eca Legend )InitializeDefaults (){_eca .SetPosition (_g .ST_LegendPosR );_eca .SetOverlay (false );_eca .Properties ().SetNoFill ();_eca .Properties ().LineProperties ().SetNoFill ();};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetOrder sets the order of the series
|
|
|
|
func (_gfdd LineChartSeries )SetOrder (idx uint32 ){_gfdd ._dae .Order .ValAttr =idx };func (_gdfa NumberDataSource )SetReference (s string ){_gdfa .ensureChoice ();if _gdfa ._bcec .Choice .NumRef ==nil {_gdfa ._bcec .Choice .NumRef =_g .NewCT_NumRef ();};_gdfa ._bcec .Choice .NumRef .F =s ;};func (_dadf Legend )SetPosition (p _g .ST_LegendPos ){if p ==_g .ST_LegendPosUnset {_dadf ._ccd .LegendPos =nil ;}else {_dadf ._ccd .LegendPos =_g .NewCT_LegendPos ();_dadf ._ccd .LegendPos .ValAttr =p ;};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// DoughnutChart is a Doughnut chart.
|
|
|
|
type DoughnutChart struct{chartBase ;_aba *_g .CT_DoughnutChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Marker returns the marker properties.
|
|
|
|
func (_bbg ScatterChartSeries )Marker ()Marker {if _bbg ._eaf .Marker ==nil {_bbg ._eaf .Marker =_g .NewCT_Marker ();};return MakeMarker (_bbg ._eaf .Marker );};func (_ebda DateAxis )SetMinorTickMark (m _g .ST_TickMark ){if m ==_g .ST_TickMarkUnset {_ebda ._aab .MinorTickMark =nil ;}else {_ebda ._aab .MinorTickMark =_g .NewCT_TickMark ();_ebda ._aab .MinorTickMark .ValAttr =m ;};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_ad BarChart )X ()*_g .CT_BarChart {return _ad ._gea };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// BubbleChartSeries is a series to be used on a Bubble chart.
|
|
|
|
type BubbleChartSeries struct{_caa *_g .CT_BubbleSer };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Surface3DChart is a 3D view of a surface chart.
|
|
|
|
type Surface3DChart struct{chartBase ;_gfgb *_g .CT_Surface3DChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Properties returns the Bubble chart series shape properties.
|
|
|
|
func (_fg BubbleChartSeries )Properties ()_gf .ShapeProperties {if _fg ._caa .SpPr ==nil {_fg ._caa .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_fg ._caa .SpPr );};type nullAxis byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_cdb Pie3DChart )X ()*_g .CT_Pie3DChart {return _cdb ._gdfg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Labels returns the data label properties.
|
|
|
|
func (_fbd LineChartSeries )Labels ()DataLabels {if _fbd ._dae .DLbls ==nil {_fbd ._dae .DLbls =_g .NewCT_DLbls ();};return MakeDataLabels (_fbd ._dae .DLbls );};func (_bgb DateAxis )SetPosition (p _g .ST_AxPos ){_bgb ._aab .AxPos =_g .NewCT_AxPos ();_bgb ._aab .AxPos .ValAttr =p ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// MakeAxisDataSource constructs an AxisDataSource wrapper.
|
|
|
|
func MakeAxisDataSource (x *_g .CT_AxDataSource )CategoryAxisDataSource {return CategoryAxisDataSource {x };};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AreaChart is an area chart that has a shaded area underneath a curve.
|
|
|
|
type AreaChart struct{chartBase ;_d *_g .CT_AreaChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_bdd PieChartSeries )Values ()NumberDataSource {if _bdd ._aad .Val ==nil {_bdd ._aad .Val =_g .NewCT_NumDataSource ();};return MakeNumberDataSource (_bdd ._aad .Val );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_fa AreaChartSeries )SetText (s string ){_fa ._bf .Tx =_g .NewCT_SerTx ();_fa ._bf .Tx .Choice .V =&s };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AreaChartSeries is a series to be used on an area chart.
|
|
|
|
type AreaChartSeries struct{_bf *_g .CT_AreaSer };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to an area chart.
|
|
|
|
func (_ga Area3DChart )AddSeries ()AreaChartSeries {_gg :=_ga .nextColor (len (_ga ._gfe .Ser ));_bc :=_g .NewCT_AreaSer ();_ga ._gfe .Ser =append (_ga ._gfe .Ser ,_bc );_bc .Idx .ValAttr =uint32 (len (_ga ._gfe .Ser )-1);_bc .Order .ValAttr =uint32 (len (_ga ._gfe .Ser )-1);_fea :=AreaChartSeries {_bc };_fea .InitializeDefaults ();_fea .Properties ().SetSolidFill (_gg );return _fea ;};func MakeMarker (x *_g .CT_Marker )Marker {return Marker {x }};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddRadarChart adds a new radar chart to a chart.
|
|
|
|
func (_cacg Chart )AddRadarChart ()RadarChart {_gdfb :=_g .NewCT_PlotAreaChoice ();_cacg ._gad .Chart .PlotArea .Choice =append (_cacg ._gad .Chart .PlotArea .Choice ,_gdfb );_gdfb .RadarChart =_g .NewCT_RadarChart ();_gdfe :=RadarChart {_deff :_gdfb .RadarChart };_gdfe .InitializeDefaults ();return _gdfe ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// LineChartSeries is the data series for a line chart.
|
|
|
|
type LineChartSeries struct{_dae *_g .CT_LineSer };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_ef BarChartSeries )Values ()NumberDataSource {if _ef ._ccb .Val ==nil {_ef ._ccb .Val =_g .NewCT_NumDataSource ();};return MakeNumberDataSource (_ef ._ccb .Val );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_dbc BubbleChart )X ()*_g .CT_BubbleChart {return _dbc ._eef };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_edae ScatterChartSeries )X ()*_g .CT_ScatterSer {return _edae ._eaf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_ag Bar3DChart )InitializeDefaults (){_ag .SetDirection (_g .ST_BarDirCol )};func (_gaab ValueAxis )Properties ()_gf .ShapeProperties {if _gaab ._edg .SpPr ==nil {_gaab ._edg .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_gaab ._edg .SpPr );};func MakeSeriesAxis (x *_g .CT_SerAx )SeriesAxis {return SeriesAxis {x }};func (_bad Marker )SetSymbol (s _g .ST_MarkerStyle ){if s ==_g .ST_MarkerStyleUnset {_bad ._aac .Symbol =nil ;}else {_bad ._aac .Symbol =_g .NewCT_MarkerStyle ();_bad ._aac .Symbol .ValAttr =s ;};};func (_dcf CategoryAxis )SetPosition (p _g .ST_AxPos ){_dcf ._ccf .AxPos =_g .NewCT_AxPos ();_dcf ._ccf .AxPos .ValAttr =p ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetType sets the type the secone pie to either pie or bar
|
|
|
|
func (_fce PieOfPieChart )SetType (t _g .ST_OfPieType ){_fce ._babg .OfPieType .ValAttr =t };func (_cfag LineChartSeries )SetSmooth (b bool ){_cfag ._dae .Smooth =_g .NewCT_Boolean ();_cfag ._dae .Smooth .ValAttr =&b ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_aadg PieOfPieChart )X ()*_g .CT_OfPieChart {return _aadg ._babg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddDateAxis adds a value axis to the chart.
|
|
|
|
func (_aged Chart )AddDateAxis ()DateAxis {_gfg :=_g .NewCT_DateAx ();if _aged ._gad .Chart .PlotArea .CChoice ==nil {_aged ._gad .Chart .PlotArea .CChoice =_g .NewCT_PlotAreaChoice1 ();};_gfg .AxId =_g .NewCT_UnsignedInt ();_gfg .AxId .ValAttr =0x7FFFFFFF&_b .Uint32 ();_aged ._gad .Chart .PlotArea .CChoice .DateAx =append (_aged ._gad .Chart .PlotArea .CChoice .DateAx ,_gfg );_gfg .Delete =_g .NewCT_Boolean ();_gfg .Delete .ValAttr =_gd .Bool (false );_gfg .Scaling =_g .NewCT_Scaling ();_gfg .Scaling .Orientation =_g .NewCT_Orientation ();_gfg .Scaling .Orientation .ValAttr =_g .ST_OrientationMinMax ;_gfg .Choice =&_g .EG_AxSharedChoice {};_gfg .Choice .Crosses =_g .NewCT_Crosses ();_gfg .Choice .Crosses .ValAttr =_g .ST_CrossesAutoZero ;_babc :=DateAxis {_gfg };_babc .MajorGridLines ().Properties ().LineProperties ().SetSolidFill (_e .LightGray );_babc .SetMajorTickMark (_g .ST_TickMarkOut );_babc .SetMinorTickMark (_g .ST_TickMarkIn );_babc .SetTickLabelPosition (_g .ST_TickLblPosNextTo );_babc .Properties ().LineProperties ().SetSolidFill (_e .Black );_babc .SetPosition (_g .ST_AxPosL );return _babc ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetOrder sets the order of the series
|
|
|
|
func (_ceb SurfaceChartSeries )SetOrder (idx uint32 ){_ceb ._facf .Order .ValAttr =idx };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// Properties returns the bar chart series shape properties.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_dcg BarChartSeries )Properties ()_gf .ShapeProperties {if _dcg ._ccb .SpPr ==nil {_dcg ._ccb .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_dcg ._ccb .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddPieChart adds a new pie chart to a chart.
|
|
|
|
func (_cg Chart )AddPieChart ()PieChart {_gdc :=_g .NewCT_PlotAreaChoice ();_cg ._gad .Chart .PlotArea .Choice =append (_cg ._gad .Chart .PlotArea .Choice ,_gdc );_gdc .PieChart =_g .NewCT_PieChart ();_ccfc :=PieChart {_ebf :_gdc .PieChart };_ccfc .InitializeDefaults ();return _ccfc ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// InitializeDefaults the bar chart to its defaults
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_cbcdc RadarChart )InitializeDefaults (){_cbcdc ._deff .RadarStyle .ValAttr =_g .ST_RadarStyleMarker ;};func (_cff DateAxis )Properties ()_gf .ShapeProperties {if _cff ._aab .SpPr ==nil {_cff ._aab .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_cff ._aab .SpPr );};type Legend struct{_ccd *_g .CT_Legend };func (_dfd CategoryAxis )MajorGridLines ()GridLines {if _dfd ._ccf .MajorGridlines ==nil {_dfd ._ccf .MajorGridlines =_g .NewCT_ChartLines ();};return GridLines {_dfd ._ccf .MajorGridlines };};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetText sets the series text
|
|
|
|
func (_fdaf ScatterChartSeries )SetText (s string ){_fdaf ._eaf .Tx =_g .NewCT_SerTx ();_fdaf ._eaf .Tx .Choice .V =&s ;};func (_eeg ScatterChartSeries )CategoryAxis ()CategoryAxisDataSource {if _eeg ._eaf .XVal ==nil {_eeg ._eaf .XVal =_g .NewCT_AxDataSource ();};return MakeAxisDataSource (_eeg ._eaf .XVal );};func _bce (_ffd *_g .CT_Chart ){_ffd .View3D =_g .NewCT_View3D ();_ffd .View3D .RotX =_g .NewCT_RotX ();_ffd .View3D .RotX .ValAttr =_gd .Int8 (15);_ffd .View3D .RotY =_g .NewCT_RotY ();_ffd .View3D .RotY .ValAttr =_gd .Uint16 (20);_ffd .View3D .RAngAx =_g .NewCT_Boolean ();_ffd .View3D .RAngAx .ValAttr =_gd .Bool (false );_ffd .Floor =_g .NewCT_Surface ();_ffd .Floor .Thickness =_g .NewCT_Thickness ();_ffd .Floor .Thickness .ValAttr .Uint32 =_gd .Uint32 (0);_ffd .SideWall =_g .NewCT_Surface ();_ffd .SideWall .Thickness =_g .NewCT_Thickness ();_ffd .SideWall .Thickness .ValAttr .Uint32 =_gd .Uint32 (0);_ffd .BackWall =_g .NewCT_Surface ();_ffd .BackWall .Thickness =_g .NewCT_Thickness ();_ffd .BackWall .Thickness .ValAttr .Uint32 =_gd .Uint32 (0);};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddBarChart adds a new bar chart to a chart.
|
|
|
|
func (_ddg Chart )AddBarChart ()BarChart {_ab :=_g .NewCT_PlotAreaChoice ();_ddg ._gad .Chart .PlotArea .Choice =append (_ddg ._gad .Chart .PlotArea .Choice ,_ab );_ab .BarChart =_g .NewCT_BarChart ();_ab .BarChart .Grouping =_g .NewCT_BarGrouping ();_ab .BarChart .Grouping .ValAttr =_g .ST_BarGroupingStandard ;_cdd :=BarChart {_gea :_ab .BarChart };_cdd .InitializeDefaults ();return _cdd ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_gbf PieChartSeries )CategoryAxis ()CategoryAxisDataSource {if _gbf ._aad .Cat ==nil {_gbf ._aad .Cat =_g .NewCT_AxDataSource ();};return MakeAxisDataSource (_gbf ._aad .Cat );};func (_dafa ValueAxis )SetMajorTickMark (m _g .ST_TickMark ){if m ==_g .ST_TickMarkUnset {_dafa ._edg .MajorTickMark =nil ;}else {_dafa ._edg .MajorTickMark =_g .NewCT_TickMark ();_dafa ._edg .MajorTickMark .ValAttr =m ;};};func (_dde CategoryAxis )SetCrosses (axis Axis ){_dde ._ccf .Choice =_g .NewEG_AxSharedChoice ();_dde ._ccf .Choice .Crosses =_g .NewCT_Crosses ();_dde ._ccf .Choice .Crosses .ValAttr =_g .ST_CrossesAutoZero ;_dde ._ccf .CrossAx .ValAttr =axis .AxisID ();};func (_aadd ValueAxis )SetMinorTickMark (m _g .ST_TickMark ){if m ==_g .ST_TickMarkUnset {_aadd ._edg .MinorTickMark =nil ;}else {_aadd ._edg .MinorTickMark =_g .NewCT_TickMark ();_aadd ._edg .MinorTickMark .ValAttr =m ;};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_cfac SeriesAxis )X ()*_g .CT_SerAx {return _cfac ._egff };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Properties returns the bar chart series shape properties.
|
|
|
|
func (_fdg RadarChartSeries )Properties ()_gf .ShapeProperties {if _fdg ._gbc .SpPr ==nil {_fdg ._gbc .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_fdg ._gbc .SpPr );};func (_bgbb Marker )SetSize (sz uint8 ){_bgbb ._aac .Size =_g .NewCT_MarkerSize ();_bgbb ._aac .Size .ValAttr =&sz ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddLine3DChart adds a new 3D line chart to a chart.
|
|
|
|
func (_fba Chart )AddLine3DChart ()Line3DChart {_bce (_fba ._gad .Chart );_ebe :=_g .NewCT_PlotAreaChoice ();_fba ._gad .Chart .PlotArea .Choice =append (_fba ._gad .Chart .PlotArea .Choice ,_ebe );_ebe .Line3DChart =_g .NewCT_Line3DChart ();_ebe .Line3DChart .Grouping =_g .NewCT_Grouping ();_ebe .Line3DChart .Grouping .ValAttr =_g .ST_GroupingStandard ;return Line3DChart {_gbda :_ebe .Line3DChart };};func (_gdd DateAxis )SetTickLabelPosition (p _g .ST_TickLblPos ){if p ==_g .ST_TickLblPosUnset {_gdd ._aab .TickLblPos =nil ;}else {_gdd ._aab .TickLblPos =_g .NewCT_TickLblPos ();_gdd ._aab .TickLblPos .ValAttr =p ;};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// RadarChart is an Radar chart that has a shaded Radar underneath a curve.
|
|
|
|
type RadarChart struct{chartBase ;_deff *_g .CT_RadarChart ;};func (_deg Title )RunProperties ()_gf .RunProperties {if _deg ._gaa .Tx ==nil {_deg .SetText ("");};if _deg ._gaa .Tx .Choice .Rich .P [0].EG_TextRun [0].R .RPr ==nil {_deg ._gaa .Tx .Choice .Rich .P [0].EG_TextRun [0].R .RPr =_bg .NewCT_TextCharacterProperties ();};return _gf .MakeRunProperties (_deg ._gaa .Tx .Choice .Rich .P [0].EG_TextRun [0].R .RPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddLegend adds a legend to a chart, replacing any existing legend.
|
|
|
|
func (_geg Chart )AddLegend ()Legend {_geg ._gad .Chart .Legend =_g .NewCT_Legend ();_dcb :=MakeLegend (_geg ._gad .Chart .Legend );_dcb .InitializeDefaults ();return _dcb ;};type ValueAxis struct{_edg *_g .CT_ValAx };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Bar3DChart is a 3D bar chart.
|
|
|
|
type Bar3DChart struct{chartBase ;_ebd *_g .CT_Bar3DChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Properties returns the bar chart series shape properties.
|
|
|
|
func (_edfe PieChartSeries )Properties ()_gf .ShapeProperties {if _edfe ._aad .SpPr ==nil {_edfe ._aad .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_edfe ._aad .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// InitializeDefaults initializes an area series to the default values.
|
|
|
|
func (_ge AreaChartSeries )InitializeDefaults (){};func (_cfdc DataLabels )SetShowValue (b bool ){_cfdc .ensureChoice ();_cfdc ._cda .Choice .ShowVal =_g .NewCT_Boolean ();_cfdc ._cda .Choice .ShowVal .ValAttr =_gd .Bool (b );};func (_ggeg DateAxis )SetMajorTickMark (m _g .ST_TickMark ){if m ==_g .ST_TickMarkUnset {_ggeg ._aab .MajorTickMark =nil ;}else {_ggeg ._aab .MajorTickMark =_g .NewCT_TickMark ();_ggeg ._aab .MajorTickMark .ValAttr =m ;};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// BubbleChart is a 2D Bubble chart.
|
|
|
|
type BubbleChart struct{chartBase ;_eef *_g .CT_BubbleChart ;};type SeriesAxis struct{_egff *_g .CT_SerAx };type ScatterChart struct{chartBase ;_fdee *_g .CT_ScatterChart ;};func MakeCategoryAxis (x *_g .CT_CatAx )CategoryAxis {return CategoryAxis {x }};func MakeTitle (x *_g .CT_Title )Title {return Title {x }};func MakeValueAxis (x *_g .CT_ValAx )ValueAxis {return ValueAxis {x }};func (_fcc ValueAxis )AxisID ()uint32 {return _fcc ._edg .AxId .ValAttr };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// PieOfPieChart is a Pie chart with an extra Pie chart.
|
2020-08-31 22:58:25 +00:00
|
|
|
type PieOfPieChart struct{chartBase ;_babg *_g .CT_OfPieChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Order returns the order of the series
|
|
|
|
func (_fdd LineChartSeries )Order ()uint32 {return _fdd ._dae .Order .ValAttr };
|
|
|
|
|
|
|
|
// Values returns the value data source.
|
|
|
|
func (_fga RadarChartSeries )Values ()NumberDataSource {if _fga ._gbc .Val ==nil {_fga ._gbc .Val =_g .NewCT_NumDataSource ();};return MakeNumberDataSource (_fga ._gbc .Val );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_daeb SurfaceChartSeries )X ()*_g .CT_SurfaceSer {return _daeb ._facf };func (_efb Surface3DChart )InitializeDefaults (){_efb ._gfgb .Wireframe =_g .NewCT_Boolean ();_efb ._gfgb .Wireframe .ValAttr =_gd .Bool (false );_efb ._gfgb .BandFmts =_g .NewCT_BandFmts ();for _gca :=0;_gca < 15;_gca ++{_daf :=_g .NewCT_BandFmt ();_daf .Idx .ValAttr =uint32 (_gca );_daf .SpPr =_bg .NewCT_ShapeProperties ();_eedc :=_gf .MakeShapeProperties (_daf .SpPr );_eedc .SetSolidFill (_efb .nextColor (_gca ));_efb ._gfgb .BandFmts .BandFmt =append (_efb ._gfgb .BandFmts .BandFmt ,_daf );};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SurfaceChart is a 3D surface chart, viewed from the top-down.
|
|
|
|
type SurfaceChart struct{chartBase ;_adeg *_g .CT_SurfaceChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// RemoveTitle removes any existing title from the chart.
|
|
|
|
func (_fgc Chart )RemoveTitle (){_fgc ._gad .Chart .Title =nil ;_fgc ._gad .Chart .AutoTitleDeleted =_g .NewCT_Boolean ();_fgc ._gad .Chart .AutoTitleDeleted .ValAttr =_gd .Bool (true );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_efcc DoughnutChart )InitializeDefaults (){_efcc ._aba .VaryColors =_g .NewCT_Boolean ();_efcc ._aba .VaryColors .ValAttr =_gd .Bool (true );_efcc ._aba .HoleSize =_g .NewCT_HoleSize ();_efcc ._aba .HoleSize .ValAttr =&_g .ST_HoleSize {};_efcc ._aba .HoleSize .ValAttr .ST_HoleSizeUByte =_gd .Uint8 (50);};func (_aea Title )InitializeDefaults (){_aea .SetText ("\u0054\u0069\u0074l\u0065");_aea .RunProperties ().SetSize (16*_f .Point );_aea .RunProperties ().SetSolidFill (_e .Black );_aea .RunProperties ().SetFont ("\u0043\u0061\u006c\u0069\u0062\u0020\u0072\u0069");_aea .RunProperties ().SetBold (false );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_fead AreaChartSeries )X ()*_g .CT_AreaSer {return _fead ._bf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Order returns the order of the series
|
|
|
|
func (_dee ScatterChartSeries )Order ()uint32 {return _dee ._eaf .Order .ValAttr };func (_ea AreaChart )AddAxis (axis Axis ){_fca :=_g .NewCT_UnsignedInt ();_fca .ValAttr =axis .AxisID ();_ea ._d .AxId =append (_ea ._d .AxId ,_fca );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddLineChart adds a new line chart to a chart.
|
|
|
|
func (_efa Chart )AddLineChart ()LineChart {_ffa :=_g .NewCT_PlotAreaChoice ();_efa ._gad .Chart .PlotArea .Choice =append (_efa ._gad .Chart .PlotArea .Choice ,_ffa );_ffa .LineChart =_g .NewCT_LineChart ();_ffa .LineChart .Grouping =_g .NewCT_Grouping ();_ffa .LineChart .Grouping .ValAttr =_g .ST_GroupingStandard ;return LineChart {_cbc :_ffa .LineChart };};
|
|
|
|
|
|
|
|
// AddStockChart adds a new stock chart.
|
|
|
|
func (_fff Chart )AddStockChart ()StockChart {_gfd :=_g .NewCT_PlotAreaChoice ();_fff ._gad .Chart .PlotArea .Choice =append (_fff ._gad .Chart .PlotArea .Choice ,_gfd );_gfd .StockChart =_g .NewCT_StockChart ();_dgab :=StockChart {_gfac :_gfd .StockChart };_dgab .InitializeDefaults ();return _dgab ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// SetIndex sets the index of the series
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_agc LineChartSeries )SetIndex (idx uint32 ){_agc ._dae .Idx .ValAttr =idx };func (_bca CategoryAxis )AxisID ()uint32 {return _bca ._ccf .AxId .ValAttr };func MakeDataLabels (x *_g .CT_DLbls )DataLabels {return DataLabels {x }};type CategoryAxis struct{_ccf *_g .CT_CatAx };type SurfaceChartSeries struct{_facf *_g .CT_SurfaceSer };
|
|
|
|
|
|
|
|
// SetText sets the series text.
|
|
|
|
func (_caf BarChartSeries )SetText (s string ){_caf ._ccb .Tx =_g .NewCT_SerTx ();_caf ._ccb .Tx .Choice .V =&s ;};
|
|
|
|
|
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_bcd PieChart )InitializeDefaults (){_bcd ._ebf .VaryColors =_g .NewCT_Boolean ();_bcd ._ebf .VaryColors .ValAttr =_gd .Bool (true );};
|
|
|
|
|
|
|
|
// 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{_egb *_g .CT_AxDataSource };
|
|
|
|
|
|
|
|
// SetValues is used to set the source data to a set of values.
|
|
|
|
func (_agf CategoryAxisDataSource )SetValues (v []string ){_agf ._egb .Choice =_g .NewCT_AxDataSourceChoice ();_agf ._egb .Choice .StrLit =_g .NewCT_StrData ();_agf ._egb .Choice .StrLit .PtCount =_g .NewCT_UnsignedInt ();_agf ._egb .Choice .StrLit .PtCount .ValAttr =uint32 (len (v ));for _bfg ,_ec :=range v {_agf ._egb .Choice .StrLit .Pt =append (_agf ._egb .Choice .StrLit .Pt ,&_g .CT_StrVal {IdxAttr :uint32 (_bfg ),V :_ec });};};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_fbe LineChartSeries )X ()*_g .CT_LineSer {return _fbe ._dae };type DateAxis struct{_aab *_g .CT_DateAx };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// InitializeDefaults initializes an Pie series to the default values.
|
|
|
|
func (_bfe PieChartSeries )InitializeDefaults (){};func MakeNumberDataSource (x *_g .CT_NumDataSource )NumberDataSource {return NumberDataSource {x }};
|
|
|
|
|
|
|
|
// Properties returns the line chart series shape properties.
|
|
|
|
func (_dgaf SurfaceChartSeries )Properties ()_gf .ShapeProperties {if _dgaf ._facf .SpPr ==nil {_dgaf ._facf .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_dgaf ._facf .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// AddSeries adds a default series to an Pie3D chart.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_gfed Pie3DChart )AddSeries ()PieChartSeries {_fda :=_g .NewCT_PieSer ();_gfed ._gdfg .Ser =append (_gfed ._gdfg .Ser ,_fda );_fda .Idx .ValAttr =uint32 (len (_gfed ._gdfg .Ser )-1);_fda .Order .ValAttr =uint32 (len (_gfed ._gdfg .Ser )-1);_gbg :=PieChartSeries {_fda };_gbg .InitializeDefaults ();return _gbg ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Properties returns the line chart series shape properties.
|
|
|
|
func (_adea ScatterChartSeries )Properties ()_gf .ShapeProperties {if _adea ._eaf .SpPr ==nil {_adea ._eaf .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_adea ._eaf .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Chart is a generic chart.
|
|
|
|
type Chart struct{_gad *_g .ChartSpace };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_bda LineChart )X ()*_g .CT_LineChart {return _bda ._cbc };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetDirection changes the direction of the bar chart (bar or column).
|
|
|
|
func (_aa Bar3DChart )SetDirection (d _g .ST_BarDir ){_aa ._ebd .BarDir .ValAttr =d };func (_gafg DataLabels )ensureChoice (){if _gafg ._cda .Choice ==nil {_gafg ._cda .Choice =_g .NewCT_DLblsChoice ();};};func (_fcf ScatterChartSeries )Values ()NumberDataSource {if _fcf ._eaf .YVal ==nil {_fcf ._eaf .YVal =_g .NewCT_NumDataSource ();};return MakeNumberDataSource (_fcf ._eaf .YVal );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddAxis adds an axis to a Scatter chart.
|
|
|
|
func (_dgg ScatterChart )AddAxis (axis Axis ){_fafa :=_g .NewCT_UnsignedInt ();_fafa .ValAttr =axis .AxisID ();_dgg ._fdee .AxId =append (_dgg ._fdee .AxId ,_fafa );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetIndex sets the index of the series
|
|
|
|
func (_cfb SurfaceChartSeries )SetIndex (idx uint32 ){_cfb ._facf .Idx .ValAttr =idx };func (_ecd Legend )Properties ()_gf .ShapeProperties {if _ecd ._ccd .SpPr ==nil {_ecd ._ccd .SpPr =_bg .NewCT_ShapeProperties ();};return _gf .MakeShapeProperties (_ecd ._ccd .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSurface3DChart adds a new 3D surface chart to a chart.
|
|
|
|
func (_def Chart )AddSurface3DChart ()Surface3DChart {_eag :=_g .NewCT_PlotAreaChoice ();_def ._gad .Chart .PlotArea .Choice =append (_def ._gad .Chart .PlotArea .Choice ,_eag );_eag .Surface3DChart =_g .NewCT_Surface3DChart ();_bce (_def ._gad .Chart );_gba :=Surface3DChart {_gfgb :_eag .Surface3DChart };_gba .InitializeDefaults ();return _gba ;};func (_ffb StockChart )AddAxis (axis Axis ){_fdda :=_g .NewCT_UnsignedInt ();_fdda .ValAttr =axis .AxisID ();_ffb ._gfac .AxId =append (_ffb ._gfac .AxId ,_fdda );};func (_ccaa DataLabels )SetShowCategoryName (b bool ){_ccaa .ensureChoice ();_ccaa ._cda .Choice .ShowCatName =_g .NewCT_Boolean ();_ccaa ._cda .Choice .ShowCatName .ValAttr =_gd .Bool (b );};func (_ddabg ScatterChartSeries )InitializeDefaults (){_ddabg .Properties ().LineProperties ().SetNoFill ();_ddabg .Marker ().SetSymbol (_g .ST_MarkerStyleAuto );_ddabg .Labels ().SetShowLegendKey (false );_ddabg .Labels ().SetShowValue (true );_ddabg .Labels ().SetShowPercent (false );_ddabg .Labels ().SetShowCategoryName (false );_ddabg .Labels ().SetShowSeriesName (false );_ddabg .Labels ().SetShowLeaderLines (false );};func (_cabc SurfaceChart )InitializeDefaults (){_cabc ._adeg .Wireframe =_g .NewCT_Boolean ();_cabc ._adeg .Wireframe .ValAttr =_gd .Bool (false );_cabc ._adeg .BandFmts =_g .NewCT_BandFmts ();for _fag :=0;_fag < 15;_fag ++{_acd :=_g .NewCT_BandFmt ();_acd .Idx .ValAttr =uint32 (_fag );_acd .SpPr =_bg .NewCT_ShapeProperties ();_cfaea :=_gf .MakeShapeProperties (_acd .SpPr );_cfaea .SetSolidFill (_cabc .nextColor (_fag ));_cabc ._adeg .BandFmts .BandFmt =append (_cabc ._adeg .BandFmts .BandFmt ,_acd );};};func (_fcbf ScatterChartSeries )SetSmooth (b bool ){_fcbf ._eaf .Smooth =_g .NewCT_Boolean ();_fcbf ._eaf .Smooth .ValAttr =&b ;};func (_bcda Title )SetText (s string ){if _bcda ._gaa .Tx ==nil {_bcda ._gaa .Tx =_g .NewCT_Tx ();};if _bcda ._gaa .Tx .Choice .Rich ==nil {_bcda ._gaa .Tx .Choice .Rich =_bg .NewCT_TextBody ();};var _aeb *_bg .CT_TextParagraph ;if len (_bcda ._gaa .Tx .Choice .Rich .P )==0{_aeb =_bg .NewCT_TextParagraph ();_bcda ._gaa .Tx .Choice .Rich .P =[]*_bg .CT_TextParagraph {_aeb };}else {_aeb =_bcda ._gaa .Tx .Choice .Rich .P [0];};var _ddf *_bg .EG_TextRun ;if len (_aeb .EG_TextRun )==0{_ddf =_bg .NewEG_TextRun ();_aeb .EG_TextRun =[]*_bg .EG_TextRun {_ddf };}else {_ddf =_aeb .EG_TextRun [0];};if _ddf .R ==nil {_ddf .R =_bg .NewCT_RegularTextRun ();};_ddf .R .T =s ;};func (_fced SurfaceChartSeries )InitializeDefaults (){_fced .Properties ().LineProperties ().SetWidth (1*_f .Point );_fced .Properties ().LineProperties ().SetSolidFill (_e .Black );_fced .Properties ().LineProperties ().SetJoin (_gf .LineJoinRound );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Index returns the index of the series
|
|
|
|
func (_eadd ScatterChartSeries )Index ()uint32 {return _eadd ._eaf .Idx .ValAttr };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddPie3DChart adds a new pie chart to a chart.
|
|
|
|
func (_cgf Chart )AddPie3DChart ()Pie3DChart {_bce (_cgf ._gad .Chart );_cfda :=_g .NewCT_PlotAreaChoice ();_cgf ._gad .Chart .PlotArea .Choice =append (_cgf ._gad .Chart .PlotArea .Choice ,_cfda );_cfda .Pie3DChart =_g .NewCT_Pie3DChart ();_feb :=Pie3DChart {_gdfg :_cfda .Pie3DChart };_feb .InitializeDefaults ();return _feb ;};func (_ebec ValueAxis )MajorGridLines ()GridLines {if _ebec ._edg .MajorGridlines ==nil {_ebec ._edg .MajorGridlines =_g .NewCT_ChartLines ();};return GridLines {_ebec ._edg .MajorGridlines };};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to a Surface chart.
|
|
|
|
func (_egg Surface3DChart )AddSeries ()SurfaceChartSeries {_eage :=_egg .nextColor (len (_egg ._gfgb .Ser ));_cfe :=_g .NewCT_SurfaceSer ();_egg ._gfgb .Ser =append (_egg ._gfgb .Ser ,_cfe );_cfe .Idx .ValAttr =uint32 (len (_egg ._gfgb .Ser )-1);_cfe .Order .ValAttr =uint32 (len (_egg ._gfgb .Ser )-1);_gce :=SurfaceChartSeries {_cfe };_gce .InitializeDefaults ();_gce .Properties ().LineProperties ().SetSolidFill (_eage );return _gce ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Area3DChart is an area chart that has a shaded area underneath a curve.
|
|
|
|
type Area3DChart struct{chartBase ;_gfe *_g .CT_Area3DChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to an area chart.
|
|
|
|
func (_gb AreaChart )AddSeries ()AreaChartSeries {_dg :=_gb .nextColor (len (_gb ._d .Ser ));_gcc :=_g .NewCT_AreaSer ();_gb ._d .Ser =append (_gb ._d .Ser ,_gcc );_gcc .Idx .ValAttr =uint32 (len (_gb ._d .Ser )-1);_gcc .Order .ValAttr =uint32 (len (_gb ._d .Ser )-1);_bgc :=AreaChartSeries {_gcc };_bgc .InitializeDefaults ();_bgc .Properties ().SetSolidFill (_dg );return _bgc ;};func (_ddca Legend )SetOverlay (b bool ){_ddca ._ccd .Overlay =_g .NewCT_Boolean ();_ddca ._ccd .Overlay .ValAttr =_gd .Bool (b );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// PieChartSeries is a series to be used on an Pie chart.
|
|
|
|
type PieChartSeries struct{_aad *_g .CT_PieSer };type Marker struct{_aac *_g .CT_Marker };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_fcac Chart )X ()*_g .ChartSpace {return _fcac ._gad };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddAxis adds an axis to a Surface chart.
|
|
|
|
func (_fgb SurfaceChart )AddAxis (axis Axis ){_gfbg :=_g .NewCT_UnsignedInt ();_gfbg .ValAttr =axis .AxisID ();_fgb ._adeg .AxId =append (_fgb ._adeg .AxId ,_gfbg );};func (_gafd SeriesAxis )SetCrosses (axis Axis ){_gafd ._egff .CrossAx .ValAttr =axis .AxisID ()};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_dfdf RadarChartSeries )SetText (s string ){_dfdf ._gbc .Tx =_g .NewCT_SerTx ();_dfdf ._gbc .Tx .Choice .V =&s ;};
|
|
|
|
|
|
|
|
// AddAxis adds an axis to a Surface chart.
|
|
|
|
func (_bbdb Surface3DChart )AddAxis (axis Axis ){_ccba :=_g .NewCT_UnsignedInt ();_ccba .ValAttr =axis .AxisID ();_bbdb ._gfgb .AxId =append (_bbdb ._gfgb .AxId ,_ccba );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_egf DoughnutChart )X ()*_g .CT_DoughnutChart {return _egf ._aba };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_dbcc Title )X ()*_g .CT_Title {return _dbcc ._gaa };func (_ddgd SeriesAxis )AxisID ()uint32 {return _ddgd ._egff .AxId .ValAttr };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSurfaceChart adds a new surface chart to a chart.
|
|
|
|
func (_faec Chart )AddSurfaceChart ()SurfaceChart {_egee :=_g .NewCT_PlotAreaChoice ();_faec ._gad .Chart .PlotArea .Choice =append (_faec ._gad .Chart .PlotArea .Choice ,_egee );_egee .SurfaceChart =_g .NewCT_SurfaceChart ();_bce (_faec ._gad .Chart );_faec ._gad .Chart .View3D .RotX .ValAttr =_gd .Int8 (90);_faec ._gad .Chart .View3D .RotY .ValAttr =_gd .Uint16 (0);_faec ._gad .Chart .View3D .Perspective =_g .NewCT_Perspective ();_faec ._gad .Chart .View3D .Perspective .ValAttr =_gd .Uint8 (0);_ega :=SurfaceChart {_adeg :_egee .SurfaceChart };_ega .InitializeDefaults ();return _ega ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// InitializeDefaults the Stock chart to its defaults
|
|
|
|
func (_dcbe StockChart )InitializeDefaults (){_dcbe ._gfac .HiLowLines =_g .NewCT_ChartLines ();_dcbe ._gfac .UpDownBars =_g .NewCT_UpDownBars ();_dcbe ._gfac .UpDownBars .GapWidth =_g .NewCT_GapAmount ();_dcbe ._gfac .UpDownBars .GapWidth .ValAttr =&_g .ST_GapAmount {};_dcbe ._gfac .UpDownBars .GapWidth .ValAttr .ST_GapAmountUShort =_gd .Uint16 (150);_dcbe ._gfac .UpDownBars .UpBars =_g .NewCT_UpDownBar ();_dcbe ._gfac .UpDownBars .DownBars =_g .NewCT_UpDownBar ();};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// SetLabelReference is used to set the source data to a range of cells
|
|
|
|
// containing strings.
|
|
|
|
func (_bae CategoryAxisDataSource )SetLabelReference (s string ){_bae ._egb .Choice =_g .NewCT_AxDataSourceChoice ();_bae ._egb .Choice .StrRef =_g .NewCT_StrRef ();_bae ._egb .Choice .StrRef .F =s ;};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_gbd BubbleChartSeries )Values ()NumberDataSource {if _gbd ._caa .YVal ==nil {_gbd ._caa .YVal =_g .NewCT_NumDataSource ();};return MakeNumberDataSource (_gbd ._caa .YVal );};func (_ggd CategoryAxis )SetTickLabelPosition (p _g .ST_TickLblPos ){if p ==_g .ST_TickLblPosUnset {_ggd ._ccf .TickLblPos =nil ;}else {_ggd ._ccf .TickLblPos =_g .NewCT_TickLblPos ();_ggd ._ccf .TickLblPos .ValAttr =p ;};};func (_dd BarChart )AddAxis (axis Axis ){_ca :=_g .NewCT_UnsignedInt ();_ca .ValAttr =axis .AxisID ();_dd ._gea .AxId =append (_dd ._gea .AxId ,_ca );};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2020-08-23 14:15:53 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_ed BubbleChartSeries )X ()*_g .CT_BubbleSer {return _ed ._caa };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// AddSeries adds a default series to a Surface chart.
|
|
|
|
func (_bgd SurfaceChart )AddSeries ()SurfaceChartSeries {_fedg :=_bgd .nextColor (len (_bgd ._adeg .Ser ));_gecd :=_g .NewCT_SurfaceSer ();_bgd ._adeg .Ser =append (_bgd ._adeg .Ser ,_gecd );_gecd .Idx .ValAttr =uint32 (len (_bgd ._adeg .Ser )-1);_gecd .Order .ValAttr =uint32 (len (_bgd ._adeg .Ser )-1);_dddf :=SurfaceChartSeries {_gecd };_dddf .InitializeDefaults ();_dddf .Properties ().LineProperties ().SetSolidFill (_fedg );return _dddf ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_fe Area3DChart )InitializeDefaults (){};func MakeChart (x *_g .ChartSpace )Chart {return Chart {x }};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_gfc Surface3DChart )X ()*_g .CT_Surface3DChart {return _gfc ._gfgb };
|
|
|
|
|
|
|
|
// ScatterChartSeries is the data series for a scatter chart.
|
|
|
|
type ScatterChartSeries struct{_eaf *_g .CT_ScatterSer };
|