Recent

Author Topic: TAchart grid distance  (Read 12332 times)

lightningchaser

  • New member
  • *
  • Posts: 7
TAchart grid distance
« on: March 13, 2010, 07:27:43 am »
Hi all,

Is it possible to control the grid distance in a TAchart? In the example image the day of the year is on the X-axis and a would like a grid line for every month (first line at 31 second line at 31+28 etc).

« Last Edit: March 16, 2010, 07:28:43 am by lightningchaser »

lightningchaser

  • New member
  • *
  • Posts: 7
Re: TAchart grid distance
« Reply #1 on: March 16, 2010, 07:29:41 am »
is the image visible for you?

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: TAchart grid distance
« Reply #2 on: March 17, 2010, 12:03:42 am »
TAChart does not currently support arbitrary grid steps.
You can simulate the granularity you need by carefully selecting you scale
(for example, on the screenshot you provided the scale is obviously too large).

This is a good feature to have, and I may implement it in the future.
If you do not want it to be forgotten, please add an issue to the bugtracker.
Also, if you want faster response times from Lazarus developers,
try to communicate via mailing list instead of the forum.
(See links to both bugtracker and maillists on the left panel of the forum).

Quote
is the image visible for you?

Yes, the image is visible -- but only for logged-in users.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8790
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: TAchart grid distance
« Reply #3 on: March 17, 2010, 04:22:55 am »
I was just about to ask the same question.
Quote
TAChart does not currently support arbitrary grid steps.
Too bad.
Quote
You can simulate the granularity you need by carefully selecting you scale
Is there any document / article explaining about offset and scale?

lightningchaser

  • New member
  • *
  • Posts: 7
Re: TAchart grid distance
« Reply #4 on: March 17, 2010, 07:22:28 pm »
This is a good feature to have, and I may implement it in the future.
If you do not want it to be forgotten, please add an issue to the bugtracker.
Also, if you want faster response times from Lazarus developers,
try to communicate via mailing list instead of the forum.
(See links to both bugtracker and maillists on the left panel of the forum).

Quote

Thnx, I will submit a request to the bugtracker and register to the mailinglist.

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: TAchart grid distance
« Reply #5 on: March 18, 2010, 05:09:19 am »
Quote
You can simulate the granularity you need by carefully selecting you scale
Is there any document / article explaining about offset and scale?
[/quote]
No, moreover, the current offset/scale implementation is not final and might change
in the near future to complete the implementation of multi-axis support.
This support implementation is long planned, but is currently blocked by some changes
rejected by the core Lazarus team, so I need to think of another way to implement it.

Still, you can look at the "axis" demo project to see an example of usage --
it even supports logarithmic axis already ;-)

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: TAchart grid distance
« Reply #6 on: March 22, 2010, 08:05:49 am »
Quote
TAChart does not currently support arbitrary grid steps.
Too bad.

Now it does. See http://bugs.freepascal.org/view.php?id=16030

lightningchaser

  • New member
  • *
  • Posts: 7
Re: TAchart grid distance
« Reply #7 on: March 22, 2010, 01:18:59 pm »
Quote
Now it does. See http://bugs.freepascal.org/view.php?id=16030

Super! I'm currently using the 0.9.28.2 32bit windows lazarus version. What is the easiest way to update to the new version with the new demo program?


Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: TAchart grid distance
« Reply #8 on: March 22, 2010, 01:38:46 pm »
You can try a nightly build: http://www.hu.freepascal.org/lazarus/
but note the big warning at the top ;-)
(You need Lazarus-0.9.29-xxxxx-fpc-2.4.0-20100322-win32.exe)

lightningchaser

  • New member
  • *
  • Posts: 7
Re: TAchart grid distance
« Reply #9 on: March 23, 2010, 01:48:53 pm »
You can try a nightly build: http://www.hu.freepascal.org/lazarus/
but note the big warning at the top ;-)
(You need Lazarus-0.9.29-xxxxx-fpc-2.4.0-20100322-win32.exe)


this build does the job! see attach figure.

 

TinyPortal © 2005-2018