#include <XLChart.hpp>
|
| | XLChartSeries ()=default |
| |
| | XLChartSeries (const XMLNode &node) |
| |
| XLChartSeries & | setTitle (std::string_view title) |
| |
| XLChartSeries & | setSmooth (bool smooth) |
| |
| XLChartSeries & | setMarkerStyle (XLMarkerStyle style) |
| |
| XLChartSeries & | setColor (std::string_view hexRGB) |
| | Set the fill and line color of this data series.
|
| |
| XLChartSeries & | setDataPointColor (uint32_t pointIdx, std::string_view hexRGB) |
| | Override the color of a single data point within this series.
|
| |
| XLChartSeries & | setDataLabels (bool showValue, bool showCategoryName=false, bool showPercent=false) |
| | Enable and configure data labels for this series.
|
| |
| XLChartSeries & | setDataLabelsFromRange (const XLWorksheet &wks, const XLCellRange &range) |
| | Set the data labels for this series to come from a worksheet range.
|
| |
| XLChartSeries & | addTrendline (XLTrendlineType type, std::string_view name="", uint8_t order=2, uint8_t period=2) |
| | Add a trendline to this series.
|
| |
| XLChartSeries & | addErrorBars (XLErrorBarDirection direction, XLErrorBarType type, XLErrorBarValueType valType, double value=0.0) |
| | Add error bars to this series.
|
| |
◆ XLChartSeries() [1/2]
| OpenXLSX::XLChartSeries::XLChartSeries |
( |
| ) |
|
|
default |
◆ XLChartSeries() [2/2]
| OpenXLSX::XLChartSeries::XLChartSeries |
( |
const XMLNode & |
node | ) |
|
|
explicit |
◆ addErrorBars()
Add error bars to this series.
◆ addTrendline()
| XLChartSeries & OpenXLSX::XLChartSeries::addTrendline |
( |
XLTrendlineType |
type, |
|
|
std::string_view |
name = "", |
|
|
uint8_t |
order = 2, |
|
|
uint8_t |
period = 2 |
|
) |
| |
Add a trendline to this series.
◆ setColor()
| XLChartSeries & OpenXLSX::XLChartSeries::setColor |
( |
std::string_view |
hexRGB | ) |
|
Set the fill and line color of this data series.
- Parameters
-
| hexRGB | Six-character hex color string, e.g. "FF0000" for red. |
◆ setDataLabels()
| XLChartSeries & OpenXLSX::XLChartSeries::setDataLabels |
( |
bool |
showValue, |
|
|
bool |
showCategoryName = false, |
|
|
bool |
showPercent = false |
|
) |
| |
Enable and configure data labels for this series.
- Parameters
-
| showValue | Show the cell value on each label. |
| showCategoryName | Show the category name. |
| showPercent | Show percentage (mainly for pie/doughnut charts). |
◆ setDataLabelsFromRange()
Set the data labels for this series to come from a worksheet range.
- Parameters
-
| wks | The worksheet containing the labels. |
| range | The range of cells to use for labels. |
◆ setDataPointColor()
| XLChartSeries & OpenXLSX::XLChartSeries::setDataPointColor |
( |
uint32_t |
pointIdx, |
|
|
std::string_view |
hexRGB |
|
) |
| |
Override the color of a single data point within this series.
- Parameters
-
| pointIdx | Zero-based index of the data point. |
| hexRGB | Six-character hex color string. |
◆ setMarkerStyle()
◆ setSmooth()
| XLChartSeries & OpenXLSX::XLChartSeries::setSmooth |
( |
bool |
smooth | ) |
|
◆ setTitle()
| XLChartSeries & OpenXLSX::XLChartSeries::setTitle |
( |
std::string_view |
title | ) |
|
The documentation for this class was generated from the following file:
- /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/headers/XLChart.hpp