Search found 17 matches

by Barry
Tue Mar 25, 2014 3:18 pm
Forum: VCL
Topic: Adding a movable line on a chart
Replies: 7
Views: 9766

Re: Adding a movable line on a chart

Sorry - I clearly have not made a very good job of explaining what I am after, but the demo you sent me is very helpful as it allows me to explain better. If you run your demo and then select Editor then Tools -> Color line - > Options and click "allow Drag" (I also made mine Red so I could see it b...
by Barry
Mon Mar 24, 2014 1:31 pm
Forum: VCL
Topic: Adding a movable line on a chart
Replies: 7
Views: 9766

Re: Adding a movable line on a chart

Please see attached sample which doesn't seem to work

thanks

Barry
by Barry
Mon Mar 24, 2014 1:25 pm
Forum: VCL
Topic: Adding a movable line on a chart
Replies: 7
Views: 9766

Re: Adding a movable line on a chart

Sorry a quick followup question.

How do I get the values of the candle under the line, as the line moves I want to see the values reflected in a table. I do this today by clicking on a point, but users want something more dynamic

Thanks

Barry
by Barry
Mon Mar 24, 2014 1:20 pm
Forum: VCL
Topic: Adding a movable line on a chart
Replies: 7
Views: 9766

Re: Adding a movable line on a chart

Hi, A few points in the 1st answer you gave me re adding a colour line 1. I assume you meant with Chart1.Tools.Add(TColorLineTool) as TColorLineTool do begin Axis:=Chart1.Axes.Bottom; AllowDrag:=true; Active:=true; end; not setting them to false as per your example. The other issue is I wanted a ver...
by Barry
Tue Mar 18, 2014 10:16 am
Forum: VCL
Topic: Adding a marker on a Candle chart
Replies: 22
Views: 23183

Re: Adding a marker on a Candle chart

Thanks there was a type. My email is Barry.Woodward@morningstar.com and I am using Delphi XE5
by Barry
Tue Mar 18, 2014 9:54 am
Forum: VCL
Topic: Adding a movable line on a chart
Replies: 7
Views: 9766

Adding a movable line on a chart

I have a candlestick chart which users use to view and correct financial data (pls see attached jpg). The Marks on the chart show where there are corporate actions 'C' or name changes 'N'. I currently use cross hairs and allow users to click and drag a rectangle to zoom into the chart to see the can...
by Barry
Tue Mar 18, 2014 9:46 am
Forum: VCL
Topic: Adding a marker on a Candle chart
Replies: 22
Views: 23183

Re: Adding a marker on a Candle chart

Sorry final question on this (I promise) do I need to download a new version or something to get this fix ?
by Barry
Tue Mar 18, 2014 9:38 am
Forum: VCL
Topic: Adding a marker on a Candle chart
Replies: 22
Views: 23183

Re: Adding a marker on a Candle chart

Many thanks for all your help
by Barry
Mon Mar 17, 2014 11:03 am
Forum: VCL
Topic: Adding a marker on a Candle chart
Replies: 22
Views: 23183

Re: Adding a marker on a Candle chart

Sorry - and thanks.

That works.

I'll keep an eye on Bugzilla for the longer term solution

Barry
by Barry
Mon Mar 17, 2014 10:28 am
Forum: VCL
Topic: Adding a marker on a Candle chart
Replies: 22
Views: 23183

Re: Adding a marker on a Candle chart

Sorry but this is now back where I started, just to make sure I cut and pasted your code and this is the result.

Pls see attached jpg

Barry
by Barry
Fri Mar 14, 2014 4:58 pm
Forum: VCL
Topic: Adding a marker on a Candle chart
Replies: 22
Views: 23183

Re: Adding a marker on a Candle chart

Sorry - my understanding is that does not skip weekends properly then, am I incorrect ? That is why I have been using the tmp= method as suggested in your doc Also I tried this (below) and there is still a mark on every bar - have I missed something ? unit Chartmain; interface uses SysUtils, Windows...
by Barry
Fri Mar 14, 2014 4:35 pm
Forum: VCL
Topic: Adding a marker on a Candle chart
Replies: 22
Views: 23183

Re: Adding a marker on a Candle chart

Re the 1st point, thanks, I will track the bug, Re the 2nd point - sorry that's not correct, If I comment that line out the dates are not displayed along the x-axis although interestingly if I do comment it out then '3' appears on the X-axis under the relevant candle. Just to be clear on what I want...
by Barry
Fri Mar 14, 2014 3:47 pm
Forum: VCL
Topic: Adding a marker on a Candle chart
Replies: 22
Views: 23183

Re: Adding a marker on a Candle chart

Here is a sample small bit of code that shows the problem. There are 2 isuses 1. It shows a mark on every line, I assumed it would only show one when i=3 2. Each mark is a date I'm expecting '3' when i=3 else nothing unit Chartmain; interface uses SysUtils, Windows, Messages, Classes, Graphics, Cont...
by Barry
Fri Mar 14, 2014 3:03 pm
Forum: VCL
Topic: Adding a marker on a Candle chart
Replies: 22
Views: 23183

Re: Adding a marker on a Candle chart

Please can you also give me the options for marks.style as smsvalue works and displays a value

Thanks

Barry
by Barry
Fri Mar 14, 2014 3:00 pm
Forum: VCL
Topic: Adding a marker on a Candle chart
Replies: 22
Views: 23183

Re: Adding a marker on a Candle chart

Sorry but that didn't work, it still displays a date, I will get you a simple project over the weekend as its right in the middle of a huge piece of code so I will need to work on that.

Barry