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.

Did you try the Digital Line type?

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 ..

This is not an XY chart type.
For Digital line type, AddSinglePoint() needs to be used.

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,



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. (

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 :


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,



The chart in the screenshot should be possible. There are demo's included that are installed under ...\My Documents\tmssoftware</div>

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.

I don't see any samples/demos. Is it possible to download them seperatly ?

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"

Hi Bruno,

Thanks, I found it. I was looking in the wrong "Documents" folder.. I'll take a look at the demo's


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..




For a real date/time sample please take a look at the following tip/faq: