Recent

Author Topic: Extent of date x-axis  (Read 3209 times)

Adrie

  • New member
  • *
  • Posts: 9
Extent of date x-axis
« on: September 25, 2012, 12:02:31 pm »
I have a chart with dates as x-axis. The chart is on a form and it looks perfect when shown the first time (see first attachment). When I paint the chart on a print preview form using the PaintOnCanvas procedure, the minimum and maximum on the x-axis are shifted, see second attatchment. When the chart is drawn on the form again, the same happens.

I use the extent property of the chart to set the minimum and maximum values, but that has no effect. I tried the same with the ExtentSizeLimit property and the Range property of the axis. No effect. Is this a bug, or have I forgotten something?




Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: Extent of date x-axis
« Reply #1 on: September 25, 2012, 12:10:19 pm »
Which Lazarus version are you using?

Adrie

  • New member
  • *
  • Posts: 9
Re: Extent of date x-axis
« Reply #2 on: September 25, 2012, 12:12:44 pm »
1.0, SVN revision 38415. This happens on Windows 32 bits as well as on Kubuntu 12.04 64 bits.

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: Extent of date x-axis
« Reply #3 on: September 25, 2012, 12:23:46 pm »
Maybe r38571 will help?

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: Extent of date x-axis
« Reply #4 on: September 27, 2012, 03:27:26 pm »
Adrie, does the fix work for you?

 

TinyPortal © 2005-2018