Recent

Author Topic: dual y-axis, changing axis for a series by code  (Read 2966 times)

mtanner

  • Sr. Member
  • ****
  • Posts: 287
dual y-axis, changing axis for a series by code
« on: November 16, 2017, 08:12:03 am »
I have a chart using dual y-axis, which works fine, as long as the axis to be used by each series is set in the form designer. But I have a series for which the axis has to be selected in code. I have tried

If MyCondition then MySeries.AxisIndexY:=0 else MySeries.AxisIndexY:=2;

but this seems to have no effect.


wp

  • Hero Member
  • *****
  • Posts: 11858
Re: dual y-axis, changing axis for a series by code
« Reply #1 on: November 16, 2017, 11:31:28 am »
It is working for me - see attachment. Are you sure that the dual axes are set up correctly?

mtanner

  • Sr. Member
  • ****
  • Posts: 287
Re: dual y-axis, changing axis for a series by code
« Reply #2 on: November 17, 2017, 09:41:10 am »
I think my problem is with the dual axes setup. Thanks.

 

TinyPortal © 2005-2018