Recent

Author Topic: howto fix left axis position of tchart?  (Read 10521 times)

mek

  • New member
  • *
  • Posts: 8
howto fix left axis position of tchart?
« on: December 17, 2009, 08:59:48 am »
I have two TChart with identic bottom axis (date series) on one TForm, need to align left axis at the same x position of TForm .

« Last Edit: December 17, 2009, 09:02:12 am by mek »

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: howto fix left axis position of tchart?
« Reply #1 on: December 20, 2009, 12:48:15 pm »
Try setting the Extent property of the chart.
See tachart/demo/extentdemo for an example.

mek

  • New member
  • *
  • Posts: 8
Re: howto fix left axis position of tchart?
« Reply #2 on: December 20, 2009, 06:48:32 pm »
thanks.

Extent is not the cause.

chart1 and chart2 have same bottom axis(x value) extent
and chart2.left = chart1.left.

(in TATypes.pas, TChartAxis.Measure)the position of left axis is determined by the max mark size(the max y value, not a fix value).

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: howto fix left axis position of tchart?
« Reply #3 on: December 23, 2009, 06:49:03 pm »
Then I am afraid I do not understand what you want to do.
Can you post either a sample project or a screenshot demonstrating your problem?

 

TinyPortal © 2005-2018