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?