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
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
package chart ;import (_e "fmt";_g "github.com/unidoc/unioffice";_gc "github.com/unidoc/unioffice/color";_c "github.com/unidoc/unioffice/drawing";_bb "github.com/unidoc/unioffice/measurement";_eb "github.com/unidoc/unioffice/schema/soo/dml";_f "github.com/unidoc/unioffice/schema/soo/dml/chart";_ef "math/rand";);
|
2017-09-03 16:47:46 -05:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetIndex sets the index of the series
|
|
|
|
func (_gccc ScatterChartSeries )SetIndex (idx uint32 ){_gccc ._aab .Idx .ValAttr =idx };var _dgbb =[]_gc .Color {_gc .RGB (0x33,0x66,0xcc),_gc .RGB (0xDC,0x39,0x12),_gc .RGB (0xFF,0x99,0x00),_gc .RGB (0x10,0x96,0x18),_gc .RGB (0x99,0x00,0x99),_gc .RGB (0x3B,0x3E,0xAC),_gc .RGB (0x00,0x99,0xC6),_gc .RGB (0xDD,0x44,0x77),_gc .RGB (0x66,0xAA,0x00),_gc .RGB (0xB8,0x2E,0x2E),_gc .RGB (0x31,0x63,0x95),_gc .RGB (0x99,0x44,0x99),_gc .RGB (0x22,0xAA,0x99),_gc .RGB (0xAA,0xAA,0x11),_gc .RGB (0x66,0x33,0xCC),_gc .RGB (0xE6,0x73,0x00),_gc .RGB (0x8B,0x07,0x07),_gc .RGB (0x32,0x92,0x62),_gc .RGB (0x55,0x74,0xA6),_gc .RGB (0x3B,0x3E,0xAC)};func (_aa nullAxis )AxisID ()uint32 {return 0};func (_gafe SeriesAxis )InitializeDefaults (){};func (_faef DataLabels )SetPosition (p _f .ST_DLblPos ){_faef .ensureChoice ();_faef ._gbc .Choice .DLblPos =_f .NewCT_DLblPos ();_faef ._gbc .Choice .DLblPos .ValAttr =p ;};
|
2017-09-03 16:47:46 -05:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Properties returns the bar chart series shape properties.
|
|
|
|
func (_ea AreaChartSeries )Properties ()_c .ShapeProperties {if _ea ._bcd .SpPr ==nil {_ea ._bcd .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_ea ._bcd .SpPr );};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_fab BarChartSeries )X ()*_f .CT_BarSer {return _fab ._ae };func (_cce DateAxis )SetCrosses (axis Axis ){_cce ._acae .CrossAx .ValAttr =axis .AxisID ()};func (_fed Legend )Properties ()_c .ShapeProperties {if _fed ._bac .SpPr ==nil {_fed ._bac .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_fed ._bac .SpPr );};func (_fbg DateAxis )MajorGridLines ()GridLines {if _fbg ._acae .MajorGridlines ==nil {_fbg ._acae .MajorGridlines =_f .NewCT_ChartLines ();};return GridLines {_fbg ._acae .MajorGridlines };};func (_cag LineChartSeries )CategoryAxis ()CategoryAxisDataSource {if _cag ._gefa .Cat ==nil {_cag ._gefa .Cat =_f .NewCT_AxDataSource ();};return MakeAxisDataSource (_cag ._gefa .Cat );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// BubbleChart is a 2D Bubble chart.
|
|
|
|
type BubbleChart struct{chartBase ;_bfe *_f .CT_BubbleChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Labels returns the data label properties.
|
|
|
|
func (_gadf ScatterChartSeries )Labels ()DataLabels {if _gadf ._aab .DLbls ==nil {_gadf ._aab .DLbls =_f .NewCT_DLbls ();};return MakeDataLabels (_gadf ._aab .DLbls );};func (_bdd Chart )AddSeriesAxis ()SeriesAxis {_abdc :=_f .NewCT_SerAx ();if _bdd ._faeg .Chart .PlotArea .CChoice ==nil {_bdd ._faeg .Chart .PlotArea .CChoice =_f .NewCT_PlotAreaChoice1 ();};_abdc .AxId =_f .NewCT_UnsignedInt ();_abdc .AxId .ValAttr =0x7FFFFFFF&_ef .Uint32 ();_bdd ._faeg .Chart .PlotArea .CChoice .SerAx =append (_bdd ._faeg .Chart .PlotArea .CChoice .SerAx ,_abdc );_abdc .Delete =_f .NewCT_Boolean ();_abdc .Delete .ValAttr =_g .Bool (false );_dce :=MakeSeriesAxis (_abdc );_dce .InitializeDefaults ();return _dce ;};func (_afd DateAxis )SetPosition (p _f .ST_AxPos ){_afd ._acae .AxPos =_f .NewCT_AxPos ();_afd ._acae .AxPos .ValAttr =p ;};func (_bbbg DataLabels )SetShowValue (b bool ){_bbbg .ensureChoice ();_bbbg ._gbc .Choice .ShowVal =_f .NewCT_Boolean ();_bbbg ._gbc .Choice .ShowVal .ValAttr =_g .Bool (b );};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to an Doughnut chart.
|
|
|
|
func (_dd DoughnutChart )AddSeries ()PieChartSeries {_gdb :=_f .NewCT_PieSer ();_dd ._cbd .Ser =append (_dd ._cbd .Ser ,_gdb );_gdb .Idx .ValAttr =uint32 (len (_dd ._cbd .Ser )-1);_gdb .Order .ValAttr =uint32 (len (_dd ._cbd .Ser )-1);_bfg :=PieChartSeries {_gdb };_bfg .InitializeDefaults ();return _bfg ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetText sets the series text
|
|
|
|
func (_ddb ScatterChartSeries )SetText (s string ){_ddb ._aab .Tx =_f .NewCT_SerTx ();_ddb ._aab .Tx .Choice .V =&s ;};type nullAxis byte ;
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddAxis adds an axis to a Scatter chart.
|
|
|
|
func (_daag ScatterChart )AddAxis (axis Axis ){_bagda :=_f .NewCT_UnsignedInt ();_bagda .ValAttr =axis .AxisID ();_daag ._babd .AxId =append (_daag ._babd .AxId ,_bagda );};func (_caa ValueAxis )SetMajorTickMark (m _f .ST_TickMark ){if m ==_f .ST_TickMarkUnset {_caa ._cee .MajorTickMark =nil ;}else {_caa ._cee .MajorTickMark =_f .NewCT_TickMark ();_caa ._cee .MajorTickMark .ValAttr =m ;};};
|
|
|
|
|
|
|
|
// Chart is a generic chart.
|
|
|
|
type Chart struct{_faeg *_f .ChartSpace };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_ff Area3DChart )X ()*_f .CT_Area3DChart {return _ff ._gb };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_gdf RadarChart )InitializeDefaults (){_gdf ._bddf .RadarStyle .ValAttr =_f .ST_RadarStyleMarker };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_d AreaChart )InitializeDefaults (){};func MakeChart (x *_f .ChartSpace )Chart {return Chart {x }};func (_eed ValueAxis )SetCrosses (axis Axis ){_eed ._cee .CrossAx .ValAttr =axis .AxisID ()};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to an Pie3D chart.
|
|
|
|
func (_bbce Pie3DChart )AddSeries ()PieChartSeries {_eabd :=_f .NewCT_PieSer ();_bbce ._abb .Ser =append (_bbce ._abb .Ser ,_eabd );_eabd .Idx .ValAttr =uint32 (len (_bbce ._abb .Ser )-1);_eabd .Order .ValAttr =uint32 (len (_bbce ._abb .Ser )-1);_acd :=PieChartSeries {_eabd };_acd .InitializeDefaults ();return _acd ;};
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddBarChart adds a new bar chart to a chart.
|
|
|
|
func (_abd Chart )AddBarChart ()BarChart {_cb :=_f .NewCT_PlotAreaChoice ();_abd ._faeg .Chart .PlotArea .Choice =append (_abd ._faeg .Chart .PlotArea .Choice ,_cb );_cb .BarChart =_f .NewCT_BarChart ();_cb .BarChart .Grouping =_f .NewCT_BarGrouping ();_cb .BarChart .Grouping .ValAttr =_f .ST_BarGroupingStandard ;_agcg :=BarChart {_gcc :_cb .BarChart };_agcg .InitializeDefaults ();return _agcg ;};type NumberDataSource struct{_gcfg *_f .CT_NumDataSource };
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetValues sets values directly on a source.
|
|
|
|
func (_dfe NumberDataSource )SetValues (v []float64 ){_dfe .ensureChoice ();_dfe ._gcfg .Choice .NumRef =nil ;_dfe ._gcfg .Choice .NumLit =_f .NewCT_NumData ();_dfe ._gcfg .Choice .NumLit .PtCount =_f .NewCT_UnsignedInt ();_dfe ._gcfg .Choice .NumLit .PtCount .ValAttr =uint32 (len (v ));for _cfa ,_agd :=range v {_dfe ._gcfg .Choice .NumLit .Pt =append (_dfe ._gcfg .Choice .NumLit .Pt ,&_f .CT_NumVal {IdxAttr :uint32 (_cfa ),V :_e .Sprintf ("\u0025\u0067",_agd )});};};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetIndex sets the index of the series
|
|
|
|
func (_fdca SurfaceChartSeries )SetIndex (idx uint32 ){_fdca ._ddbd .Idx .ValAttr =idx };func (_eaaf Title )SetText (s string ){if _eaaf ._aeab .Tx ==nil {_eaaf ._aeab .Tx =_f .NewCT_Tx ();};if _eaaf ._aeab .Tx .Choice .Rich ==nil {_eaaf ._aeab .Tx .Choice .Rich =_eb .NewCT_TextBody ();};var _fgea *_eb .CT_TextParagraph ;if len (_eaaf ._aeab .Tx .Choice .Rich .P )==0{_fgea =_eb .NewCT_TextParagraph ();_eaaf ._aeab .Tx .Choice .Rich .P =[]*_eb .CT_TextParagraph {_fgea };}else {_fgea =_eaaf ._aeab .Tx .Choice .Rich .P [0];};var _cedd *_eb .EG_TextRun ;if len (_fgea .EG_TextRun )==0{_cedd =_eb .NewEG_TextRun ();_fgea .EG_TextRun =[]*_eb .EG_TextRun {_cedd };}else {_cedd =_fgea .EG_TextRun [0];};if _cedd .R ==nil {_cedd .R =_eb .NewCT_RegularTextRun ();};_cedd .R .T =s ;};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Area3DChart is an area chart that has a shaded area underneath a curve.
|
|
|
|
type Area3DChart struct{chartBase ;_gb *_f .CT_Area3DChart ;};func MakeSeriesAxis (x *_f .CT_SerAx )SeriesAxis {return SeriesAxis {x }};func (_faba Legend )SetPosition (p _f .ST_LegendPos ){if p ==_f .ST_LegendPosUnset {_faba ._bac .LegendPos =nil ;}else {_faba ._bac .LegendPos =_f .NewCT_LegendPos ();_faba ._bac .LegendPos .ValAttr =p ;};};func MakeTitle (x *_f .CT_Title )Title {return Title {x }};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_fgd ValueAxis )X ()*_f .CT_ValAx {return _fgd ._cee };func MakeLegend (l *_f .CT_Legend )Legend {return Legend {l }};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults the Bubble chart to its defaults
|
|
|
|
func (_aea BubbleChart )InitializeDefaults (){};func (_bbf CategoryAxis )SetPosition (p _f .ST_AxPos ){_bbf ._bg .AxPos =_f .NewCT_AxPos ();_bbf ._bg .AxPos .ValAttr =p ;};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetDisplayBlanksAs controls how missing values are displayed.
|
|
|
|
func (_ffec Chart )SetDisplayBlanksAs (v _f .ST_DispBlanksAs ){_ffec ._faeg .Chart .DispBlanksAs =_f .NewCT_DispBlanksAs ();_ffec ._faeg .Chart .DispBlanksAs .ValAttr =v ;};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_eae DoughnutChart )InitializeDefaults (){_eae ._cbd .VaryColors =_f .NewCT_Boolean ();_eae ._cbd .VaryColors .ValAttr =_g .Bool (true );_eae ._cbd .HoleSize =_f .NewCT_HoleSize ();_eae ._cbd .HoleSize .ValAttr =&_f .ST_HoleSize {};_eae ._cbd .HoleSize .ValAttr .ST_HoleSizeUByte =_g .Uint8 (50);};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// MakeAxisDataSource constructs an AxisDataSource wrapper.
|
|
|
|
func MakeAxisDataSource (x *_f .CT_AxDataSource )CategoryAxisDataSource {return CategoryAxisDataSource {x };};func (_bgf ValueAxis )Properties ()_c .ShapeProperties {if _bgf ._cee .SpPr ==nil {_bgf ._cee .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_bgf ._cee .SpPr );};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-02-05 13:05:36 +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{_bfa *_f .CT_AxDataSource };
|
2022-01-15 21:17:38 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to a Bubble chart.
|
|
|
|
func (_gfb BubbleChart )AddSeries ()BubbleChartSeries {_fea :=_gfb .nextColor (len (_gfb ._bfe .Ser ));_ca :=_f .NewCT_BubbleSer ();_gfb ._bfe .Ser =append (_gfb ._bfe .Ser ,_ca );_ca .Idx .ValAttr =uint32 (len (_gfb ._bfe .Ser )-1);_ca .Order .ValAttr =uint32 (len (_gfb ._bfe .Ser )-1);_abe :=BubbleChartSeries {_ca };_abe .InitializeDefaults ();_abe .Properties ().SetSolidFill (_fea );return _abe ;};
|
2022-01-15 21:17:38 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddAxis adds an axis to a line chart.
|
|
|
|
func (_fbge Line3DChart )AddAxis (axis Axis ){_ggad :=_f .NewCT_UnsignedInt ();_ggad .ValAttr =axis .AxisID ();_fbge ._bbfc .AxId =append (_fbge ._bbfc .AxId ,_ggad );};
|
2022-01-15 21:17:38 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults initializes a bar chart series to the default values.
|
|
|
|
func (_gfd BarChartSeries )InitializeDefaults (){};func (_eebg ValueAxis )AxisID ()uint32 {return _eebg ._cee .AxId .ValAttr };type Title struct{_aeab *_f .CT_Title };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_cbc LineChart )X ()*_f .CT_LineChart {return _cbc ._bfff };
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddBubbleChart adds a new bubble chart.
|
|
|
|
func (_bd Chart )AddBubbleChart ()BubbleChart {_bbc :=_f .NewCT_PlotAreaChoice ();_bd ._faeg .Chart .PlotArea .Choice =append (_bd ._faeg .Chart .PlotArea .Choice ,_bbc );_bbc .BubbleChart =_f .NewCT_BubbleChart ();_eeb :=BubbleChart {_bfe :_bbc .BubbleChart };_eeb .InitializeDefaults ();return _eeb ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSurfaceChart adds a new surface chart to a chart.
|
|
|
|
func (_eab Chart )AddSurfaceChart ()SurfaceChart {_gbdf :=_f .NewCT_PlotAreaChoice ();_eab ._faeg .Chart .PlotArea .Choice =append (_eab ._faeg .Chart .PlotArea .Choice ,_gbdf );_gbdf .SurfaceChart =_f .NewCT_SurfaceChart ();_df (_eab ._faeg .Chart );_eab ._faeg .Chart .View3D .RotX .ValAttr =_g .Int8 (90);_eab ._faeg .Chart .View3D .RotY .ValAttr =_g .Uint16 (0);_eab ._faeg .Chart .View3D .Perspective =_f .NewCT_Perspective ();_eab ._faeg .Chart .View3D .Perspective .ValAttr =_g .Uint8 (0);_dgd :=SurfaceChart {_ffbd :_gbdf .SurfaceChart };_dgd .InitializeDefaults ();return _dgd ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// PieOfPieChart is a Pie chart with an extra Pie chart.
|
|
|
|
type PieOfPieChart struct{chartBase ;_age *_f .CT_OfPieChart ;};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddPieChart adds a new pie chart to a chart.
|
|
|
|
func (_bcdg Chart )AddPieChart ()PieChart {_bba :=_f .NewCT_PlotAreaChoice ();_bcdg ._faeg .Chart .PlotArea .Choice =append (_bcdg ._faeg .Chart .PlotArea .Choice ,_bba );_bba .PieChart =_f .NewCT_PieChart ();_cad :=PieChart {_bea :_bba .PieChart };_cad .InitializeDefaults ();return _cad ;};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// SetText sets the series text.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_daa RadarChartSeries )SetText (s string ){_daa ._gefc .Tx =_f .NewCT_SerTx ();_daa ._gefc .Tx .Choice .V =&s ;};func (_add Title )RunProperties ()_c .RunProperties {if _add ._aeab .Tx ==nil {_add .SetText ("");};if _add ._aeab .Tx .Choice .Rich .P [0].EG_TextRun [0].R .RPr ==nil {_add ._aeab .Tx .Choice .Rich .P [0].EG_TextRun [0].R .RPr =_eb .NewCT_TextCharacterProperties ();};return _c .MakeRunProperties (_add ._aeab .Tx .Choice .Rich .P [0].EG_TextRun [0].R .RPr );};func (_fdg ScatterChartSeries )SetSmooth (b bool ){_fdg ._aab .Smooth =_f .NewCT_Boolean ();_fdg ._aab .Smooth .ValAttr =&b ;};
|
2017-09-05 20:20:00 -04:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Properties returns the Bubble chart series shape properties.
|
|
|
|
func (_ebd BubbleChartSeries )Properties ()_c .ShapeProperties {if _ebd ._ad .SpPr ==nil {_ebd ._ad .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_ebd ._ad .SpPr );};func (_caf CategoryAxis )SetMinorTickMark (m _f .ST_TickMark ){if m ==_f .ST_TickMarkUnset {_caf ._bg .MinorTickMark =nil ;}else {_caf ._bg .MinorTickMark =_f .NewCT_TickMark ();_caf ._bg .MinorTickMark .ValAttr =m ;};};
|
2017-09-07 12:08:13 -04:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_fega RadarChartSeries )CategoryAxis ()CategoryAxisDataSource {if _fega ._gefc .Cat ==nil {_fega ._gefc .Cat =_f .NewCT_AxDataSource ();};return MakeAxisDataSource (_fega ._gefc .Cat );};
|
2017-09-07 12:08:13 -04:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AreaChartSeries is a series to be used on an area chart.
|
|
|
|
type AreaChartSeries struct{_bcd *_f .CT_AreaSer };func (_abeg Marker )SetSymbol (s _f .ST_MarkerStyle ){if s ==_f .ST_MarkerStyleUnset {_abeg ._gbdc .Symbol =nil ;}else {_abeg ._gbdc .Symbol =_f .NewCT_MarkerStyle ();_abeg ._gbdc .Symbol .ValAttr =s ;};};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSurface3DChart adds a new 3D surface chart to a chart.
|
|
|
|
func (_aaa Chart )AddSurface3DChart ()Surface3DChart {_bfd :=_f .NewCT_PlotAreaChoice ();_aaa ._faeg .Chart .PlotArea .Choice =append (_aaa ._faeg .Chart .PlotArea .Choice ,_bfd );_bfd .Surface3DChart =_f .NewCT_Surface3DChart ();_df (_aaa ._faeg .Chart );_bag :=Surface3DChart {_bfb :_bfd .Surface3DChart };_bag .InitializeDefaults ();return _bag ;};func (_cdd DateAxis )SetMajorTickMark (m _f .ST_TickMark ){if m ==_f .ST_TickMarkUnset {_cdd ._acae .MajorTickMark =nil ;}else {_cdd ._acae .MajorTickMark =_f .NewCT_TickMark ();_cdd ._acae .MajorTickMark .ValAttr =m ;};};
|
2017-09-06 17:02:21 -04:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_ecc Chart )X ()*_f .ChartSpace {return _ecc ._faeg };func (_adc DateAxis )AxisID ()uint32 {return _adc ._acae .AxId .ValAttr };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SurfaceChart is a 3D surface chart, viewed from the top-down.
|
|
|
|
type SurfaceChart struct{chartBase ;_ffbd *_f .CT_SurfaceChart ;};
|
2017-09-06 17:33:34 -04:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddAxis adds an axis to a line chart.
|
|
|
|
func (_adbe LineChart )AddAxis (axis Axis ){_cfb :=_f .NewCT_UnsignedInt ();_cfb .ValAttr =axis .AxisID ();_adbe ._bfff .AxId =append (_adbe ._bfff .AxId ,_cfb );};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddDateAxis adds a value axis to the chart.
|
|
|
|
func (_bbfa Chart )AddDateAxis ()DateAxis {_feff :=_f .NewCT_DateAx ();if _bbfa ._faeg .Chart .PlotArea .CChoice ==nil {_bbfa ._faeg .Chart .PlotArea .CChoice =_f .NewCT_PlotAreaChoice1 ();};_feff .AxId =_f .NewCT_UnsignedInt ();_feff .AxId .ValAttr =0x7FFFFFFF&_ef .Uint32 ();_bbfa ._faeg .Chart .PlotArea .CChoice .DateAx =append (_bbfa ._faeg .Chart .PlotArea .CChoice .DateAx ,_feff );_feff .Delete =_f .NewCT_Boolean ();_feff .Delete .ValAttr =_g .Bool (false );_feff .Scaling =_f .NewCT_Scaling ();_feff .Scaling .Orientation =_f .NewCT_Orientation ();_feff .Scaling .Orientation .ValAttr =_f .ST_OrientationMinMax ;_feff .Choice =&_f .EG_AxSharedChoice {};_feff .Choice .Crosses =_f .NewCT_Crosses ();_feff .Choice .Crosses .ValAttr =_f .ST_CrossesAutoZero ;_fabd :=DateAxis {_feff };_fabd .MajorGridLines ().Properties ().LineProperties ().SetSolidFill (_gc .LightGray );_fabd .SetMajorTickMark (_f .ST_TickMarkOut );_fabd .SetMinorTickMark (_f .ST_TickMarkIn );_fabd .SetTickLabelPosition (_f .ST_TickLblPosNextTo );_fabd .Properties ().LineProperties ().SetSolidFill (_gc .Black );_fabd .SetPosition (_f .ST_AxPosL );return _fabd ;};func (_dcb DataLabels )SetShowCategoryName (b bool ){_dcb .ensureChoice ();_dcb ._gbc .Choice .ShowCatName =_f .NewCT_Boolean ();_dcb ._gbc .Choice .ShowCatName .ValAttr =_g .Bool (b );};
|
2017-09-06 17:33:34 -04:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_fef AreaChartSeries )SetText (s string ){_fef ._bcd .Tx =_f .NewCT_SerTx ();_fef ._bcd .Tx .Choice .V =&s ;};
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddAxis adds an axis to a Surface chart.
|
|
|
|
func (_afde SurfaceChart )AddAxis (axis Axis ){_bded :=_f .NewCT_UnsignedInt ();_bded .ValAttr =axis .AxisID ();_afde ._ffbd .AxId =append (_afde ._ffbd .AxId ,_bded );};
|
2017-09-06 17:36:49 -04:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to a line chart.
|
|
|
|
func (_cbdb Line3DChart )AddSeries ()LineChartSeries {_cbda :=_cbdb .nextColor (len (_cbdb ._bbfc .Ser ));_gaed :=_f .NewCT_LineSer ();_cbdb ._bbfc .Ser =append (_cbdb ._bbfc .Ser ,_gaed );_gaed .Idx .ValAttr =uint32 (len (_cbdb ._bbfc .Ser )-1);_gaed .Order .ValAttr =uint32 (len (_cbdb ._bbfc .Ser )-1);_eaea :=LineChartSeries {_gaed };_eaea .InitializeDefaults ();_eaea .Properties ().LineProperties ().SetSolidFill (_cbda );_eaea .Properties ().SetSolidFill (_cbda );return _eaea ;};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_dbbb PieChartSeries )X ()*_f .CT_PieSer {return _dbbb ._fdceg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Properties returns the line chart series shape properties.
|
|
|
|
func (_aacd LineChartSeries )Properties ()_c .ShapeProperties {if _aacd ._gefa .SpPr ==nil {_aacd ._gefa .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_aacd ._gefa .SpPr );};
|
2022-01-15 21:17:38 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_bebg Surface3DChart )X ()*_f .CT_Surface3DChart {return _bebg ._bfb };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Order returns the order of the series
|
|
|
|
func (_dgff SurfaceChartSeries )Order ()uint32 {return _dgff ._ddbd .Order .ValAttr };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetIndex sets the index of the series
|
|
|
|
func (_daf LineChartSeries )SetIndex (idx uint32 ){_daf ._gefa .Idx .ValAttr =idx };type Line3DChart struct{chartBase ;_bbfc *_f .CT_Line3DChart ;};func (_dac NumberDataSource )SetReference (s string ){_dac .ensureChoice ();if _dac ._gcfg .Choice .NumRef ==nil {_dac ._gcfg .Choice .NumRef =_f .NewCT_NumRef ();};_dac ._gcfg .Choice .NumRef .F =s ;};
|
|
|
|
|
|
|
|
// RemoveLegend removes the legend if the chart has one.
|
|
|
|
func (_cbab Chart )RemoveLegend (){_cbab ._faeg .Chart .Legend =nil };
|
2017-09-07 09:08:32 -04:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Index returns the index of the series
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_efg ScatterChartSeries )Index ()uint32 {return _efg ._aab .Idx .ValAttr };type SurfaceChartSeries struct{_ddbd *_f .CT_SurfaceSer };
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// BubbleChartSeries is a series to be used on a Bubble chart.
|
|
|
|
type BubbleChartSeries struct{_ad *_f .CT_BubbleSer };func (_dfc GridLines )Properties ()_c .ShapeProperties {if _dfc ._adca .SpPr ==nil {_dfc ._adca .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_dfc ._adca .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Values returns the value data source.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_ee AreaChartSeries )Values ()NumberDataSource {if _ee ._bcd .Val ==nil {_ee ._bcd .Val =_f .NewCT_NumDataSource ();};return MakeNumberDataSource (_ee ._bcd .Val );};
|
|
|
|
|
|
|
|
// Bar3DChart is a 3D bar chart.
|
|
|
|
type Bar3DChart struct{chartBase ;_be *_f .CT_Bar3DChart ;};func (_gae Area3DChart )AddAxis (axis Axis ){_gbd :=_f .NewCT_UnsignedInt ();_gbd .ValAttr =axis .AxisID ();_gae ._gb .AxId =append (_gae ._gb .AxId ,_gbd );};
|
|
|
|
|
|
|
|
// AddLineChart adds a new line chart to a chart.
|
|
|
|
func (_eeg Chart )AddLineChart ()LineChart {_bcg :=_f .NewCT_PlotAreaChoice ();_eeg ._faeg .Chart .PlotArea .Choice =append (_eeg ._faeg .Chart .PlotArea .Choice ,_bcg );_bcg .LineChart =_f .NewCT_LineChart ();_bcg .LineChart .Grouping =_f .NewCT_Grouping ();_bcg .LineChart .Grouping .ValAttr =_f .ST_GroupingStandard ;return LineChart {_bfff :_bcg .LineChart };};
|
|
|
|
|
|
|
|
// RadarChartSeries is a series to be used on an Radar chart.
|
|
|
|
type RadarChartSeries struct{_gefc *_f .CT_RadarSer };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Order returns the order of the series
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_egcf ScatterChartSeries )Order ()uint32 {return _egcf ._aab .Order .ValAttr };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Properties returns the chart's shape properties.
|
|
|
|
func (_fcc Chart )Properties ()_c .ShapeProperties {if _fcc ._faeg .SpPr ==nil {_fcc ._faeg .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_fcc ._faeg .SpPr );};func (_gea LineChartSeries )InitializeDefaults (){_gea .Properties ().LineProperties ().SetWidth (1*_bb .Point );_gea .Properties ().LineProperties ().SetSolidFill (_gc .Black );_gea .Properties ().LineProperties ().SetJoin (_c .LineJoinRound );_gea .Marker ().SetSymbol (_f .ST_MarkerStyleNone );_gea .Labels ().SetShowLegendKey (false );_gea .Labels ().SetShowValue (false );_gea .Labels ().SetShowPercent (false );_gea .Labels ().SetShowCategoryName (false );_gea .Labels ().SetShowSeriesName (false );_gea .Labels ().SetShowLeaderLines (false );};func (_ce CategoryAxis )SetTickLabelPosition (p _f .ST_TickLblPos ){if p ==_f .ST_TickLblPosUnset {_ce ._bg .TickLblPos =nil ;}else {_ce ._bg .TickLblPos =_f .NewCT_TickLblPos ();_ce ._bg .TickLblPos .ValAttr =p ;};};type chartBase struct{};
|
2017-09-07 09:27:41 -04:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to a line chart.
|
|
|
|
func (_cbdf LineChart )AddSeries ()LineChartSeries {_fedf :=_cbdf .nextColor (len (_cbdf ._bfff .Ser ));_ccf :=_f .NewCT_LineSer ();_cbdf ._bfff .Ser =append (_cbdf ._bfff .Ser ,_ccf );_ccf .Idx .ValAttr =uint32 (len (_cbdf ._bfff .Ser )-1);_ccf .Order .ValAttr =uint32 (len (_cbdf ._bfff .Ser )-1);_bagd :=LineChartSeries {_ccf };_bagd .InitializeDefaults ();_bagd .Properties ().LineProperties ().SetSolidFill (_fedf );return _bagd ;};
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddLine3DChart adds a new 3D line chart to a chart.
|
|
|
|
func (_gga Chart )AddLine3DChart ()Line3DChart {_df (_gga ._faeg .Chart );_gcdg :=_f .NewCT_PlotAreaChoice ();_gga ._faeg .Chart .PlotArea .Choice =append (_gga ._faeg .Chart .PlotArea .Choice ,_gcdg );_gcdg .Line3DChart =_f .NewCT_Line3DChart ();_gcdg .Line3DChart .Grouping =_f .NewCT_Grouping ();_gcdg .Line3DChart .Grouping .ValAttr =_f .ST_GroupingStandard ;return Line3DChart {_bbfc :_gcdg .Line3DChart };};func (_ggfe ValueAxis )SetTickLabelPosition (p _f .ST_TickLblPos ){if p ==_f .ST_TickLblPosUnset {_ggfe ._cee .TickLblPos =nil ;}else {_ggfe ._cee .TickLblPos =_f .NewCT_TickLblPos ();_ggfe ._cee .TickLblPos .ValAttr =p ;};};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_ffe BarChartSeries )CategoryAxis ()CategoryAxisDataSource {if _ffe ._ae .Cat ==nil {_ffe ._ae .Cat =_f .NewCT_AxDataSource ();};return MakeAxisDataSource (_ffe ._ae .Cat );};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddValueAxis adds a value axis to the chart.
|
|
|
|
func (_gdc Chart )AddValueAxis ()ValueAxis {_bdb :=_f .NewCT_ValAx ();if _gdc ._faeg .Chart .PlotArea .CChoice ==nil {_gdc ._faeg .Chart .PlotArea .CChoice =_f .NewCT_PlotAreaChoice1 ();};_bdb .AxId =_f .NewCT_UnsignedInt ();_bdb .AxId .ValAttr =0x7FFFFFFF&_ef .Uint32 ();_gdc ._faeg .Chart .PlotArea .CChoice .ValAx =append (_gdc ._faeg .Chart .PlotArea .CChoice .ValAx ,_bdb );_bdb .Delete =_f .NewCT_Boolean ();_bdb .Delete .ValAttr =_g .Bool (false );_bdb .Scaling =_f .NewCT_Scaling ();_bdb .Scaling .Orientation =_f .NewCT_Orientation ();_bdb .Scaling .Orientation .ValAttr =_f .ST_OrientationMinMax ;_bdb .Choice =&_f .EG_AxSharedChoice {};_bdb .Choice .Crosses =_f .NewCT_Crosses ();_bdb .Choice .Crosses .ValAttr =_f .ST_CrossesAutoZero ;_bdb .CrossBetween =_f .NewCT_CrossBetween ();_bdb .CrossBetween .ValAttr =_f .ST_CrossBetweenBetween ;_fac :=MakeValueAxis (_bdb );_fac .MajorGridLines ().Properties ().LineProperties ().SetSolidFill (_gc .LightGray );_fac .SetMajorTickMark (_f .ST_TickMarkOut );_fac .SetMinorTickMark (_f .ST_TickMarkIn );_fac .SetTickLabelPosition (_f .ST_TickLblPosNextTo );_fac .Properties ().LineProperties ().SetSolidFill (_gc .Black );_fac .SetPosition (_f .ST_AxPosL );return _fac ;};func (_gad AreaChart )AddAxis (axis Axis ){_cd :=_f .NewCT_UnsignedInt ();_cd .ValAttr =axis .AxisID ();_gad ._ge .AxId =append (_gad ._ge .AxId ,_cd );};func (_fcg DataLabels )ensureChoice (){if _fcg ._gbc .Choice ==nil {_fcg ._gbc .Choice =_f .NewCT_DLblsChoice ();};};func (_cdb Title )ParagraphProperties ()_c .ParagraphProperties {if _cdb ._aeab .Tx ==nil {_cdb .SetText ("");};if _cdb ._aeab .Tx .Choice .Rich .P [0].PPr ==nil {_cdb ._aeab .Tx .Choice .Rich .P [0].PPr =_eb .NewCT_TextParagraphProperties ();};return _c .MakeParagraphProperties (_cdb ._aeab .Tx .Choice .Rich .P [0].PPr );};func MakeMarker (x *_f .CT_Marker )Marker {return Marker {x }};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetExplosion sets the value that the segements of the pie are 'exploded' by
|
|
|
|
func (_eadb PieChartSeries )SetExplosion (v uint32 ){_eadb ._fdceg .Explosion =_f .NewCT_UnsignedInt ();_eadb ._fdceg .Explosion .ValAttr =v ;};func (_fcf BarChart )AddAxis (axis Axis ){_gbg :=_f .NewCT_UnsignedInt ();_gbg .ValAttr =axis .AxisID ();_fcf ._gcc .AxId =append (_fcf ._gcc .AxId ,_gbg );};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetHoleSize controls the hole size in the pie chart and is measured in percent.
|
|
|
|
func (_dgda DoughnutChart )SetHoleSize (pct uint8 ){if _dgda ._cbd .HoleSize ==nil {_dgda ._cbd .HoleSize =_f .NewCT_HoleSize ();};if _dgda ._cbd .HoleSize .ValAttr ==nil {_dgda ._cbd .HoleSize .ValAttr =&_f .ST_HoleSize {};};_dgda ._cbd .HoleSize .ValAttr .ST_HoleSizeUByte =&pct ;};
|
2017-09-07 09:27:41 -04:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_da BarChartSeries )Values ()NumberDataSource {if _da ._ae .Val ==nil {_da ._ae .Val =_f .NewCT_NumDataSource ();};return MakeNumberDataSource (_da ._ae .Val );};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults the Stock chart to its defaults
|
|
|
|
func (_gefcd StockChart )InitializeDefaults (){_gefcd ._dfgf .HiLowLines =_f .NewCT_ChartLines ();_gefcd ._dfgf .UpDownBars =_f .NewCT_UpDownBars ();_gefcd ._dfgf .UpDownBars .GapWidth =_f .NewCT_GapAmount ();_gefcd ._dfgf .UpDownBars .GapWidth .ValAttr =&_f .ST_GapAmount {};_gefcd ._dfgf .UpDownBars .GapWidth .ValAttr .ST_GapAmountUShort =_g .Uint16 (150);_gefcd ._dfgf .UpDownBars .UpBars =_f .NewCT_UpDownBar ();_gefcd ._dfgf .UpDownBars .DownBars =_f .NewCT_UpDownBar ();};func (_egfd Title )InitializeDefaults (){_egfd .SetText ("\u0054\u0069\u0074l\u0065");_egfd .RunProperties ().SetSize (16*_bb .Point );_egfd .RunProperties ().SetSolidFill (_gc .Black );_egfd .RunProperties ().SetFont ("\u0043\u0061\u006c\u0069\u0062\u0020\u0072\u0069");_egfd .RunProperties ().SetBold (false );};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Surface3DChart is a 3D view of a surface chart.
|
|
|
|
type Surface3DChart struct{chartBase ;_bfb *_f .CT_Surface3DChart ;};func (_gcf CategoryAxis )InitializeDefaults (){_gcf .SetPosition (_f .ST_AxPosB );_gcf .SetMajorTickMark (_f .ST_TickMarkOut );_gcf .SetMinorTickMark (_f .ST_TickMarkIn );_gcf .SetTickLabelPosition (_f .ST_TickLblPosNextTo );_gcf .MajorGridLines ().Properties ().LineProperties ().SetSolidFill (_gc .LightGray );_gcf .Properties ().LineProperties ().SetSolidFill (_gc .Black );};type ValueAxis struct{_cee *_f .CT_ValAx };func (_ddc NumberDataSource )ensureChoice (){if _ddc ._gcfg .Choice ==nil {_ddc ._gcfg .Choice =_f .NewCT_NumDataSourceChoice ();};};
|
2017-09-07 10:54:54 -04:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetText sets the series text
|
|
|
|
func (_cef SurfaceChartSeries )SetText (s string ){_cef ._ddbd .Tx =_f .NewCT_SerTx ();_cef ._ddbd .Tx .Choice .V =&s ;};
|
2017-09-07 10:54:54 -04:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddPieOfPieChart adds a new pie chart to a chart.
|
|
|
|
func (_eea Chart )AddPieOfPieChart ()PieOfPieChart {_abdb :=_f .NewCT_PlotAreaChoice ();_eea ._faeg .Chart .PlotArea .Choice =append (_eea ._faeg .Chart .PlotArea .Choice ,_abdb );_abdb .OfPieChart =_f .NewCT_OfPieChart ();_dad :=PieOfPieChart {_age :_abdb .OfPieChart };_dad .InitializeDefaults ();return _dad ;};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Index returns the index of the series
|
|
|
|
func (_bgb SurfaceChartSeries )Index ()uint32 {return _bgb ._ddbd .Idx .ValAttr };
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_dgc BubbleChartSeries )CategoryAxis ()CategoryAxisDataSource {if _dgc ._ad .XVal ==nil {_dgc ._ad .XVal =_f .NewCT_AxDataSource ();};return MakeAxisDataSource (_dgc ._ad .XVal );};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// BarChartSeries is a series to be used on a bar chart.
|
|
|
|
type BarChartSeries struct{_ae *_f .CT_BarSer };
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to a bar chart.
|
|
|
|
func (_ab Bar3DChart )AddSeries ()BarChartSeries {_fa :=_ab .nextColor (len (_ab ._be .Ser ));_gee :=_f .NewCT_BarSer ();_ab ._be .Ser =append (_ab ._be .Ser ,_gee );_gee .Idx .ValAttr =uint32 (len (_ab ._be .Ser )-1);_gee .Order .ValAttr =uint32 (len (_ab ._be .Ser )-1);_eba :=BarChartSeries {_gee };_eba .InitializeDefaults ();_eba .Properties ().SetSolidFill (_fa );return _eba ;};
|
|
|
|
|
|
|
|
// AddSeries adds a default series to a Stock chart.
|
|
|
|
func (_ccff StockChart )AddSeries ()LineChartSeries {_dgag :=_f .NewCT_LineSer ();_ccff ._dfgf .Ser =append (_ccff ._dfgf .Ser ,_dgag );_dgag .Idx .ValAttr =uint32 (len (_ccff ._dfgf .Ser )-1);_dgag .Order .ValAttr =uint32 (len (_ccff ._dfgf .Ser )-1);_geea :=LineChartSeries {_dgag };_geea .Values ().CreateEmptyNumberCache ();_geea .Properties ().LineProperties ().SetNoFill ();return _geea ;};
|
|
|
|
|
|
|
|
// AddSeries adds a default series to a Surface chart.
|
|
|
|
func (_agef Surface3DChart )AddSeries ()SurfaceChartSeries {_gda :=_agef .nextColor (len (_agef ._bfb .Ser ));_cgd :=_f .NewCT_SurfaceSer ();_agef ._bfb .Ser =append (_agef ._bfb .Ser ,_cgd );_cgd .Idx .ValAttr =uint32 (len (_agef ._bfb .Ser )-1);_cgd .Order .ValAttr =uint32 (len (_agef ._bfb .Ser )-1);_cfc :=SurfaceChartSeries {_cgd };_cfc .InitializeDefaults ();_cfc .Properties ().LineProperties ().SetSolidFill (_gda );return _cfc ;};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_gg BubbleChartSeries )X ()*_f .CT_BubbleSer {return _gg ._ad };
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_gaa StockChart )X ()*_f .CT_StockChart {return _gaa ._dfgf };
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2021-11-10 11:45:21 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_afbf LineChartSeries )X ()*_f .CT_LineSer {return _afbf ._gefa };
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetValues is used to set the source data to a set of values.
|
|
|
|
func (_ffeb CategoryAxisDataSource )SetValues (v []string ){_ffeb ._bfa .Choice =_f .NewCT_AxDataSourceChoice ();_ffeb ._bfa .Choice .StrLit =_f .NewCT_StrData ();_ffeb ._bfa .Choice .StrLit .PtCount =_f .NewCT_UnsignedInt ();_ffeb ._bfa .Choice .StrLit .PtCount .ValAttr =uint32 (len (v ));for _ead ,_ged :=range v {_ffeb ._bfa .Choice .StrLit .Pt =append (_ffeb ._bfa .Choice .StrLit .Pt ,&_f .CT_StrVal {IdxAttr :uint32 (_ead ),V :_ged });};};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_ffa RadarChartSeries )Values ()NumberDataSource {if _ffa ._gefc .Val ==nil {_ffa ._gefc .Val =_f .NewCT_NumDataSource ();};return MakeNumberDataSource (_ffa ._gefc .Val );};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddAxis adds an axis to a Surface chart.
|
|
|
|
func (_dcg Surface3DChart )AddAxis (axis Axis ){_bge :=_f .NewCT_UnsignedInt ();_bge .ValAttr =axis .AxisID ();_dcg ._bfb .AxId =append (_dcg ._bfb .AxId ,_bge );};
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_eaa SurfaceChart )X ()*_f .CT_SurfaceChart {return _eaa ._ffbd };
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// DoughnutChart is a Doughnut chart.
|
|
|
|
type DoughnutChart struct{chartBase ;_cbd *_f .CT_DoughnutChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to an area chart.
|
|
|
|
func (_fe Area3DChart )AddSeries ()AreaChartSeries {_ga :=_fe .nextColor (len (_fe ._gb .Ser ));_gcd :=_f .NewCT_AreaSer ();_fe ._gb .Ser =append (_fe ._gb .Ser ,_gcd );_gcd .Idx .ValAttr =uint32 (len (_fe ._gb .Ser )-1);_gcd .Order .ValAttr =uint32 (len (_fe ._gb .Ser )-1);_gf :=AreaChartSeries {_gcd };_gf .InitializeDefaults ();_gf .Properties ().SetSolidFill (_ga );return _gf ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// BarChart is a 2D bar chart.
|
|
|
|
type BarChart struct{chartBase ;_gcc *_f .CT_BarChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults initializes an Pie series to the default values.
|
|
|
|
func (_geb PieChartSeries )InitializeDefaults (){};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddStockChart adds a new stock chart.
|
|
|
|
func (_beb Chart )AddStockChart ()StockChart {_gbf :=_f .NewCT_PlotAreaChoice ();_beb ._faeg .Chart .PlotArea .Choice =append (_beb ._faeg .Chart .PlotArea .Choice ,_gbf );_gbf .StockChart =_f .NewCT_StockChart ();_fg :=StockChart {_dfgf :_gbf .StockChart };_fg .InitializeDefaults ();return _fg ;};func (_cgg DateAxis )SetMinorTickMark (m _f .ST_TickMark ){if m ==_f .ST_TickMarkUnset {_cgg ._acae .MinorTickMark =nil ;}else {_cgg ._acae .MinorTickMark =_f .NewCT_TickMark ();_cgg ._acae .MinorTickMark .ValAttr =m ;};};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2022-02-05 13:05:36 +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 (_dda NumberDataSource )CreateEmptyNumberCache (){_dda .ensureChoice ();if _dda ._gcfg .Choice .NumRef ==nil {_dda ._gcfg .Choice .NumRef =_f .NewCT_NumRef ();};_dda ._gcfg .Choice .NumLit =nil ;_dda ._gcfg .Choice .NumRef .NumCache =_f .NewCT_NumData ();_dda ._gcfg .Choice .NumRef .NumCache .PtCount =_f .NewCT_UnsignedInt ();_dda ._gcfg .Choice .NumRef .NumCache .PtCount .ValAttr =0;};type Marker struct{_gbdc *_f .CT_Marker };type LineChart struct{chartBase ;_bfff *_f .CT_LineChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults initializes a Bubble chart series to the default values.
|
|
|
|
func (_fae BubbleChartSeries )InitializeDefaults (){};func (_gge ScatterChartSeries )Values ()NumberDataSource {if _gge ._aab .YVal ==nil {_gge ._aab .YVal =_f .NewCT_NumDataSource ();};return MakeNumberDataSource (_gge ._aab .YVal );};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Labels returns the data label properties.
|
|
|
|
func (_aff LineChartSeries )Labels ()DataLabels {if _aff ._gefa .DLbls ==nil {_aff ._gefa .DLbls =_f .NewCT_DLbls ();};return MakeDataLabels (_aff ._gefa .DLbls );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to a Surface chart.
|
|
|
|
func (_ade SurfaceChart )AddSeries ()SurfaceChartSeries {_acaf :=_ade .nextColor (len (_ade ._ffbd .Ser ));_fge :=_f .NewCT_SurfaceSer ();_ade ._ffbd .Ser =append (_ade ._ffbd .Ser ,_fge );_fge .Idx .ValAttr =uint32 (len (_ade ._ffbd .Ser )-1);_fge .Order .ValAttr =uint32 (len (_ade ._ffbd .Ser )-1);_decc :=SurfaceChartSeries {_fge };_decc .InitializeDefaults ();_decc .Properties ().LineProperties ().SetSolidFill (_acaf );return _decc ;};func (_fd chartBase )nextColor (_agcc int )_gc .Color {return _dgbb [_agcc %len (_dgbb )]};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddPie3DChart adds a new pie chart to a chart.
|
|
|
|
func (_gfe Chart )AddPie3DChart ()Pie3DChart {_df (_gfe ._faeg .Chart );_afb :=_f .NewCT_PlotAreaChoice ();_gfe ._faeg .Chart .PlotArea .Choice =append (_gfe ._faeg .Chart .PlotArea .Choice ,_afb );_afb .Pie3DChart =_f .NewCT_Pie3DChart ();_ace :=Pie3DChart {_abb :_afb .Pie3DChart };_ace .InitializeDefaults ();return _ace ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddArea3DChart adds a new area chart to a chart.
|
|
|
|
func (_cbe Chart )AddArea3DChart ()Area3DChart {_df (_cbe ._faeg .Chart );_ggf :=_f .NewCT_PlotAreaChoice ();_cbe ._faeg .Chart .PlotArea .Choice =append (_cbe ._faeg .Chart .PlotArea .Choice ,_ggf );_ggf .Area3DChart =_f .NewCT_Area3DChart ();_gfa :=Area3DChart {_gb :_ggf .Area3DChart };_gfa .InitializeDefaults ();return _gfa ;};func (_cab DateAxis )Properties ()_c .ShapeProperties {if _cab ._acae .SpPr ==nil {_cab ._acae .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_cab ._acae .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetOrder sets the order of the series
|
|
|
|
func (_fgcb SurfaceChartSeries )SetOrder (idx uint32 ){_fgcb ._ddbd .Order .ValAttr =idx };func (_dbf CategoryAxis )MajorGridLines ()GridLines {if _dbf ._bg .MajorGridlines ==nil {_dbf ._bg .MajorGridlines =_f .NewCT_ChartLines ();};return GridLines {_dbf ._bg .MajorGridlines };};
|
2022-01-15 21:17:38 +00:00
|
|
|
|
|
|
|
// Marker returns the marker properties.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_eg LineChartSeries )Marker ()Marker {if _eg ._gefa .Marker ==nil {_eg ._gefa .Marker =_f .NewCT_Marker ();};return MakeMarker (_eg ._gefa .Marker );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddBar3DChart adds a new 3D bar chart to a chart.
|
|
|
|
func (_eef Chart )AddBar3DChart ()Bar3DChart {_df (_eef ._faeg .Chart );_dfg :=_f .NewCT_PlotAreaChoice ();_eef ._faeg .Chart .PlotArea .Choice =append (_eef ._faeg .Chart .PlotArea .Choice ,_dfg );_dfg .Bar3DChart =_f .NewCT_Bar3DChart ();_dfg .Bar3DChart .Grouping =_f .NewCT_BarGrouping ();_dfg .Bar3DChart .Grouping .ValAttr =_f .ST_BarGroupingStandard ;_feg :=Bar3DChart {_be :_dfg .Bar3DChart };_feg .InitializeDefaults ();return _feg ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_geaa ScatterChartSeries )X ()*_f .CT_ScatterSer {return _geaa ._aab };func (_bddc DateAxis )SetTickLabelPosition (p _f .ST_TickLblPos ){if p ==_f .ST_TickLblPosUnset {_bddc ._acae .TickLblPos =nil ;}else {_bddc ._acae .TickLblPos =_f .NewCT_TickLblPos ();_bddc ._acae .TickLblPos .ValAttr =p ;};};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Values returns the bubble size data source.
|
|
|
|
func (_bec BubbleChartSeries )BubbleSizes ()NumberDataSource {if _bec ._ad .BubbleSize ==nil {_bec ._ad .BubbleSize =_f .NewCT_NumDataSource ();};return MakeNumberDataSource (_bec ._ad .BubbleSize );};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_bcc AreaChartSeries )CategoryAxis ()CategoryAxisDataSource {if _bcc ._bcd .Cat ==nil {_bcc ._bcd .Cat =_f .NewCT_AxDataSource ();};return MakeAxisDataSource (_bcc ._bcd .Cat );};type CategoryAxis struct{_bg *_f .CT_CatAx };func (_bebd ValueAxis )MajorGridLines ()GridLines {if _bebd ._cee .MajorGridlines ==nil {_bebd ._cee .MajorGridlines =_f .NewCT_ChartLines ();};return GridLines {_bebd ._cee .MajorGridlines };};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// RemoveTitle removes any existing title from the chart.
|
|
|
|
func (_cea Chart )RemoveTitle (){_cea ._faeg .Chart .Title =nil ;_cea ._faeg .Chart .AutoTitleDeleted =_f .NewCT_Boolean ();_cea ._faeg .Chart .AutoTitleDeleted .ValAttr =_g .Bool (true );};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_bde PieChartSeries )Values ()NumberDataSource {if _bde ._fdceg .Val ==nil {_bde ._fdceg .Val =_f .NewCT_NumDataSource ();};return MakeNumberDataSource (_bde ._fdceg .Val );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetDirection changes the direction of the bar chart (bar or column).
|
|
|
|
func (_bf BarChart )SetDirection (d _f .ST_BarDir ){_bf ._gcc .BarDir .ValAttr =d };
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to an Pie chart.
|
|
|
|
func (_fdce PieChart )AddSeries ()PieChartSeries {_ffge :=_f .NewCT_PieSer ();_fdce ._bea .Ser =append (_fdce ._bea .Ser ,_ffge );_ffge .Idx .ValAttr =uint32 (len (_fdce ._bea .Ser )-1);_ffge .Order .ValAttr =uint32 (len (_fdce ._bea .Ser )-1);_bece :=PieChartSeries {_ffge };_bece .InitializeDefaults ();return _bece ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to a bar chart.
|
|
|
|
func (_gcde BarChart )AddSeries ()BarChartSeries {_db :=_gcde .nextColor (len (_gcde ._gcc .Ser ));_dbb :=_f .NewCT_BarSer ();_gcde ._gcc .Ser =append (_gcde ._gcc .Ser ,_dbb );_dbb .Idx .ValAttr =uint32 (len (_gcde ._gcc .Ser )-1);_dbb .Order .ValAttr =uint32 (len (_gcde ._gcc .Ser )-1);_ag :=BarChartSeries {_dbb };_ag .InitializeDefaults ();_ag .Properties ().SetSolidFill (_db );return _ag ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_dg Bar3DChart )InitializeDefaults (){_dg .SetDirection (_f .ST_BarDirCol )};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_dgb BarChart )InitializeDefaults (){_dgb .SetDirection (_f .ST_BarDirCol )};
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// PieChartSeries is a series to be used on an Pie chart.
|
|
|
|
type PieChartSeries struct{_fdceg *_f .CT_PieSer };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_dgcg Title )X ()*_f .CT_Title {return _dgcg ._aeab };
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to an Radar chart.
|
|
|
|
func (_bef RadarChart )AddSeries ()RadarChartSeries {_cbg :=_bef .nextColor (len (_bef ._bddf .Ser ));_fgc :=_f .NewCT_RadarSer ();_bef ._bddf .Ser =append (_bef ._bddf .Ser ,_fgc );_fgc .Idx .ValAttr =uint32 (len (_bef ._bddf .Ser )-1);_fgc .Order .ValAttr =uint32 (len (_bef ._bddf .Ser )-1);_afdb :=RadarChartSeries {_fgc };_afdb .InitializeDefaults ();_afdb .Properties ().SetSolidFill (_cbg );return _afdb ;};func (_dfd LineChartSeries )SetSmooth (b bool ){_dfd ._gefa .Smooth =_f .NewCT_Boolean ();_dfd ._gefa .Smooth .ValAttr =&b ;};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Properties returns the line chart series shape properties.
|
|
|
|
func (_faegg ScatterChartSeries )Properties ()_c .ShapeProperties {if _faegg ._aab .SpPr ==nil {_faegg ._aab .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_faegg ._aab .SpPr );};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_fb BubbleChartSeries )SetText (s string ){_fb ._ad .Tx =_f .NewCT_SerTx ();_fb ._ad .Tx .Choice .V =&s ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetDirection changes the direction of the bar chart (bar or column).
|
|
|
|
func (_gab Bar3DChart )SetDirection (d _f .ST_BarDir ){_gab ._be .BarDir .ValAttr =d };
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Properties returns the line chart series shape properties.
|
|
|
|
func (_gfed SurfaceChartSeries )Properties ()_c .ShapeProperties {if _gfed ._ddbd .SpPr ==nil {_gfed ._ddbd .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_gfed ._ddbd .SpPr );};func (_agea SurfaceChart )InitializeDefaults (){_agea ._ffbd .Wireframe =_f .NewCT_Boolean ();_agea ._ffbd .Wireframe .ValAttr =_g .Bool (false );_agea ._ffbd .BandFmts =_f .NewCT_BandFmts ();for _def :=0;_def < 15;_def ++{_gcfa :=_f .NewCT_BandFmt ();_gcfa .Idx .ValAttr =uint32 (_def );_gcfa .SpPr =_eb .NewCT_ShapeProperties ();_afa :=_c .MakeShapeProperties (_gcfa .SpPr );_afa .SetSolidFill (_agea .nextColor (_def ));_agea ._ffbd .BandFmts .BandFmt =append (_agea ._ffbd .BandFmts .BandFmt ,_gcfa );};};func (_gfac RadarChart )AddAxis (axis Axis ){_fba :=_f .NewCT_UnsignedInt ();_fba .ValAttr =axis .AxisID ();_gfac ._bddf .AxId =append (_gfac ._bddf .AxId ,_fba );};
|
|
|
|
|
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_a Area3DChart )InitializeDefaults (){};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// AddSeries adds a default series to an area chart.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_fc AreaChart )AddSeries ()AreaChartSeries {_gd :=_fc .nextColor (len (_fc ._ge .Ser ));_ba :=_f .NewCT_AreaSer ();_fc ._ge .Ser =append (_fc ._ge .Ser ,_ba );_ba .Idx .ValAttr =uint32 (len (_fc ._ge .Ser )-1);_ba .Order .ValAttr =uint32 (len (_fc ._ge .Ser )-1);_bc :=AreaChartSeries {_ba };_bc .InitializeDefaults ();_bc .Properties ().SetSolidFill (_gd );return _bc ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddDoughnutChart adds a new doughnut (pie with a hole in the center) chart to a chart.
|
|
|
|
func (_feb Chart )AddDoughnutChart ()DoughnutChart {_afg :=_f .NewCT_PlotAreaChoice ();_feb ._faeg .Chart .PlotArea .Choice =append (_feb ._faeg .Chart .PlotArea .Choice ,_afg );_afg .DoughnutChart =_f .NewCT_DoughnutChart ();_acf :=DoughnutChart {_cbd :_afg .DoughnutChart };_acf .InitializeDefaults ();return _acf ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddRadarChart adds a new radar chart to a chart.
|
|
|
|
func (_af Chart )AddRadarChart ()RadarChart {_dga :=_f .NewCT_PlotAreaChoice ();_af ._faeg .Chart .PlotArea .Choice =append (_af ._faeg .Chart .PlotArea .Choice ,_dga );_dga .RadarChart =_f .NewCT_RadarChart ();_ffgg :=RadarChart {_bddf :_dga .RadarChart };_ffgg .InitializeDefaults ();return _ffgg ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-11-10 11:45:21 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_ccfb PieChart )X ()*_f .CT_PieChart {return _ccfb ._bea };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Axis is the interface implemented by different axes when assigning to a
|
|
|
|
// chart.
|
|
|
|
type Axis interface{AxisID ()uint32 ;};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// StockChart is a 2D Stock chart.
|
|
|
|
type StockChart struct{chartBase ;_dfgf *_f .CT_StockChart ;};func (_ccb SeriesAxis )AxisID ()uint32 {return _ccb ._bega .AxId .ValAttr };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AreaChart is an area chart that has a shaded area underneath a curve.
|
|
|
|
type AreaChart struct{chartBase ;_ge *_f .CT_AreaChart ;};func MakeCategoryAxis (x *_f .CT_CatAx )CategoryAxis {return CategoryAxis {x }};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Properties returns the bar chart series shape properties.
|
|
|
|
func (_fgb RadarChartSeries )Properties ()_c .ShapeProperties {if _fgb ._gefc .SpPr ==nil {_fgb ._gefc .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_fgb ._gefc .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-11-10 11:45:21 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_fdc Line3DChart )X ()*_f .CT_Line3DChart {return _fdc ._bbfc };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddCategoryAxis adds a category axis.
|
|
|
|
func (_cc Chart )AddCategoryAxis ()CategoryAxis {_cba :=_f .NewCT_CatAx ();if _cc ._faeg .Chart .PlotArea .CChoice ==nil {_cc ._faeg .Chart .PlotArea .CChoice =_f .NewCT_PlotAreaChoice1 ();};_cba .AxId =_f .NewCT_UnsignedInt ();_cba .AxId .ValAttr =0x7FFFFFFF&_ef .Uint32 ();_cc ._faeg .Chart .PlotArea .CChoice .CatAx =append (_cc ._faeg .Chart .PlotArea .CChoice .CatAx ,_cba );_cba .Auto =_f .NewCT_Boolean ();_cba .Auto .ValAttr =_g .Bool (true );_cba .Delete =_f .NewCT_Boolean ();_cba .Delete .ValAttr =_g .Bool (false );_gag :=MakeCategoryAxis (_cba );_gag .InitializeDefaults ();return _gag ;};func (_aef DataLabels )SetShowLeaderLines (b bool ){_aef .ensureChoice ();_aef ._gbc .Choice .ShowLeaderLines =_f .NewCT_Boolean ();_aef ._gbc .Choice .ShowLeaderLines .ValAttr =_g .Bool (b );};type DateAxis struct{_acae *_f .CT_DateAx };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Marker returns the marker properties.
|
|
|
|
func (_abcf ScatterChartSeries )Marker ()Marker {if _abcf ._aab .Marker ==nil {_abcf ._aab .Marker =_f .NewCT_Marker ();};return MakeMarker (_abcf ._aab .Marker );};type SeriesAxis struct{_bega *_f .CT_SerAx };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_ed AreaChart )X ()*_f .CT_AreaChart {return _ed ._ge };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetText sets the series text
|
|
|
|
func (_gede LineChartSeries )SetText (s string ){_gede ._gefa .Tx =_f .NewCT_SerTx ();_gede ._gefa .Tx .Choice .V =&s ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddTitle sets a new title on the chart.
|
|
|
|
func (_dgg Chart )AddTitle ()Title {_dgg ._faeg .Chart .Title =_f .NewCT_Title ();_dgg ._faeg .Chart .Title .Overlay =_f .NewCT_Boolean ();_dgg ._faeg .Chart .Title .Overlay .ValAttr =_g .Bool (false );_dgg ._faeg .Chart .AutoTitleDeleted =_f .NewCT_Boolean ();_dgg ._faeg .Chart .AutoTitleDeleted .ValAttr =_g .Bool (false );_bbe :=MakeTitle (_dgg ._faeg .Chart .Title );_bbe .InitializeDefaults ();return _bbe ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Order returns the order of the series
|
|
|
|
func (_cbcf LineChartSeries )Order ()uint32 {return _cbcf ._gefa .Order .ValAttr };func (_fde DataLabels )SetShowPercent (b bool ){_fde .ensureChoice ();_fde ._gbc .Choice .ShowPercent =_f .NewCT_Boolean ();_fde ._gbc .Choice .ShowPercent .ValAttr =_g .Bool (b );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Properties returns the bar chart series shape properties.
|
|
|
|
func (_ced PieChartSeries )Properties ()_c .ShapeProperties {if _ced ._fdceg .SpPr ==nil {_ced ._fdceg .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_ced ._fdceg .SpPr );};type DataLabels struct{_gbc *_f .CT_DLbls };func MakeValueAxis (x *_f .CT_ValAx )ValueAxis {return ValueAxis {x }};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_ebda ScatterChart )X ()*_f .CT_ScatterChart {return _ebda ._babd };
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_bcb Marker )X ()*_f .CT_Marker {return _bcb ._gbdc };
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetOrder sets the order of the series
|
|
|
|
func (_eccb LineChartSeries )SetOrder (idx uint32 ){_eccb ._gefa .Order .ValAttr =idx };func (_bfge SurfaceChartSeries )Values ()NumberDataSource {if _bfge ._ddbd .Val ==nil {_bfge ._ddbd .Val =_f .NewCT_NumDataSource ();};_dae :=MakeNumberDataSource (_bfge ._ddbd .Val );_dae .CreateEmptyNumberCache ();return _dae ;};type ScatterChart struct{chartBase ;_babd *_f .CT_ScatterChart ;};func (_eaae ValueAxis )SetPosition (p _f .ST_AxPos ){_eaae ._cee .AxPos =_f .NewCT_AxPos ();_eaae ._cee .AxPos .ValAttr =p ;};func (_cccg ScatterChartSeries )InitializeDefaults (){_cccg .Properties ().LineProperties ().SetNoFill ();_cccg .Marker ().SetSymbol (_f .ST_MarkerStyleAuto );_cccg .Labels ().SetShowLegendKey (false );_cccg .Labels ().SetShowValue (true );_cccg .Labels ().SetShowPercent (false );_cccg .Labels ().SetShowCategoryName (false );_cccg .Labels ().SetShowSeriesName (false );_cccg .Labels ().SetShowLeaderLines (false );};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Properties returns the bar chart series shape properties.
|
|
|
|
func (_gff BarChartSeries )Properties ()_c .ShapeProperties {if _gff ._ae .SpPr ==nil {_gff ._ae .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_gff ._ae .SpPr );};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults initializes an Radar series to the default values.
|
|
|
|
func (_ffb RadarChartSeries )InitializeDefaults (){};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_dee RadarChart )X ()*_f .CT_RadarChart {return _dee ._bddf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_bcgd SurfaceChartSeries )X ()*_f .CT_SurfaceSer {return _bcgd ._ddbd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_gaf Bar3DChart )X ()*_f .CT_Bar3DChart {return _gaf ._be };func (_fcb SurfaceChartSeries )CategoryAxis ()CategoryAxisDataSource {if _fcb ._ddbd .Cat ==nil {_fcb ._ddbd .Cat =_f .NewCT_AxDataSource ();};return MakeAxisDataSource (_fcb ._ddbd .Cat );};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// RadarChart is an Radar chart that has a shaded Radar underneath a curve.
|
|
|
|
type RadarChart struct{chartBase ;_bddf *_f .CT_RadarChart ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Values returns the value data source.
|
|
|
|
func (_gfdg BubbleChartSeries )Values ()NumberDataSource {if _gfdg ._ad .YVal ==nil {_gfdg ._ad .YVal =_f .NewCT_NumDataSource ();};return MakeNumberDataSource (_gfdg ._ad .YVal );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_eegc Pie3DChart )X ()*_f .CT_Pie3DChart {return _eegc ._abb };type Legend struct{_bac *_f .CT_Legend };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// LineChartSeries is the data series for a line chart.
|
|
|
|
type LineChartSeries struct{_gefa *_f .CT_LineSer };
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddLegend adds a legend to a chart, replacing any existing legend.
|
|
|
|
func (_bbb Chart )AddLegend ()Legend {_bbb ._faeg .Chart .Legend =_f .NewCT_Legend ();_eebe :=MakeLegend (_bbb ._faeg .Chart .Legend );_eebe .InitializeDefaults ();return _eebe ;};func (_adb Legend )SetOverlay (b bool ){_adb ._bac .Overlay =_f .NewCT_Boolean ();_adb ._bac .Overlay .ValAttr =_g .Bool (b );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_fca PieChartSeries )SetText (s string ){_fca ._fdceg .Tx =_f .NewCT_SerTx ();_fca ._fdceg .Tx .Choice .V =&s ;};func (_dbcg Legend )InitializeDefaults (){_dbcg .SetPosition (_f .ST_LegendPosR );_dbcg .SetOverlay (false );_dbcg .Properties ().SetNoFill ();_dbcg .Properties ().LineProperties ().SetNoFill ();};func (_acfe Marker )Properties ()_c .ShapeProperties {if _acfe ._gbdc .SpPr ==nil {_acfe ._gbdc .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_acfe ._gbdc .SpPr );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_cgge GridLines )X ()*_f .CT_ChartLines {return _cgge ._adca };func (_daca StockChart )AddAxis (axis Axis ){_dafb :=_f .NewCT_UnsignedInt ();_dafb .ValAttr =axis .AxisID ();_daca ._dfgf .AxId =append (_daca ._dfgf .AxId ,_dafb );};func (_dec CategoryAxis )SetMajorTickMark (m _f .ST_TickMark ){if m ==_f .ST_TickMarkUnset {_dec ._bg .MajorTickMark =nil ;}else {_dec ._bg .MajorTickMark =_f .NewCT_TickMark ();_dec ._bg .MajorTickMark .ValAttr =m ;};};func (_acfc DataLabels )SetShowSeriesName (b bool ){_acfc .ensureChoice ();_acfc ._gbc .Choice .ShowSerName =_f .NewCT_Boolean ();_acfc ._gbc .Choice .ShowSerName .ValAttr =_g .Bool (b );};func (_abeb CategoryAxis )Properties ()_c .ShapeProperties {if _abeb ._bg .SpPr ==nil {_abeb ._bg .SpPr =_eb .NewCT_ShapeProperties ();};return _c .MakeShapeProperties (_abeb ._bg .SpPr );};func (_bgbb SurfaceChartSeries )InitializeDefaults (){_bgbb .Properties ().LineProperties ().SetWidth (1*_bb .Point );_bgbb .Properties ().LineProperties ().SetSolidFill (_gc .Black );_bgbb .Properties ().LineProperties ().SetJoin (_c .LineJoinRound );};func _df (_eda *_f .CT_Chart ){_eda .View3D =_f .NewCT_View3D ();_eda .View3D .RotX =_f .NewCT_RotX ();_eda .View3D .RotX .ValAttr =_g .Int8 (15);_eda .View3D .RotY =_f .NewCT_RotY ();_eda .View3D .RotY .ValAttr =_g .Uint16 (20);_eda .View3D .RAngAx =_f .NewCT_Boolean ();_eda .View3D .RAngAx .ValAttr =_g .Bool (false );_eda .Floor =_f .NewCT_Surface ();_eda .Floor .Thickness =_f .NewCT_Thickness ();_eda .Floor .Thickness .ValAttr .Uint32 =_g .Uint32 (0);_eda .SideWall =_f .NewCT_Surface ();_eda .SideWall .Thickness =_f .NewCT_Thickness ();_eda .SideWall .Thickness .ValAttr .Uint32 =_g .Uint32 (0);_eda .BackWall =_f .NewCT_Surface ();_eda .BackWall .Thickness =_f .NewCT_Thickness ();_eda .BackWall .Thickness .ValAttr .Uint32 =_g .Uint32 (0);};func (_gef BubbleChart )AddAxis (axis Axis ){_eee :=_f .NewCT_UnsignedInt ();_eee .ValAttr =axis .AxisID ();_gef ._bfe .AxId =append (_gef ._bfe .AxId ,_eee );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// CategoryAxis returns the category data source.
|
|
|
|
func (_aed PieChartSeries )CategoryAxis ()CategoryAxisDataSource {if _aed ._fdceg .Cat ==nil {_aed ._fdceg .Cat =_f .NewCT_AxDataSource ();};return MakeAxisDataSource (_aed ._fdceg .Cat );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Index returns the index of the series
|
|
|
|
func (_aac LineChartSeries )Index ()uint32 {return _aac ._gefa .Idx .ValAttr };
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddScatterChart adds a scatter (X/Y) chart.
|
|
|
|
func (_bfeb Chart )AddScatterChart ()ScatterChart {_dbc :=_f .NewCT_PlotAreaChoice ();_bfeb ._faeg .Chart .PlotArea .Choice =append (_bfeb ._faeg .Chart .PlotArea .Choice ,_dbc );_dbc .ScatterChart =_f .NewCT_ScatterChart ();_fefd :=ScatterChart {_babd :_dbc .ScatterChart };_fefd .InitializeDefaults ();return _fefd ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_ede Pie3DChart )InitializeDefaults (){_ede ._abb .VaryColors =_f .NewCT_Boolean ();_ede ._abb .VaryColors .ValAttr =_g .Bool (true );};func (_cbb Surface3DChart )InitializeDefaults (){_cbb ._bfb .Wireframe =_f .NewCT_Boolean ();_cbb ._bfb .Wireframe .ValAttr =_g .Bool (false );_cbb ._bfb .BandFmts =_f .NewCT_BandFmts ();for _egd :=0;_egd < 15;_egd ++{_ebf :=_f .NewCT_BandFmt ();_ebf .Idx .ValAttr =uint32 (_egd );_ebf .SpPr =_eb .NewCT_ShapeProperties ();_dgdc :=_c .MakeShapeProperties (_ebf .SpPr );_dgdc .SetSolidFill (_cbb .nextColor (_egd ));_cbb ._bfb .BandFmts .BandFmt =append (_cbb ._bfb .BandFmts .BandFmt ,_ebf );};};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_egc PieChart )InitializeDefaults (){_egc ._bea .VaryColors =_f .NewCT_Boolean ();_egc ._bea .VaryColors .ValAttr =_g .Bool (true );};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-11-10 11:45:21 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_ccg DoughnutChart )X ()*_f .CT_DoughnutChart {return _ccg ._cbd };func (_cf CategoryAxis )AxisID ()uint32 {return _cf ._bg .AxId .ValAttr };var NullAxis Axis =nullAxis (0);
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_agc BubbleChart )X ()*_f .CT_BubbleChart {return _agc ._bfe };func (_cbca ScatterChart )InitializeDefaults (){_cbca ._babd .ScatterStyle .ValAttr =_f .ST_ScatterStyleMarker ;};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddSeries adds a default series to an Pie chart.
|
|
|
|
func (_edd PieOfPieChart )AddSeries ()PieChartSeries {_faed :=_f .NewCT_PieSer ();_edd ._age .Ser =append (_edd ._age .Ser ,_faed );_faed .Idx .ValAttr =uint32 (len (_edd ._age .Ser )-1);_faed .Order .ValAttr =uint32 (len (_edd ._age .Ser )-1);_ggfa :=PieChartSeries {_faed };_ggfa .InitializeDefaults ();return _ggfa ;};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_bab RadarChartSeries )X ()*_f .CT_RadarSer {return _bab ._gefc };
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// AddAreaChart adds a new area chart to a chart.
|
|
|
|
func (_aca Chart )AddAreaChart ()AreaChart {_beg :=_f .NewCT_PlotAreaChoice ();_aca ._faeg .Chart .PlotArea .Choice =append (_aca ._faeg .Chart .PlotArea .Choice ,_beg );_beg .AreaChart =_f .NewCT_AreaChart ();_ggd :=AreaChart {_ge :_beg .AreaChart };_ggd .InitializeDefaults ();return _ggd ;};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetNumberReference is used to set the source data to a range of cells containing
|
|
|
|
// numbers.
|
|
|
|
func (_cae CategoryAxisDataSource )SetNumberReference (s string ){_cae ._bfa .Choice =_f .NewCT_AxDataSourceChoice ();_cae ._bfa .Choice .NumRef =_f .NewCT_NumRef ();_cae ._bfa .Choice .NumRef .F =s ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_dc AreaChartSeries )X ()*_f .CT_AreaSer {return _dc ._bcd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetLabelReference is used to set the source data to a range of cells
|
|
|
|
// containing strings.
|
|
|
|
func (_baa CategoryAxisDataSource )SetLabelReference (s string ){_baa ._bfa .Choice =_f .NewCT_AxDataSourceChoice ();_baa ._bfa .Choice .StrRef =_f .NewCT_StrRef ();_baa ._bfa .Choice .StrRef .F =s ;};
|
2017-09-04 10:50:29 -05:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// ScatterChartSeries is the data series for a scatter chart.
|
|
|
|
type ScatterChartSeries struct{_aab *_f .CT_ScatterSer };func MakeDataLabels (x *_f .CT_DLbls )DataLabels {return DataLabels {x }};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetText sets the series text.
|
|
|
|
func (_gba BarChartSeries )SetText (s string ){_gba ._ae .Tx =_f .NewCT_SerTx ();_gba ._ae .Tx .Choice .V =&s ;};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_ccc DateAxis )X ()*_f .CT_DateAx {return _ccc ._acae };func (_de Bar3DChart )AddAxis (axis Axis ){_ffg :=_f .NewCT_UnsignedInt ();_ffg .ValAttr =axis .AxisID ();_de ._be .AxId =append (_de ._be .AxId ,_ffg );};
|
|
|
|
|
|
|
|
// AddSeries adds a default series to a Scatter chart.
|
|
|
|
func (_bddg ScatterChart )AddSeries ()ScatterChartSeries {_egf :=_bddg .nextColor (len (_bddg ._babd .Ser ));_befc :=_f .NewCT_ScatterSer ();_bddg ._babd .Ser =append (_bddg ._babd .Ser ,_befc );_befc .Idx .ValAttr =uint32 (len (_bddg ._babd .Ser )-1);_befc .Order .ValAttr =uint32 (len (_bddg ._babd .Ser )-1);_aec :=ScatterChartSeries {_befc };_aec .InitializeDefaults ();_aec .Marker ().Properties ().LineProperties ().SetSolidFill (_egf );_aec .Marker ().Properties ().SetSolidFill (_egf );return _aec ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_ebaf SeriesAxis )X ()*_f .CT_SerAx {return _ebaf ._bega };func (_cac LineChartSeries )Values ()NumberDataSource {if _cac ._gefa .Val ==nil {_cac ._gefa .Val =_f .NewCT_NumDataSource ();};return MakeNumberDataSource (_cac ._gefa .Val );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Pie3DChart is a Pie3D chart.
|
|
|
|
type Pie3DChart struct{chartBase ;_abb *_f .CT_Pie3DChart ;};func (_bff CategoryAxis )SetCrosses (axis Axis ){_bff ._bg .Choice =_f .NewEG_AxSharedChoice ();_bff ._bg .Choice .Crosses =_f .NewCT_Crosses ();_bff ._bg .Choice .Crosses .ValAttr =_f .ST_CrossesAutoZero ;_bff ._bg .CrossAx .ValAttr =axis .AxisID ();};func (_gdcg ValueAxis )SetMinorTickMark (m _f .ST_TickMark ){if m ==_f .ST_TickMarkUnset {_gdcg ._cee .MinorTickMark =nil ;}else {_gdcg ._cee .MinorTickMark =_f .NewCT_TickMark ();_gdcg ._cee .MinorTickMark .ValAttr =m ;};};func MakeNumberDataSource (x *_f .CT_NumDataSource )NumberDataSource {return NumberDataSource {x }};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_adg Legend )X ()*_f .CT_Legend {return _adg ._bac };func (_efa SeriesAxis )SetCrosses (axis Axis ){_efa ._bega .CrossAx .ValAttr =axis .AxisID ()};func (_dgf Marker )SetSize (sz uint8 ){_dgf ._gbdc .Size =_f .NewCT_MarkerSize ();_dgf ._gbdc .Size .ValAttr =&sz ;};func (_cg DataLabels )SetShowLegendKey (b bool ){_cg .ensureChoice ();_cg ._gbc .Choice .ShowLegendKey =_f .NewCT_Boolean ();_cg ._gbc .Choice .ShowLegendKey .ValAttr =_g .Bool (b );};type GridLines struct{_adca *_f .CT_ChartLines };
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// SetOrder sets the order of the series
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_ega ScatterChartSeries )SetOrder (idx uint32 ){_ega ._aab .Order .ValAttr =idx };
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
|
|
|
func (_ac BarChart )X ()*_f .CT_BarChart {return _ac ._gcc };
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// SetType sets the type the secone pie to either pie or bar
|
|
|
|
func (_ddd PieOfPieChart )SetType (t _f .ST_OfPieType ){_ddd ._age .OfPieType .ValAttr =t };func (_aee ScatterChartSeries )CategoryAxis ()CategoryAxisDataSource {if _aee ._aab .XVal ==nil {_aee ._aab .XVal =_f .NewCT_AxDataSource ();};return MakeAxisDataSource (_aee ._aab .XVal );};
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// X returns the inner wrapped XML type.
|
2022-02-05 13:05:36 +00:00
|
|
|
func (_bbaa PieOfPieChart )X ()*_f .CT_OfPieChart {return _bbaa ._age };
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// InitializeDefaults the bar chart to its defaults
|
|
|
|
func (_ecg PieOfPieChart )InitializeDefaults (){_ecg ._age .VaryColors =_f .NewCT_Boolean ();_ecg ._age .VaryColors .ValAttr =_g .Bool (true );_ecg .SetType (_f .ST_OfPieTypePie );_ecg ._age .SecondPieSize =_f .NewCT_SecondPieSize ();_ecg ._age .SecondPieSize .ValAttr =&_f .ST_SecondPieSize {};_ecg ._age .SecondPieSize .ValAttr .ST_SecondPieSizeUShort =_g .Uint16 (75);_abc :=_f .NewCT_ChartLines ();_abc .SpPr =_eb .NewCT_ShapeProperties ();_ded :=_c .MakeShapeProperties (_abc .SpPr );_ded .LineProperties ().SetSolidFill (_gc .Auto );_ecg ._age .SerLines =append (_ecg ._age .SerLines ,_abc );};
|
2022-01-15 21:17:38 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// PieChart is a Pie chart.
|
|
|
|
type PieChart struct{chartBase ;_bea *_f .CT_PieChart ;};
|
|
|
|
|
|
|
|
// InitializeDefaults initializes an area series to the default values.
|
|
|
|
func (_ec AreaChartSeries )InitializeDefaults (){};
|