Recent

Author Topic: [solved] TAChart right Axis range not right?  (Read 1643 times)

yyouchen

  • Newbie
  • Posts: 2
[solved] TAChart right Axis range not right?
« on: February 11, 2023, 02:16:04 am »
The right axis display value is equal to the left axis value multiplied by the right axis value
How can i fix it?


« Last Edit: February 12, 2023, 01:10:22 pm by yyouchen »

wp

  • Hero Member
  • *****
  • Posts: 11858
Re: TAChart right Axis range not right?
« Reply #1 on: February 11, 2023, 11:21:19 am »
The AutoScaleAxisTransform does not work properly when no series is assigned to the axis associated with this transformation. In your example the left axis is not assigned to any series. Change the AxisIndexY of the first lineseries in each chart from -1 (no axis) to 0 (index of left axis).
Code: Pascal  [Select][+][-]
  1. Chart1LineSeries1.AxisIndexY := 0;
  2. Chart1LineSeries2.AxisIndexY := 2;  // (already assigned in OI, just repeating)
  3. Chart2LineSeries1.AxisIndexY := 0;
  4. Chart2LineSeries2.AxisIndexY := 2;  // (already assigned in OI, just repeating)
« Last Edit: February 11, 2023, 11:27:42 am by wp »

yyouchen

  • Newbie
  • Posts: 2
Re: [solved] TAChart right Axis range not right?
« Reply #2 on: February 12, 2023, 01:10:44 pm »
THANK YOU WP :D :D

 

TinyPortal © 2005-2018