Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Settings Dates on X Axis.

 Post Reply Post Reply
Author
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Topic: Settings Dates on X Axis.
    Posted: 01 Oct 2017 at 7:23am
I'm having problems working out how to set the dates on the X axis of a line chart.

A dynamic array contains the data.


This is the code to populate the chart



This is the resulting chart:



The wrong dates are displayed on the X axis.  And there is a large gap after the last data point.

The correct dates are:

21/09/2017
26/09/2017
27/09/2017
28/09/2017
29/09/2017

= Steve


Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3365
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 02 Oct 2017 at 11:09am
Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 03 Oct 2017 at 12:12am
Hi Pieter,

That helped slightly. Thanks.



The chart now starts with the correct date, but there are extra dates in there that are not in the data provided, and the points don't line up correctly with the dates.

The correct dates are shown in red.  It seems that the component ignores the dates I provide except for the starting date.

= Steve

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3365
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 8:40am
For more control over the date-time x-axis and formatting I suggest to take a look at the TMS FNC Chart (http://www.tmssoftware.com/site/tmsfncchart.asp). We have redesigned this component from scratch, taking all feedback from the TMS VCL Chart into account.
Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 9:37am
Originally posted by Pieter Scheldeman

For more control over the date-time x-axis and formatting I suggest to take a look at the TMS FNC Chart (http://www.tmssoftware.com/site/tmsfncchart.asp). We have redesigned this component from scratch, taking all feedback from the TMS VCL Chart into account.


So the solution is to throw away a charting product I already paid for and spend AUD145 on another charting product just so I can set the date???  That seems like an expensive waste of money.

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3365
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 9:40am
There are some shortcomings regarding Datetime X-Axis and XY-Charts in the TMS VCL Chart, which we have completely rewritten in the TMS FNC Chart, please contact us directly in case you decide to move to TMS FNC Chart.

In the above case, you also need to set the StartDate, from which you want to start inserting dates: AdvChartView1.Range.StartDate
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3365
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 11:12am
Hi, 

Perhaps you can send us your sample, so we can see what is going wrong here, and modify the code to have the datetime ranging work for the TMS VCL Chart. If there is anything you might need extra in configuring, you can afterwards migrate to TMS FNC Chart if necessary.
Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 11:20am
Originally posted by Pieter Scheldeman

Hi, 

Perhaps you can send us your sample, so we can see what is going wrong here, and modify the code to have the datetime ranging work for the TMS VCL Chart. If there is anything you might need extra in configuring, you can afterwards migrate to TMS FNC Chart if necessary.


Hi Pieter,

Well I did include an example of the code in a previous post.  I could send you the unit if that helps.  The unit is part of a very large application.

= Steve

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3365
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 11:37am
Hi, 

Did you use ctLine or ctXYLine chart types? Can you switch to ctXYLine in case you have used ctLine?
Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 11:54am
Hi Pieter,

I was using ctLine.  I switched to ctXYLine and the dates now display correctly!  Excellent. 

I have horizontal scrollbars checked but no scrollbar appears.  I can move through the chart horizontally by holding down the mouse button and dragging, but it would be better if there was a scrollbar as more and more data points will be added as time progresses.

= Steve

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3365
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 12:07pm
Hi, 

The horizontal scroll option is only available for dragging the mouse. There is no separate real TScrollBar enabled. You can however enable the navigator, which is a scrollbar like option within the chart itself.
Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 12:25pm
Hi Pieter,

Ok thanks.  By the way, I tried installing TMS FNC Chart trial but it didn't work although it said it installed successfully.  I tried this 3 times and got the same result.  Any ideas?

= Steve

Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 12:56pm
Just to clarify, the components do not appear in RAD Studio XE7 Professional after installation.  I uninstalled and installed again for the 4th time but still no components.

= Steve

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3365
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 3:26pm
Hi, 

Can you verify the packages are installed correctly in the IDE, which means you can see the packages in the installed component list? Are you able to open the Demo and visualize the component?
Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 05 Oct 2017 at 10:29pm
Hi Pieter,

No the packages aren't installed, and the paths haven't been added to the library paths.

I manually added the paths.  I tried building and installing the packages but every one of them failed to build.

= Steve

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3365
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 06 Oct 2017 at 8:52am
Hi, 

Can you clear the log file under My Documents, try again and then send use the newly generated log file, so we can investigate exactly what is going wrong?
Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 06 Oct 2017 at 11:05am
Hi Pieter,

What is the name of the log file?

= Steve


Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3365
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 06 Oct 2017 at 11:15am
Hi, 

It contains the name of the product TMS FNC Chart with the version number you've installed.
Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 06 Oct 2017 at 1:17pm
Hi Pieter,

I uninstalled and installed the components again.  There is no log file for TMSFNCChart.



= Steve

Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8235
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 06 Oct 2017 at 8:23pm
I do not understand what is happening.
After install, can you scan your full hard for files

VCLTMSFNCCorePkgDXE7.bpl
FMXTMSFNCCorePkgDXE7.bpl
TMSFNCCorePkgDEDXE7.bpl

VCLTMSFNCChartPkgDXE7.bpl
FMXTMSFNCChartPkgDXE7.bpl
TMSFNCChartPkgDEDXE7.bpl

and  when you found these files, add these to the IDE via menu : Component / Install Packages

Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 07 Oct 2017 at 1:46am
Hi Bruno,

Ok, I found the BPLs and added them, then added the required paths.  They are now installed so I will check out this charting package.

Thanks.

= Steve

Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 07 Oct 2017 at 2:15am
Hi Bruno and Pieter,

TMS FNC Chart is a lot better than the charting components I have and is ideally suited to what I'm after. 

I did find an issue though.  In the manual it says: "To allow you to change these properties in a more convenient way, we have created a designtime editor available when double-clicking on the TTMSFNCChart instance, or when editing the Series property."

When I double-click on it all I get is an OnClick event handler.

= Steve

Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8235
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 07 Oct 2017 at 9:07am
The design time editor is in the package TMSFNCChartPkgDEDXE7.bpl, so can you make sure this package is listed AND active in the IDE.
It remains strange that our installer did not do all this for you automatically. Can it be you run our installer from a different Windows user account as the Windows user account with which you installed Delphi?
Back to Top
Gill Steven View Drop Down
New Member
New Member
Avatar

Joined: 31 Aug 2017
Posts: 37
Post Options Post Options   Quote Gill Steven Quote  Post ReplyReply Direct Link To This Post Posted: 07 Oct 2017 at 10:34am
Hi Bruno,

No it's the same Windows account.  I only use one account for all development work.  I agree, it's pretty weird.  I've never seen this happen before.  I use another computer for testing and it doesn't have any development tools installed.

= Steve

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down