Hi all


Hi all
Need a bit of help with TChart:
I cant find where in the settings its putting a space before it starts plotting at the start and end of the graph
(it seems to have appeared after upgrading from D9 to XE6 (if I drop a new tchart (pro) on the form,it does not appear...but I have tried to compare the settings but cant find it...
so looking for some help
I have a screen shot to show what I mean
Maybe David you can help?
thanks

Comments

  1. excellent...file on its way
    thanks for having a look for me :)

    ReplyDelete
  2. The space is added by both the Area series named "solar" (Series18) and the Bottom axis min offset.

    To disable it in "solar" series, go to "solar" editor, tab "Point -> Size" and uncheck InflateMargins.
    If the checkbox is disabled, first check the Visible property at "Point->Format" tab, and uncheck after-wards.
    Equivalent code:   Series18.InflateMargins:=False;

    The bottom axis has specified a min offset of 3 pixels.
    To disable, goto Axis->Bottom->Scales->Mininum tab and set the "Offset" spinbox to zero.
    Equivalent code:   abtrendnew1new.Axes.Bottom.MinimumOffset:=0;

    After that space is gone, but as the left axis pen width is 2, there still might be one pixel separation,
    too small to verify without the TMagnifyTool magnifier-glass !  :-)

    ReplyDelete
  3. excellent, the bottomaxis min/max offset being set to 3 instead of 0 was the problem alright, thanks very much!

    ReplyDelete

Post a Comment