You've already forked lazarus-ccr
fpspreadsheet: Support manual axis scaling in ods writer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8999 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -126,6 +126,10 @@ begin
|
||||
ch.YAxis.CaptionFont.Size := 12;
|
||||
//ch.YAxis.LabelRotation := 90;
|
||||
//ch.YAxis.CaptionRotation := 90;
|
||||
ch.YAxis.Min := -5;
|
||||
ch.yAxis.Max := 5;
|
||||
ch.YAxis.AutomaticMin := false;
|
||||
ch.YAxis.AutomaticMax := false;
|
||||
ch.YAxis.MajorGridLines.Color := scBlue;
|
||||
ch.YAxis.MajorGridLines.Style := clsLongDash; //clsSolid;
|
||||
ch.YAxis.MajorGridLines.Width := 0.5; // mm
|
||||
|
@ -504,6 +504,8 @@ constructor TsChartAxis.Create(AChart: TsChart);
|
||||
begin
|
||||
inherited Create(AChart);
|
||||
|
||||
FAutomaticMin := true;
|
||||
FAutomaticMax := true;
|
||||
FAutomaticMajorInterval := true;
|
||||
FAutomaticMinorSteps := true;
|
||||
|
||||
|
@ -197,6 +197,18 @@ begin
|
||||
if Axis.Logarithmic then
|
||||
chartProps := chartProps + 'chart:logarithmic="true" ';
|
||||
|
||||
if not Axis.AutomaticMin then
|
||||
chartProps := chartProps + Format('chart:minimum="%g" ', [Axis.Min], FPointSeparatorSettings);
|
||||
|
||||
if not Axis.AutomaticMax then
|
||||
chartProps := chartProps + Format('chart:maximum="%g" ', [Axis.Max], FPointSeparatorSettings);
|
||||
|
||||
if not Axis.AutomaticMajorInterval then
|
||||
chartProps := chartProps + Format('chart:interval-major="%g" ', [Axis.MajorInterval], FPointSeparatorSettings);
|
||||
|
||||
if not Axis.AutomaticMinorSteps then
|
||||
chartProps := chartProps + Format('chart:interval-minor-divisor="%d" ', [Axis.MinorSteps]);
|
||||
|
||||
if Axis.Inverted then
|
||||
chartProps := chartProps + 'chart:reverse-direction="true" ';
|
||||
|
||||
|
Reference in New Issue
Block a user