Chart-type |
Post Reply ![]() |
Author | |
Janssens Dirk ![]() New Member ![]() Joined: 08 Jun 2012 Posts: 16 |
![]() ![]() ![]() ![]() Posted: 31 May 2018 at 9:05pm |
Hello,
Is there an easy/logical way to represent stock-value or price-changes in time. I would like to see something like this : Chart Example I have looked at all the examples, and tried some things with ctLine, no luck... Can somebody give me a hint ? kind regards, Dirk Janssens. |
|
![]() |
|
Bruno Fierens ![]() TMS Support ![]() Joined: 11 May 2010 Posts: 8320 |
![]() ![]() ![]() ![]() |
Did you try the Digital Line type?
|
|
![]() |
|
Janssens Dirk ![]() New Member ![]() Joined: 08 Jun 2012 Posts: 16 |
![]() ![]() ![]() ![]() |
Yes, but it;s not clear how to use it ..
I tried AddSingleXYPoint, but it seems that the X-value is ignored. AddSingleXYPoint(10,2) -> i see a point at [1,2] AddSingleXYPoint(110,1) -> i see a point at [2,1] etc .. |
|
![]() |
|
Bruno Fierens ![]() TMS Support ![]() Joined: 11 May 2010 Posts: 8320 |
![]() ![]() ![]() ![]() |
This is not an XY chart type.
For Digital line type, AddSinglePoint() needs to be used. |
|
![]() |
|
Janssens Dirk ![]() New Member ![]() Joined: 08 Jun 2012 Posts: 16 |
![]() ![]() ![]() ![]() |
Thank you Bruno. But I still have trouble understanding this. Is it alwas so, that only the Y-value can be set, and that every point add's to the next x-value ?
Suppose, I want to see the price of an article since 2000. And the price has changed say 10 times since 1-1-2000. Do I need to set the value for *every* day from 1-1-2000 to today ? Maybe I overlook something ? kind regards, Dirk. |
|
![]() |
|
Pieter Scheldeman ![]() TMS Support ![]() Joined: 18 May 2010 Posts: 3391 |
![]() ![]() ![]() ![]() |
Hi,
There is a ctXYDigitalLine chart type available in the TMS VCL Chart, but alternatively you should investigate TMS FNC Chart which has a better date-time integration/configuration, and each chart type is automatically an XY chart type. (http://www.tmssoftware.com/site/tmsfncchart.asp)
|
|
![]() |
|
Janssens Dirk ![]() New Member ![]() Joined: 08 Jun 2012 Posts: 16 |
![]() ![]() ![]() ![]() |
Thank you Pieter,,
I am making progress, but find it not so easy, and not intuitive. I don't have the FNC Chart, so if it is possible to do it with the VCL Chart. i go for that. Still, I am having doubts if it is even possible to generate a chart like this : example Maybe a few lines of code just to get me started would help a lot... I did not find demo's. Are there any ?? kind regards, Dirk. |
|
![]() |
|
Pieter Scheldeman ![]() TMS Support ![]() Joined: 18 May 2010 Posts: 3391 |
![]() ![]() ![]() ![]() |
Hi,
The chart in the screenshot should be possible. There are demo's included that are installed under ...\My Documents\tmssoftware\ In this folder, a sub-folder with the name of the chart is available which contains a set of demos such as the Overview demo, that demonstrate the various line types, including digital line.
|
|
![]() |
|
Janssens Dirk ![]() New Member ![]() Joined: 08 Jun 2012 Posts: 16 |
![]() ![]() ![]() ![]() |
I don't see any samples/demos. Is it possible to download them seperatly ?
|
|
![]() |
|
Bruno Fierens ![]() TMS Support ![]() Joined: 11 May 2010 Posts: 8320 |
![]() ![]() ![]() ![]() |
The samples get installed automatically along the components itself when you install the registered version. Please look under your Documents folder under tmssoftware\TMS Advanced Charts and there in sub folder named "Demo overview"
|
|
![]() |
|
Janssens Dirk ![]() New Member ![]() Joined: 08 Jun 2012 Posts: 16 |
![]() ![]() ![]() ![]() |
Hi Bruno,
Thanks, I found it. I was looking in the wrong "Documents" folder.. I'll take a look at the demo's Dirk., |
|
![]() |
|
Janssens Dirk ![]() New Member ![]() Joined: 08 Jun 2012 Posts: 16 |
![]() ![]() ![]() ![]() |
I guess, to make it like the example, I have to add 2 points for a change of value :
price change on 1/5/2017 would be : AddSingleXYPoint(ConvertDateTimeTox("01-01-2015", 10) ; //start of chart AddSingleXYPoint(ConvertDateTimeTox("01-05-2017", 10) ; //draw straight line to date of change AddSingleXYPoint(ConvertDateTimeTox("01-01-2015", 12) ; //new price AddSingleXYPoint(ConvertDateTimeTox("TODAY", 12) ; //end of chart That is OK for me, but is it possible to get rid of the bullits ? When there are a lot of changes in a short periode of time, this gets messie.. regards, Dirk. |
|
![]() |
|
Pieter Scheldeman ![]() TMS Support ![]() Joined: 18 May 2010 Posts: 3391 |
![]() ![]() ![]() ![]() |
Hi,
For a real date/time sample please take a look at the following tip/faq: |
|
![]() |
Post Reply ![]() |
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |