fpspreadsheet: Beginning with rotated axes in chart link. Simplify generation of sample ods files.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9084 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2023-12-14 22:50:59 +00:00
parent e51f7f3b29
commit af15ca0540
15 changed files with 302 additions and 350 deletions

View File

@ -1050,15 +1050,23 @@ begin
case nodeName of
'style:chart-properties':
begin
// Stacked
s := GetAttrValue(AStyleNode, 'chart:stacked');
if s = 'true' then
AChart.StackMode := csmStacked;
// Stacked as percentage
s := GetAttrValue(AStyleNode, 'chart:percentage');
if s = 'true' then
AChart.StackMode := csmStackedPercentage;
// Horizontal bars
s := GetAttrValue(AStyleNode, 'chart:vertical');
if s = 'true' then
AChart.RotatedAxes := true;
// Pie series start angle
s := GetAttrValue(AStyleNode, 'chart:angle-offset');
if s <> '' then
FPieSeriesStartAngle := StrToInt(s);
// Stockseries candlestick mode
s := GetAttrValue(AStyleNode, 'chart:japanese-candle-stick');
if (s <> '') and (FStockSeries <> nil) then
FStockSeries.CandleStick := true;