Area3DChart is an area chart that has a shaded area underneath a curve.
type Area3DChart struct {
// contains filtered or unexported fields
}
func (c Area3DChart) AddAxis(axis Axis)
func (c Area3DChart) AddSeries() AreaChartSeries
AddSeries adds a default series to an area chart.
func (c Area3DChart) InitializeDefaults()
InitializeDefaults the bar chart to its defaults
func (c Area3DChart) X() *crt.CT_Area3DChart
X returns the inner wrapped XML type.
AreaChart is an area chart that has a shaded area underneath a curve.
type AreaChart struct {
// contains filtered or unexported fields
}
func (c AreaChart) AddAxis(axis Axis)
func (c AreaChart) AddSeries() AreaChartSeries
AddSeries adds a default series to an area chart.
func (c AreaChart) InitializeDefaults()
InitializeDefaults the bar chart to its defaults
func (c AreaChart) X() *crt.CT_AreaChart
X returns the inner wrapped XML type.
AreaChartSeries is a series to be used on an area chart.
type AreaChartSeries struct {
// contains filtered or unexported fields
}
func (c AreaChartSeries) CategoryAxis() CategoryAxisDataSource
CategoryAxis returns the category data source.
func (c AreaChartSeries) InitializeDefaults()
InitializeDefaults initializes an area series to the default values.
func (c AreaChartSeries) Properties() drawing.ShapeProperties
Properties returns the bar chart series shape properties.
func (c AreaChartSeries) SetText(s string)
SetText sets the series text.
func (c AreaChartSeries) Values() NumberDataSource
Values returns the value data source.
func (c AreaChartSeries) X() *crt.CT_AreaSer
X returns the inner wrapped XML type.
Axis is the interface implemented by different axes when assigning to a chart.
type Axis interface { AxisID() uint32 }
NullAxis is a null axis with an ID of zero
var NullAxis Axis = nullAxis(0)
Bar3DChart is a 3D bar chart.
type Bar3DChart struct {
// contains filtered or unexported fields
}
func (c Bar3DChart) AddAxis(axis Axis)
func (c Bar3DChart) AddSeries() BarChartSeries
AddSeries adds a default series to a bar chart.
func (c Bar3DChart) InitializeDefaults()
InitializeDefaults the bar chart to its defaults
func (c Bar3DChart) SetDirection(d crt.ST_BarDir)
SetDirection changes the direction of the bar chart (bar or column).
func (c Bar3DChart) X() *crt.CT_Bar3DChart
X returns the inner wrapped XML type.
BarChart is a 2D bar chart.
type BarChart struct {
// contains filtered or unexported fields
}
func (c BarChart) AddAxis(axis Axis)
func (c BarChart) AddSeries() BarChartSeries
AddSeries adds a default series to a bar chart.
func (c BarChart) InitializeDefaults()
InitializeDefaults the bar chart to its defaults
func (c BarChart) SetDirection(d crt.ST_BarDir)
SetDirection changes the direction of the bar chart (bar or column).
func (c BarChart) X() *crt.CT_BarChart
X returns the inner wrapped XML type.
BarChartSeries is a series to be used on a bar chart.
type BarChartSeries struct {
// contains filtered or unexported fields
}
func (c BarChartSeries) CategoryAxis() CategoryAxisDataSource
CategoryAxis returns the category data source.
func (c BarChartSeries) InitializeDefaults()
InitializeDefaults initializes a bar chart series to the default values.
func (c BarChartSeries) Properties() drawing.ShapeProperties
Properties returns the bar chart series shape properties.
func (c BarChartSeries) SetText(s string)
SetText sets the series text.
func (c BarChartSeries) Values() NumberDataSource
Values returns the value data source.
func (c BarChartSeries) X() *crt.CT_BarSer
X returns the inner wrapped XML type.
BubbleChart is a 2D Bubble chart.
type BubbleChart struct {
// contains filtered or unexported fields
}
func (c BubbleChart) AddAxis(axis Axis)
func (c BubbleChart) AddSeries() BubbleChartSeries
AddSeries adds a default series to a Bubble chart.
func (c BubbleChart) InitializeDefaults()
InitializeDefaults the Bubble chart to its defaults
func (c BubbleChart) X() *crt.CT_BubbleChart
X returns the inner wrapped XML type.
BubbleChartSeries is a series to be used on a Bubble chart.
type BubbleChartSeries struct {
// contains filtered or unexported fields
}
func (c BubbleChartSeries) BubbleSizes() NumberDataSource
Values returns the bubble size data source.
func (c BubbleChartSeries) CategoryAxis() CategoryAxisDataSource
CategoryAxis returns the category data source.
func (c BubbleChartSeries) InitializeDefaults()
InitializeDefaults initializes a Bubble chart series to the default values.
func (c BubbleChartSeries) Properties() drawing.ShapeProperties
Properties returns the Bubble chart series shape properties.
func (c BubbleChartSeries) SetText(s string)
SetText sets the series text.
func (c BubbleChartSeries) Values() NumberDataSource
Values returns the value data source.
func (c BubbleChartSeries) X() *crt.CT_BubbleSer
X returns the inner wrapped XML type.
type CategoryAxis struct {
// contains filtered or unexported fields
}
func MakeCategoryAxis(x *crt.CT_CatAx) CategoryAxis
func (c CategoryAxis) AxisID() uint32
func (c CategoryAxis) InitializeDefaults()
func (c CategoryAxis) MajorGridLines() GridLines
func (c CategoryAxis) Properties() drawing.ShapeProperties
func (c CategoryAxis) SetCrosses(axis Axis)
func (c CategoryAxis) SetMajorTickMark(m crt.ST_TickMark)
func (c CategoryAxis) SetMinorTickMark(m crt.ST_TickMark)
func (c CategoryAxis) SetPosition(p crt.ST_AxPos)
func (c CategoryAxis) SetTickLabelPosition(p crt.ST_TickLblPos)
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 {
// contains filtered or unexported fields
}
func MakeAxisDataSource(x *crt.CT_AxDataSource) CategoryAxisDataSource
MakeAxisDataSource constructs an AxisDataSource wrapper.
func (a CategoryAxisDataSource) SetLabelReference(s string)
SetLabelReference is used to set the source data to a range of cells containing strings.
func (a CategoryAxisDataSource) SetNumberReference(s string)
SetNumberReference is used to set the source data to a range of cells containing numbers.
func (a CategoryAxisDataSource) SetValues(v []string)
SetValues is used to set the source data to a set of values.
Chart is a generic chart.
type Chart struct {
// contains filtered or unexported fields
}
func MakeChart(x *crt.ChartSpace) Chart
func (c Chart) AddArea3DChart() Area3DChart
AddArea3DChart adds a new area chart to a chart.
func (c Chart) AddAreaChart() AreaChart
AddAreaChart adds a new area chart to a chart.
func (c Chart) AddBar3DChart() Bar3DChart
AddBar3DChart adds a new 3D bar chart to a chart.
func (c Chart) AddBarChart() BarChart
AddBarChart adds a new bar chart to a chart.
func (c Chart) AddBubbleChart() BubbleChart
AddBubbleChart adds a new bubble chart.
func (c Chart) AddCategoryAxis() CategoryAxis
AddCategoryAxis adds a category axis.
func (c Chart) AddDateAxis() DateAxis
AddDateAxis adds a value axis to the chart.
func (c Chart) AddDoughnutChart() DoughnutChart
AddDoughnutChart adds a new doughnut (pie with a hole in the center) chart to a chart.
func (c Chart) AddLegend() Legend
AddLegend adds a legend to a chart, replacing any existing legend.
func (c Chart) AddLine3DChart() Line3DChart
AddLine3DChart adds a new 3D line chart to a chart.
func (c Chart) AddLineChart() LineChart
AddLineChart adds a new line chart to a chart.
func (c Chart) AddPie3DChart() Pie3DChart
AddPie3DChart adds a new pie chart to a chart.
func (c Chart) AddPieChart() PieChart
AddPieChart adds a new pie chart to a chart.
func (c Chart) AddPieOfPieChart() PieOfPieChart
AddPieOfPieChart adds a new pie chart to a chart.
func (c Chart) AddRadarChart() RadarChart
AddRadarChart adds a new radar chart to a chart.
func (c Chart) AddScatterChart() ScatterChart
AddScatterChart adds a scatter (X/Y) chart.
func (c Chart) AddSeriesAxis() SeriesAxis
func (c Chart) AddStockChart() StockChart
AddStockChart adds a new stock chart.
func (c Chart) AddSurface3DChart() Surface3DChart
AddSurface3DChart adds a new 3D surface chart to a chart.
func (c Chart) AddSurfaceChart() SurfaceChart
AddSurfaceChart adds a new surface chart to a chart.
func (c Chart) AddTitle() Title
AddTitle sets a new title on the chart.
func (c Chart) AddValueAxis() ValueAxis
AddValueAxis adds a value axis to the chart.
func (c Chart) Properties() drawing.ShapeProperties
Properties returns the chart's shape properties.
func (c Chart) RemoveLegend()
RemoveLegend removes the legend if the chart has one.
func (c Chart) RemoveTitle()
RemoveTitle removes any existing title from the chart.
func (c Chart) SetDisplayBlanksAs(v crt.ST_DispBlanksAs)
SetDisplayBlanksAs controls how missing values are displayed.
func (c Chart) X() *crt.ChartSpace
X returns the inner wrapped XML type.
type DataLabels struct {
// contains filtered or unexported fields
}
func MakeDataLabels(x *crt.CT_DLbls) DataLabels
func (d DataLabels) SetPosition(p crt.ST_DLblPos)
func (d DataLabels) SetShowCategoryName(b bool)
func (d DataLabels) SetShowLeaderLines(b bool)
func (d DataLabels) SetShowLegendKey(b bool)
func (d DataLabels) SetShowPercent(b bool)
func (d DataLabels) SetShowSeriesName(b bool)
func (d DataLabels) SetShowValue(b bool)
type DateAxis struct {
// contains filtered or unexported fields
}
func (v DateAxis) AxisID() uint32
func (v DateAxis) MajorGridLines() GridLines
func (v DateAxis) Properties() drawing.ShapeProperties
func (v DateAxis) SetCrosses(axis Axis)
func (v DateAxis) SetMajorTickMark(m crt.ST_TickMark)
func (v DateAxis) SetMinorTickMark(m crt.ST_TickMark)
func (v DateAxis) SetPosition(p crt.ST_AxPos)
func (v DateAxis) SetTickLabelPosition(p crt.ST_TickLblPos)
func (v DateAxis) X() *crt.CT_DateAx
X returns the inner wrapped XML type.
DoughnutChart is a Doughnut chart.
type DoughnutChart struct {
// contains filtered or unexported fields
}
func (c DoughnutChart) AddSeries() PieChartSeries
AddSeries adds a default series to an Doughnut chart.
func (c DoughnutChart) InitializeDefaults()
InitializeDefaults the bar chart to its defaults
func (c DoughnutChart) SetHoleSize(pct uint8)
SetHoleSize controls the hole size in the pie chart and is measured in percent.
func (c DoughnutChart) X() *crt.CT_DoughnutChart
X returns the inner wrapped XML type.
type GridLines struct {
// contains filtered or unexported fields
}
func (g GridLines) Properties() drawing.ShapeProperties
func (g GridLines) X() *crt.CT_ChartLines
X returns the inner wrapped XML type.
type Legend struct {
// contains filtered or unexported fields
}
func MakeLegend(l *crt.CT_Legend) Legend
func (l Legend) InitializeDefaults()
func (l Legend) Properties() drawing.ShapeProperties
func (l Legend) SetOverlay(b bool)
func (l Legend) SetPosition(p crt.ST_LegendPos)
func (l Legend) X() *crt.CT_Legend
X returns the inner wrapped XML type.
type Line3DChart struct {
// contains filtered or unexported fields
}
func (c Line3DChart) AddAxis(axis Axis)
AddAxis adds an axis to a line chart.
func (c Line3DChart) AddSeries() LineChartSeries
AddSeries adds a default series to a line chart.
func (c Line3DChart) X() *crt.CT_Line3DChart
X returns the inner wrapped XML type.
type LineChart struct {
// contains filtered or unexported fields
}
func (c LineChart) AddAxis(axis Axis)
AddAxis adds an axis to a line chart.
func (c LineChart) AddSeries() LineChartSeries
AddSeries adds a default series to a line chart.
func (c LineChart) X() *crt.CT_LineChart
X returns the inner wrapped XML type.
LineChartSeries is the data series for a line chart.
type LineChartSeries struct {
// contains filtered or unexported fields
}
func (c LineChartSeries) CategoryAxis() CategoryAxisDataSource
func (c LineChartSeries) Index() uint32
Index returns the index of the series
func (c LineChartSeries) InitializeDefaults()
func (c LineChartSeries) Labels() DataLabels
Labels returns the data label properties.
func (c LineChartSeries) Marker() Marker
Marker returns the marker properties.
func (c LineChartSeries) Order() uint32
Order returns the order of the series
func (c LineChartSeries) Properties() drawing.ShapeProperties
Properties returns the line chart series shape properties.
func (c LineChartSeries) SetIndex(idx uint32)
SetIndex sets the index of the series
func (c LineChartSeries) SetOrder(idx uint32)
SetOrder sets the order of the series
func (c LineChartSeries) SetSmooth(b bool)
func (c LineChartSeries) SetText(s string)
SetText sets the series text
func (c LineChartSeries) Values() NumberDataSource
func (c LineChartSeries) X() *crt.CT_LineSer
X returns the inner wrapped XML type.
type Marker struct {
// contains filtered or unexported fields
}
func MakeMarker(x *crt.CT_Marker) Marker
func (m Marker) Properties() drawing.ShapeProperties
func (m Marker) SetSize(sz uint8)
func (m Marker) SetSymbol(s crt.ST_MarkerStyle)
func (m Marker) X() *crt.CT_Marker
X returns the inner wrapped XML type.
type NumberDataSource struct {
// contains filtered or unexported fields
}
func MakeNumberDataSource(x *crt.CT_NumDataSource) NumberDataSource
func (n NumberDataSource) CreateEmptyNumberCache()
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 (n NumberDataSource) SetReference(s string)
func (n NumberDataSource) SetValues(v []float64)
SetValues sets values directly on a source.
Pie3DChart is a Pie3D chart.
type Pie3DChart struct {
// contains filtered or unexported fields
}
func (c Pie3DChart) AddSeries() PieChartSeries
AddSeries adds a default series to an Pie3D chart.
func (c Pie3DChart) InitializeDefaults()
InitializeDefaults the bar chart to its defaults
func (c Pie3DChart) X() *crt.CT_Pie3DChart
X returns the inner wrapped XML type.
PieChart is a Pie chart.
type PieChart struct {
// contains filtered or unexported fields
}
func (c PieChart) AddSeries() PieChartSeries
AddSeries adds a default series to an Pie chart.
func (c PieChart) InitializeDefaults()
InitializeDefaults the bar chart to its defaults
func (c PieChart) X() *crt.CT_PieChart
X returns the inner wrapped XML type.
PieChartSeries is a series to be used on an Pie chart.
type PieChartSeries struct {
// contains filtered or unexported fields
}
func (c PieChartSeries) CategoryAxis() CategoryAxisDataSource
CategoryAxis returns the category data source.
func (c PieChartSeries) InitializeDefaults()
InitializeDefaults initializes an Pie series to the default values.
func (c PieChartSeries) Properties() drawing.ShapeProperties
Properties returns the bar chart series shape properties.
func (c PieChartSeries) SetExplosion(v uint32)
SetExplosion sets the value that the segements of the pie are 'exploded' by
func (c PieChartSeries) SetText(s string)
SetText sets the series text.
func (c PieChartSeries) Values() NumberDataSource
Values returns the value data source.
func (c PieChartSeries) X() *crt.CT_PieSer
X returns the inner wrapped XML type.
PieOfPieChart is a Pie chart with an extra Pie chart.
type PieOfPieChart struct {
// contains filtered or unexported fields
}
func (c PieOfPieChart) AddSeries() PieChartSeries
AddSeries adds a default series to an Pie chart.
func (c PieOfPieChart) InitializeDefaults()
InitializeDefaults the bar chart to its defaults
func (c PieOfPieChart) SetType(t crt.ST_OfPieType)
SetType sets the type the secone pie to either pie or bar
func (c PieOfPieChart) X() *crt.CT_OfPieChart
X returns the inner wrapped XML type.
RadarChart is an Radar chart that has a shaded Radar underneath a curve.
type RadarChart struct {
// contains filtered or unexported fields
}
func (c RadarChart) AddAxis(axis Axis)
func (c RadarChart) AddSeries() RadarChartSeries
AddSeries adds a default series to an Radar chart.
func (c RadarChart) InitializeDefaults()
InitializeDefaults the bar chart to its defaults
func (c RadarChart) X() *crt.CT_RadarChart
X returns the inner wrapped XML type.
RadarChartSeries is a series to be used on an Radar chart.
type RadarChartSeries struct {
// contains filtered or unexported fields
}
func (c RadarChartSeries) CategoryAxis() CategoryAxisDataSource
CategoryAxis returns the category data source.
func (c RadarChartSeries) InitializeDefaults()
InitializeDefaults initializes an Radar series to the default values.
func (c RadarChartSeries) Properties() drawing.ShapeProperties
Properties returns the bar chart series shape properties.
func (c RadarChartSeries) SetText(s string)
SetText sets the series text.
func (c RadarChartSeries) Values() NumberDataSource
Values returns the value data source.
func (c RadarChartSeries) X() *crt.CT_RadarSer
X returns the inner wrapped XML type.
type ScatterChart struct {
// contains filtered or unexported fields
}
func (c ScatterChart) AddAxis(axis Axis)
AddAxis adds an axis to a Scatter chart.
func (c ScatterChart) AddSeries() ScatterChartSeries
AddSeries adds a default series to a Scatter chart.
func (c ScatterChart) InitializeDefaults()
func (c ScatterChart) X() *crt.CT_ScatterChart
X returns the inner wrapped XML type.
ScatterChartSeries is the data series for a scatter chart.
type ScatterChartSeries struct {
// contains filtered or unexported fields
}
func (c ScatterChartSeries) CategoryAxis() CategoryAxisDataSource
func (c ScatterChartSeries) Index() uint32
Index returns the index of the series
func (c ScatterChartSeries) InitializeDefaults()
func (c ScatterChartSeries) Labels() DataLabels
Labels returns the data label properties.
func (c ScatterChartSeries) Marker() Marker
Marker returns the marker properties.
func (c ScatterChartSeries) Order() uint32
Order returns the order of the series
func (c ScatterChartSeries) Properties() drawing.ShapeProperties
Properties returns the line chart series shape properties.
func (c ScatterChartSeries) SetIndex(idx uint32)
SetIndex sets the index of the series
func (c ScatterChartSeries) SetOrder(idx uint32)
SetOrder sets the order of the series
func (c ScatterChartSeries) SetSmooth(b bool)
func (c ScatterChartSeries) SetText(s string)
SetText sets the series text
func (c ScatterChartSeries) Values() NumberDataSource
func (c ScatterChartSeries) X() *crt.CT_ScatterSer
X returns the inner wrapped XML type.
type SeriesAxis struct {
// contains filtered or unexported fields
}
func MakeSeriesAxis(x *crt.CT_SerAx) SeriesAxis
func (s SeriesAxis) AxisID() uint32
func (s SeriesAxis) InitializeDefaults()
func (s SeriesAxis) SetCrosses(axis Axis)
func (s SeriesAxis) X() *crt.CT_SerAx
X returns the inner wrapped XML type.
StockChart is a 2D Stock chart.
type StockChart struct {
// contains filtered or unexported fields
}
func (c StockChart) AddAxis(axis Axis)
func (c StockChart) AddSeries() LineChartSeries
AddSeries adds a default series to a Stock chart.
func (c StockChart) InitializeDefaults()
InitializeDefaults the Stock chart to its defaults
func (c StockChart) X() *crt.CT_StockChart
X returns the inner wrapped XML type.
Surface3DChart is a 3D view of a surface chart.
type Surface3DChart struct {
// contains filtered or unexported fields
}
func (c Surface3DChart) AddAxis(axis Axis)
AddAxis adds an axis to a Surface chart.
func (c Surface3DChart) AddSeries() SurfaceChartSeries
AddSeries adds a default series to a Surface chart.
func (c Surface3DChart) InitializeDefaults()
func (c Surface3DChart) X() *crt.CT_Surface3DChart
X returns the inner wrapped XML type.
SurfaceChart is a 3D surface chart, viewed from the top-down.
type SurfaceChart struct {
// contains filtered or unexported fields
}
func (c SurfaceChart) AddAxis(axis Axis)
AddAxis adds an axis to a Surface chart.
func (c SurfaceChart) AddSeries() SurfaceChartSeries
AddSeries adds a default series to a Surface chart.
func (c SurfaceChart) InitializeDefaults()
func (c SurfaceChart) X() *crt.CT_SurfaceChart
X returns the inner wrapped XML type.
type SurfaceChartSeries struct {
// contains filtered or unexported fields
}
func (c SurfaceChartSeries) CategoryAxis() CategoryAxisDataSource
func (c SurfaceChartSeries) Index() uint32
Index returns the index of the series
func (c SurfaceChartSeries) InitializeDefaults()
func (c SurfaceChartSeries) Order() uint32
Order returns the order of the series
func (c SurfaceChartSeries) Properties() drawing.ShapeProperties
Properties returns the line chart series shape properties.
func (c SurfaceChartSeries) SetIndex(idx uint32)
SetIndex sets the index of the series
func (c SurfaceChartSeries) SetOrder(idx uint32)
SetOrder sets the order of the series
func (c SurfaceChartSeries) SetText(s string)
SetText sets the series text
func (c SurfaceChartSeries) Values() NumberDataSource
func (c SurfaceChartSeries) X() *crt.CT_SurfaceSer
X returns the inner wrapped XML type.
type Title struct {
// contains filtered or unexported fields
}
func MakeTitle(x *crt.CT_Title) Title
func (t Title) InitializeDefaults()
func (t Title) ParagraphProperties() drawing.ParagraphProperties
func (t Title) RunProperties() drawing.RunProperties
func (t Title) SetText(s string)
func (t Title) X() *crt.CT_Title
X returns the inner wrapped XML type.
type ValueAxis struct {
// contains filtered or unexported fields
}
func MakeValueAxis(x *crt.CT_ValAx) ValueAxis
func (v ValueAxis) AxisID() uint32
func (v ValueAxis) MajorGridLines() GridLines
func (v ValueAxis) Properties() drawing.ShapeProperties
func (v ValueAxis) SetCrosses(axis Axis)
func (v ValueAxis) SetMajorTickMark(m crt.ST_TickMark)
func (v ValueAxis) SetMinorTickMark(m crt.ST_TickMark)
func (v ValueAxis) SetPosition(p crt.ST_AxPos)
func (v ValueAxis) SetTickLabelPosition(p crt.ST_TickLblPos)
func (v ValueAxis) X() *crt.CT_ValAx
X returns the inner wrapped XML type.