1 #ifndef __CHARTSHEET_H__
2 #define __CHARTSHEET_H__
14 namespace SimpleXlsx {
69 BAR_GROUP_CLUSTERED = 0,
71 BAR_GROUP_PERCENT_STACKED
130 cross = CROSS_AUTO_ZERO;
163 barDir = BAR_DIR_VERTICAL;
164 barGroup = BAR_GROUP_CLUSTERED;
165 scatterStyle = SCATTER_FILL;
188 CChartsheet(uint32_t index,
const _tstring& temp_path);
193 int32_t GetIndex()
const {
return m_index; }
196 _tstring GetTitle()
const {
return m_title; }
197 void SetTitle(
const _tstring& title) {
m_title = title.length() > 31 ? title.substr(0, 31) : title; }
206 void SetDiagrammName(
const _tstring& name) {
m_diagramm.
name = name; }
223 void SetXAxisName(
const _tstring& name) {
m_xAxis.
name = name; }
224 void SetYAxisName(
const _tstring& name) {
m_yAxis.
name = name; }
241 void SetX2AxisName(
const _tstring& name) {
m_x2Axis.
name = name; }
242 void SetY2AxisName(
const _tstring& name) {
m_y2Axis.
name = name; }
250 bool AddSeries(
const Series& series,
bool mainChart =
true);
252 bool IsOk()
const {
return m_isOk; }
257 void AddTitle(
const TCHAR* name, uint32_t size,
bool vertPos);
260 void AddXAxis(
const Axis& x, uint32_t crossAxisId = 0);
261 void AddYAxis(
const Axis& y, uint32_t crossAxisId = 0);
263 void AddLineChart(Axis& xAxis, uint32_t yAxisId,
const std::vector<Series>& series, uint32_t firstSeriesId);
265 void AddScatterChart(uint32_t xAxisId, uint32_t yAxisId,
const std::vector<Series>& series, uint32_t firstSeriesId,
EScatterStyle style);
270 #endif // __CHARTSHEET_H__